Click here to Skip to main content
16,017,100 members
Home / Discussions / COM
   

COM

 
GeneralRe: CD Burning Pin
Michael Dunn7-May-03 15:12
sitebuilderMichael Dunn7-May-03 15:12 
GeneralAPI/Control -> AuthenTec FingerLogic USB Scanner Pin
Kramins7-May-03 10:35
Kramins7-May-03 10:35 
GeneralEmbedding word documents in OLE Container Pin
rajandpayal4-May-03 17:52
rajandpayal4-May-03 17:52 
GeneralPleas help me with IConnectionPoint::Advise() Pin
faberge3-May-03 2:01
faberge3-May-03 2:01 
QuestionAdd toolbar to IE? Pin
Jim Howard30-Apr-03 8:50
Jim Howard30-Apr-03 8:50 
AnswerRe: Add toolbar to IE? Pin
J. Dunlap3-May-03 8:09
J. Dunlap3-May-03 8:09 
GeneralGetActiveObject fails with IE Pin
rdautel30-Apr-03 5:15
rdautel30-Apr-03 5:15 
GeneralRe: GetActiveObject fails with IE Pin
Stephane Rodriguez.3-May-03 19:54
Stephane Rodriguez.3-May-03 19:54 
It cannot work, there are several errors :
- The COM library is not initialized. Add ::CoInitialize(NULL);
- IExplorer.Application does not exist. Use InternetExplorer.Application
- GetActiveObject returns hr which is non-null if there is an error. The error you get clearly tells you the COM library is not initialized. To get the error message, put a breakpoint just after ::GetActiveObject, run the program, then go in the watch window and type "hr, hr". You'll get the error message.

Here is a code replacement :
::CoInitialize(NULL);
HRESULT hr;
CLSID prog_clsid;
hr = ::CLSIDFromProgID(L"InternetExplorer.Application",&prog_clsid);
IUnknown *pUnk = NULL;
hr = ::GetActiveObject(prog_clsid, NULL, &pUnk);
...

::CoUninitialize();

GeneralCO_E_SERVER_EXEC_FAILURE Pin
Jamie Hale29-Apr-03 5:07
Jamie Hale29-Apr-03 5:07 
GeneralError reading key Pin
GWENJi29-Apr-03 4:09
GWENJi29-Apr-03 4:09 
GeneralGet [source] interface DISPID (id) Pin
Abebe28-Apr-03 22:47
Abebe28-Apr-03 22:47 
GeneralRe: Get [source] interface DISPID (id) Pin
Abebe29-Apr-03 1:30
Abebe29-Apr-03 1:30 
QuestionWhats the use for DECLARE_DISPATCH_MAP and DECLARE_OLECREATE_EX?? Pin
safee ullah28-Apr-03 22:35
safee ullah28-Apr-03 22:35 
GeneralCOM Voodoo Pin
vlvl28-Apr-03 21:06
vlvl28-Apr-03 21:06 
GeneralRe: COM Voodoo Pin
safee ullah29-Apr-03 0:56
safee ullah29-Apr-03 0:56 
GeneralRe: COM Voodoo Pin
Stephane Rodriguez.7-May-03 20:49
Stephane Rodriguez.7-May-03 20:49 
QuestionADO events biased to COM memory model? Pin
Chopper28-Apr-03 9:31
Chopper28-Apr-03 9:31 
GeneralCOM interop to Outlook -- BeforeFolderSwitch Pin
rkiesler27-Apr-03 3:57
rkiesler27-Apr-03 3:57 
GeneralRe: COM interop to Outlook -- BeforeFolderSwitch Pin
Stephane Rodriguez.7-May-03 20:52
Stephane Rodriguez.7-May-03 20:52 
GeneralRe: COM interop to Outlook -- BeforeFolderSwitch Pin
rkiesler9-May-03 5:32
rkiesler9-May-03 5:32 
General2-D SafeArray Pin
tomercagan26-Apr-03 10:10
tomercagan26-Apr-03 10:10 
GeneralRe: 2-D SafeArray Pin
Hans Ruck30-Apr-03 1:13
Hans Ruck30-Apr-03 1:13 
GeneralOLE DB problem in VC++ COM when used in ASP Pin
Mahesh Perumal26-Apr-03 2:20
Mahesh Perumal26-Apr-03 2:20 
Generalne One Heard of CAutomationObject Pin
safee ullah23-Apr-03 21:40
safee ullah23-Apr-03 21:40 
QuestionWhat cause such link errors? Pin
ray_li23-Apr-03 10:41
ray_li23-Apr-03 10:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.