Click here to Skip to main content
15,917,862 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMSXML Help! Pin
25-Jan-02 9:13
suss25-Jan-02 9:13 
GeneralRe: MSXML Help! Pin
Michael Dunn25-Jan-02 23:03
sitebuilderMichael Dunn25-Jan-02 23:03 
GeneralRe: MSXML Help! Pin
Not Active26-Jan-02 3:33
mentorNot Active26-Jan-02 3:33 
Generaldisplaying hex info graphically Pin
brian scott25-Jan-02 8:14
brian scott25-Jan-02 8:14 
GeneralRe: displaying hex info graphically Pin
Ravi Bhavnani25-Jan-02 8:25
professionalRavi Bhavnani25-Jan-02 8:25 
GeneralCOM problem urgent HELP needed Pin
Bill Wilson25-Jan-02 7:10
Bill Wilson25-Jan-02 7:10 
GeneralRe: COM problem urgent HELP needed Pin
Ernest Laurentin25-Jan-02 7:18
Ernest Laurentin25-Jan-02 7:18 
GeneralRe: COM problem urgent HELP needed Pin
Bill Wilson25-Jan-02 9:17
Bill Wilson25-Jan-02 9:17 
I tried it, but it didn't help. I think its because there are two apps accessing two different interfaces, rather than two apps accessing the same interface.

Next attempt is to use CoGetClassObject. MSDN says:

"Provides a pointer to an interface on a class object associated with a specified CLSID. CoGetClassObject locates, and if necessary, dynamically loads the executable code required to do this."

Sounds like it won't load the EXE if it's already there. This coincides with VB and GetObject versus CreateObject.

Unfortunately I get an error AND the wrong effect:

hr = CoGetClassObject(ID, CLSCTX_LOCAL_SERVER, NULL,
			IID_IDispatch, (void **)&(m_pBroker));
if(hr = S_OK) 
{
	g_pErrorLog->LogError(4,"Get Class succeeded " + strObjName,_strModule);
} else {

	hr = CoCreateInstance(ID, NULL, CLSCTX_LOCAL_SERVER, 
				IID_IDispatch, (void **)&(m_pBroker));
	g_pErrorLog->LogError(4,"Try to CoCreate",_strModule);
}


When it executes the CoGetClassObject call, I get an ERROR_NO_INTERFACE message 0x80004002. AND a second .EXE is loaded. Cry | :((





Thanks for the help,
Bill
GeneralRe: COM problem urgent HELP needed Pin
pba_25-Jan-02 9:41
pba_25-Jan-02 9:41 
GeneralRe: COM problem urgent HELP needed Pin
Not Active26-Jan-02 3:40
mentorNot Active26-Jan-02 3:40 
GeneralThanks for the help, everyone Pin
Bill Wilson28-Jan-02 6:17
Bill Wilson28-Jan-02 6:17 
QuestionHow do I: Automate Outlook Express Pin
CMFC6.0VS.NETUser25-Jan-02 6:57
CMFC6.0VS.NETUser25-Jan-02 6:57 
AnswerRe: How do I: Automate Outlook Express Pin
Edd Porter25-Jan-02 13:02
Edd Porter25-Jan-02 13:02 
GeneralTransparency in Dialog images. Pin
Jon Newman25-Jan-02 6:48
Jon Newman25-Jan-02 6:48 
QuestionMonitor sockets? Pin
-Dy25-Jan-02 6:01
-Dy25-Jan-02 6:01 
AnswerRe: Monitor sockets? Pin
pba_25-Jan-02 6:37
pba_25-Jan-02 6:37 
AnswerRe: Monitor sockets? Pin
Chris Hafey26-Jan-02 8:31
Chris Hafey26-Jan-02 8:31 
GeneralTerminating a thread Pin
HomeNuke25-Jan-02 6:00
HomeNuke25-Jan-02 6:00 
GeneralRe: Terminating a thread Pin
25-Jan-02 6:31
suss25-Jan-02 6:31 
GeneralRe: Terminating a thread Pin
pba_25-Jan-02 6:47
pba_25-Jan-02 6:47 
GeneralRe: Terminating a thread Pin
Ernest Laurentin25-Jan-02 6:50
Ernest Laurentin25-Jan-02 6:50 
GeneralRe: Terminating a thread Pin
HomeNuke25-Jan-02 7:04
HomeNuke25-Jan-02 7:04 
GeneralRe: Terminating a thread Pin
25-Jan-02 7:01
suss25-Jan-02 7:01 
GeneralRe: Terminating a thread Pin
Matt Gullett25-Jan-02 7:42
Matt Gullett25-Jan-02 7:42 
GeneralRe: Terminating a thread Pin
HomeNuke25-Jan-02 7:51
HomeNuke25-Jan-02 7:51 

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.