Click here to Skip to main content
15,921,577 members
Home / Discussions / COM
   

COM

 
GeneralRe: RPC Server Unavailable (Repost) Please help! Pin
Bill Wilson17-Sep-01 7:25
Bill Wilson17-Sep-01 7:25 
GeneralRPC Server Unavailable from C++ client Pin
Bill Wilson14-Sep-01 14:11
Bill Wilson14-Sep-01 14:11 
GeneralRe: RPC Server Unavailable from C++ client Pin
Bill Wilson17-Sep-01 7:16
Bill Wilson17-Sep-01 7:16 
GeneralCOM SPY TOOL Pin
13-Sep-01 5:08
suss13-Sep-01 5:08 
GeneralAccelerators in WTL dialog Pin
Remon Spekreijse13-Sep-01 0:10
Remon Spekreijse13-Sep-01 0:10 
GeneralRe: Accelerators in WTL dialog Pin
Not Active17-Sep-01 7:48
mentorNot Active17-Sep-01 7:48 
GeneralRe: Accelerators in WTL dialog Pin
Remon Spekreijse17-Sep-01 21:13
Remon Spekreijse17-Sep-01 21:13 
GeneralCOM out of process server Pin
12-Sep-01 11:54
suss12-Sep-01 11:54 
Hi!

I am trying to create an out of process server which runs as a remote service. So, I have created the service on machine B.

The client is on machine A, and has been compiled using #include (with the _i.c and .h) files. The service (on machine B) has been initialized as follows:
a. nmake the *ps.mk file
b. regsvr32 the *ps.dll file
c. Run *.exe -service
d. and finally start the service on machine B.

On machine A(client), I do the following:
CoInitialize(NULL);

LPWSTR pwszName="name of machine B;
COSERVERINFO csi={0,pwszName,NULL,0};
MULTI_QI mqi[]={{&IID_ITestInterface,NULL,S_OK}};

try{
HRESULT hr=CoCreateInstanceEx(CLSID_TestInterface,NULL,CLSCTX_SERVER,
&csi,sizeof(mqi)/sizeof(mqi[0]),mqi);


if(FAILED(hr)) _com_issue_error();
//use a smart pointer and do some method invokation..

}
catch(_com_error&error){
// display error
}
when I run this, I get the error that Interface not registered 80040155.

Can someone point out what is going wrong here. My main query is whether this error is generated from the client side (machine A), indicating that the interface should be registered on machine A, or it is generated from the server itself.

Ideas/comments would be greatly appreciated.

thanks in advance



GeneralRe: COM out of process server Pin
Ganesh Ramaswamy12-Sep-01 13:16
Ganesh Ramaswamy12-Sep-01 13:16 
GeneralRe: COM out of process server Pin
12-Sep-01 16:24
suss12-Sep-01 16:24 
GeneralIShellLink Pin
mrlister11-Sep-01 6:28
mrlister11-Sep-01 6:28 
Generalop= and copy ctor with COM pointers Pin
10-Sep-01 12:45
suss10-Sep-01 12:45 
GeneralRe: op= and copy ctor with COM pointers Pin
Michael Dunn10-Sep-01 15:22
sitebuilderMichael Dunn10-Sep-01 15:22 
GeneralRe: op= and copy ctor with COM pointers Pin
11-Sep-01 3:23
suss11-Sep-01 3:23 
Generalaccessing DLLs through a single client Pin
parag10-Sep-01 1:27
parag10-Sep-01 1:27 
GeneralRe: accessing DLLs through a single client Pin
Jafer Ali10-Sep-01 18:46
Jafer Ali10-Sep-01 18:46 
QuestionPassing Structures to Active X DLL? Pin
9-Sep-01 19:23
suss9-Sep-01 19:23 
AnswerRe: Passing Structures to Active X DLL? Pin
Ganesh Ramaswamy13-Sep-01 4:40
Ganesh Ramaswamy13-Sep-01 4:40 
AnswerRe: Passing Structures to Active X DLL? Pin
ioannhs_s21-Sep-01 5:10
ioannhs_s21-Sep-01 5:10 
Questionhow to get a remote client's IP? Pin
maya9-Sep-01 16:51
maya9-Sep-01 16:51 
AnswerRe: how to get a remote client's IP? Pin
Ganesh Ramaswamy12-Sep-01 13:20
Ganesh Ramaswamy12-Sep-01 13:20 
QuestionHow to use ATL contrlol in MFC Pin
8-Sep-01 7:22
suss8-Sep-01 7:22 
QuestionHow to make my ActiveX control produced by ATL show its property pages in VB environment? Pin
8-Sep-01 6:00
suss8-Sep-01 6:00 
GeneralConnection Points Pin
Jafer Ali7-Sep-01 18:22
Jafer Ali7-Sep-01 18:22 
QuestionUse ActiveX without MFC? Pin
Mike Kronenberg7-Sep-01 16:55
Mike Kronenberg7-Sep-01 16:55 

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.