ATL and GDI+
-
Did someone already tried to use GDI+ in a ATL DLL ? I tried to just initialize GDI+ in the InitInstance and deinitialize it in the ExitInstance but seems like registration of the dll fails ??? Jonathan de Halleux.
-
Did someone already tried to use GDI+ in a ATL DLL ? I tried to just initialize GDI+ in the InitInstance and deinitialize it in the ExitInstance but seems like registration of the dll fails ??? Jonathan de Halleux.
If the registration of the dll failed, your code probably crashed in some way. Can't really say what is wrong.. Did you check to see that your input parameters to the gdi+ initialization functions are correct? -- Only in a world this shitty could you even try to say these were innocent people and keep a straight face.
-
Did someone already tried to use GDI+ in a ATL DLL ? I tried to just initialize GDI+ in the InitInstance and deinitialize it in the ExitInstance but seems like registration of the dll fails ??? Jonathan de Halleux.
-
In docs is stated that you should not call GdiplusStartup or GdiplusShutdown in DllMain or in any function that is called by DllMain ( for solutions look for "GdiplusStartup" in MSDN).
Thanks ! It's working now. I had putted GDI+ initialization in the CWinApp::InitInstance and, in fact, it was called by DllRegister... Jonathan de Halleux.