Hi Ramon,
When using COM object with Easycode, where would I place the CoInitialize invoke.
I'm thinking in the WinMain -> Create Msg section.. would this be ok, or does Easycode do it automatically.
I cannot find anything relating to COM in the Help file
Thanks
Van
Hi Van,
No, Easy Code does not that automatically, so yes I think you should place the CoInitialize invoke in the WinMain WM_CREATE message.
Regards,
Ramon
BTW: No topic about COM in the help file.
Thanks..
AFAIK you can place it anywhere before you use it.. I think (must read :biggrin:)
yah - before you use it, and after you're done, couninitialize
you can put in the WndMain routine (before window create/after message loop exit)
or in the main window WndProc (WM_CREATE/WM_DESTROY)
i prefer the WndMain method
if the window fails creation for some reason, WM_CREATE is executed, but WM_DESTROY is not