Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Callback function to VB works only in the IDE, but not in EXE


Message #1 by nguyentriminh@y... on Tue, 19 Feb 2002 20:14:54
Hello there,

     I have written a VC++ based DLL that calls a function in VB6. I did 
this by using the common technique of calling a DLL function with the 
address of the VB6 callback-function as a parameter (for storage and 
future invocation).  
     Everything works fine when I run my example in the VB6 IDE; the VB6 
function is called from the VC++ DLL perfectly and returns correctly. 
However, if I create the EXE of the VB project, I get this error message :

The instruction at "0x660144d3" referenced memory at "0x00000014". The 
memory could not be "read".  

     Why would the compiled version not work, while the interpreted 
version does?  

Any help is greatly appreciated,
Minh.

  Return to Index