How can I write a win32 dll file in TASM 5 which has procs in it that can be called from VB6 that will call a sub by the address passed to it (like from an OpenGl extension)
Printable View
How can I write a win32 dll file in TASM 5 which has procs in it that can be called from VB6 that will call a sub by the address passed to it (like from an OpenGl extension)
Your functions must heed the stdcall (pascal) calling convention:
The parameters are passed from left to right. Number of bytes in the parameters is fixed. The called function is responsible for clearing the stack (using the ret n instruction).
Use the call instruction to call the callback.
The rest is about linker options.