COleDropTarget. register(pWnd *) returning 0
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
I am trying to implement Ole drag and drop, and the register() with OLE dll is returning 0. where could i have been wrong? Thanks
You need to use OleInitialize on the thread that is calling the register function rather than CoInitialize. OLE must be initalized in order for you to use Drag and Drop.
Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!