OnErr0r
09-04-2003, 10:58 PM
Find included a VB class wrapper that wraps the functionality of an ASM DLL. This dll (source included) simply pushes parameters on the stack and then calls a function pointer. Only the stdcall calling convention is supported.
It's much safer to use Declare Statements in VB code, so I wouldn't suggest using this unless you have some specific reason, and know what you're doing.
Care should be taken in passing the right number of parameters. Also, you'll need to understand the difference between ByVal and ByRef. Note that strings in some cases are passed Byref, when a buffer is needed, as is the case with GetWindowsDirectory.
It's much safer to use Declare Statements in VB code, so I wouldn't suggest using this unless you have some specific reason, and know what you're doing.
Care should be taken in passing the right number of parameters. Also, you'll need to understand the difference between ByVal and ByRef. Note that strings in some cases are passed Byref, when a buffer is needed, as is the case with GetWindowsDirectory.