Jump to content

Recommended Posts

Posted

Larry,

Just an idea for the DLLCALL, since yu can wait until all the functions added into the Au3 before yu can be lunch a release version. Why not just update a list for the dllcall so that yu can enrich the functions Au3 later after the offical release.

Just an example:

For the functions in Au3 like FileCopy

it can use the api function:

Private Declare Function CopyFile Lib "kernel32.dll" Alias "CopyFileA" (ByVal lpExistingFileName As String, ByVal lpNewFileName As String, ByVal bFailIfExists As Long) As Long

;Copy a file called test.bat to test1.bat

it can be DLLCALL ("kernel32.dll","int","CopyFile","str","test.bat","str",test1.bat")

So now, yu can delete the function for FileCopy, and add the file copy in Appendix saying that user can use dllcall to have filecopy. The adventage is the menu is getting smaller, and people can enrich the function without alter the offical release.

It's just an idea, pls commend in advance

Alexis Cheng,

Posted

Which is shorter for the coder?

DLLCALL ("kernel32.dll","int","CopyFile","str","test.bat","str",test1.bat")

or

#include <filefunctions.au3>
_CopyFile("test.bat", "test1.bat")

or

FileCopy("test.bat", "test1.bat")

Obviously the last is easiest (no change).

Who else would I be?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...