Click to See Complete Forum and Search --> : Reentrancy error


James_dean
February 2nd, 2007, 03:16 AM
I get a reentry error when i try to pass in my windows handle to a dll created in visual c++ 6.0. I don't have the code for the dll so i cannot look inside. How can i resolve this problem. The code is like the following with the error happening at "myDllFuncA" which is a function of the dll i loaded. The exact error i get is "unknown software exception"......

System::void Form1::ButtonClick(Event args....)
{

HWND hwnd = (HWND)this->Handle.ToInt32();

Function(HWND hwnd);

}

System::void Function(HWND hwnd)
{
LoadLibrary("myInstall.dll");

myDllFuncA(HWND hwnd, LPTSTR param1, LPTSTR param2,DWORD param3, LPTSTR param4);
}