Board index » Visual Studio » GetDC() Fails in DLL.
|
jsmelley
|
GetDC() Fails in DLL.
Visual Studio86
I have created SDI Application and one DLL. I am dynamically loading DLL. I am passing View Pointer to DLL, and then I try to get DC from View using GetDC() function. But GetDC() is returning NULL , also GetLastError() is returning 0. This Code is working Fine in Debug Mode but only gives problem in Release Mode. Here is snap shot of my DLL Function. BOOL Initialize(CWnd* pWnd) { CDC* hDC = pWnd->GetDC(); } I am using __cdecl calling convetions which I have set in Projects Settings of Visual Studio. Thanks, Avinash - |
