Hi,
There's already many things on the forum about hooking DLLs but I can't find
a solution to this one:
Declare Sub RunThrough_Order Lib "test.DLL" Alias "RUNTHROUGH_ORDER" (ByRef TestString As String)
Dim hLib As Long
hLib = LoadLibrary(GetSystemDir & "\test.DLL")
Call RunThrough_Order(teststring)
Call FreeLibrary(hLib)
(from a VB6 module)
Calling the DLL (this code is a module) works just fine, but it is not released. At least,
when I try to compile the DLL after calling it while my VB program is still open, PB Compiler
provides a 'destination write file error'.
What is it I do wrong? Do I HAVE to use GetProcAddress? Is it Win98? Or the PB Compiler?
Hope someone can tell me.
------------------
There's already many things on the forum about hooking DLLs but I can't find
a solution to this one:
Declare Sub RunThrough_Order Lib "test.DLL" Alias "RUNTHROUGH_ORDER" (ByRef TestString As String)
Dim hLib As Long
hLib = LoadLibrary(GetSystemDir & "\test.DLL")
Call RunThrough_Order(teststring)
Call FreeLibrary(hLib)
(from a VB6 module)
Calling the DLL (this code is a module) works just fine, but it is not released. At least,
when I try to compile the DLL after calling it while my VB program is still open, PB Compiler
provides a 'destination write file error'.
What is it I do wrong? Do I HAVE to use GetProcAddress? Is it Win98? Or the PB Compiler?
Hope someone can tell me.
------------------
Comment