Post Reply

Forums -> UltraMon™ SDK -> return 0 when using CoCreateInstance create a ultraMonIndDisp instance
Von.Tao   2005-04-20 22:51
CoCreateInstance(CLSID_UltraMonIndDisp, 0, CLSCTX_ALL, IID_IUltraMonIndDisp,reinterpret_cast(&pIndDisp));
return pIndDisp=0x00000000,why?
i haved #include "independentdisplays.h" and
#include "independentdisplays_i.c"

Von.Tao
Christian Studer   2005-04-21 04:25
Most likely the COM object isn't registered, what does CoCreateInstance return?

Christian Studer - www.realtimesoft.com
Von.Tao   2005-04-21 15:00
thanks a lot for your reply. Just I take a mistake:) I have missed the com initializing code "CoInitializeEx(0, COINIT_APARTMENTTHREADED);"

Von.Tao
Forums -> UltraMon™ SDK -> return 0 when using CoCreateInstance create a ultraMonIndDisp instance

Post Reply