Hi everyone. I hope I have the right forum to put this in. This may seem like a simple question, but I'm not sure what's going on.

When I recompile a DLL (using Bloodshed C++), but keep a VB project open that links to that DLL, VB crashes everytime I run the program again when it tries to call the DLL.

My declaration to the DLL (in VB) is:
VB Code:
  1. Private Declare Function MLCFn Lib "c:\test\transdll\transdll.dll" _
  2. Alias "TestOfReadFile@8" (ByVal a As String, ByVal i As Long) As Long
Normally, it works fine if I've just opened VB after recompiling the DLL.

Does anyone how to get around this problem? It's somewhat annoying to have to restart VB again. (I'm working on a P166..)

Thanx in advance,

Destined