Hi All,
As I know, when I declare functions from DLL, like this:
If refer to system dllCode:Private Declare Function MessageBox Lib "user32" Alias "MessageBoxA" (ByVal hwnd As Long, ByVal lpText As String, ByVal lpCaption As String, ByVal wType As Long) As Long
When I declare function like this:
I refer to test.dll file which may be located in app folder or in system folders (windows, windows\system32 etc.)Code:Private Declare Function MyFunc Lib "test.dll" Alias "DLLMyFunc" (ByVal lpText As String) As Long
If test.dll located in app folder and system folder too, to which dll VB would refer?
How can I refer to specfic dll? For example, only for DLL, which located in app folder, event such dll is located in system folder too
Thanks all
P.S. Sorry for my eng)))
![]()




)))
Reply With Quote