OSDN Git Service

Fix to properly initialize OLE for Crystal Edit drag and drop
authorDennis Lim <dlkj@users.sourceforge.net>
Wed, 9 May 2001 12:48:53 +0000 (12:48 +0000)
committerDennis Lim <dlkj@users.sourceforge.net>
Wed, 9 May 2001 12:48:53 +0000 (12:48 +0000)
Src/Merge.cpp

index d387e4a..4aad870 100644 (file)
@@ -90,7 +90,11 @@ BOOL CMergeApp::InitInstance()
        SillyTestCrap();
 #endif
 
-       ::CoInitialize(NULL);
+       // CCrystalEdit Drag and Drop functionality needs AfxOleInit.
+       if(!AfxOleInit())
+       {
+               TRACE(_T("AfxOleInitFailed. OLE functionality disabled"));
+       }
 
        // CG: The following block was added by the Splash Screen component.
        {