Hi Everybody,
Can anybody pls help me for my problem.
I m facing a Mixed DLL Loading problem. My Parent program has successfully been converted from VC 6.0 to VS 2008, /clr (Mixed mode). However, facing problem for my security DLL project, which was VC 6.0 MFC Extension DLL. Login ID & Password dialog I got from Security_DLL. And then following to other security related functions.
Although, Security_DLL successfully convert & compiled from VC 6.0 to VC 9.0 with /clr (with warning C4747), it is raising Loader Lock error, while calling from my parent program.
I already tried following remedies:
1). Applying #pragma unmanaged after all #include to every file into DLL. (warning C4747 vanish with this option)
2). Commenting DllMain() into DLL
3). However, got an astonishing solution while giving /NOENTRY switch into project properties of DLL
4). Along with /NOENTRY switch & #pragma unmanaged option applied into DLL, I could start debug and run my main parent program, but Login ID & Password dialog which was coming from Security_DLL, was then didn’t displaying. While debugging for such behavior, realized that CDialog::DoModal() in DlgCore.cpp MFC file failed during FindResource()
How could I convert DLL from VC 6.0 to VS 2008, with /clr option, & load into my parent prog. Which is now in Mixed mode ?
Many thanks in advance !!!