Hi. I have this in my program:
Just from the API viewer.
Problem is, when the copyFile or DeleteFile fail (they return 0) the getLastError function always returns 0!!! It's useless that way.
Do you have any idea?
Thank you very much,
Daniel
Code:
Public Declare Function CopyFile Lib "kernel32" Alias "CopyFileA" (ByVal lpExistingFileName As String, ByVal lpNewFileName As String, ByVal bFailIfExists As Long) As Long
Public Declare Function GetLastError Lib "kernel32" () As Long
Public Declare Function DeleteFile Lib "kernel32" Alias "DeleteFileA" (ByVal lpFileName As String) As Long
Just from the API viewer.
Problem is, when the copyFile or DeleteFile fail (they return 0) the getLastError function always returns 0!!! It's useless that way.
Do you have any idea?
Thank you very much,
Daniel