Click here to Skip to main content
15,887,856 members
Home / Discussions / COM
   

COM

 
AnswerRe: Passing complex type through COM interface ? Pin
Jörgen Sigvardsson30-Jan-04 13:00
Jörgen Sigvardsson30-Jan-04 13:00 
GeneralCOM+ Catalog Infomation Pin
kimsangwoo30-Jan-04 12:28
kimsangwoo30-Jan-04 12:28 
GeneralProblem with MIDL and Flash IDL Pin
gialli29-Jan-04 22:16
gialli29-Jan-04 22:16 
GeneralPassing variants in Fire_xxx methods Pin
Aby Philip28-Jan-04 4:38
Aby Philip28-Jan-04 4:38 
GeneralRe: Passing variants in Fire_xxx methods Pin
Lim Bio Liong29-Jan-04 4:24
Lim Bio Liong29-Jan-04 4:24 
GeneralCOM and _bstr_t Pin
Tzoockee27-Jan-04 1:05
Tzoockee27-Jan-04 1:05 
GeneralRe: COM and _bstr_t Pin
Steve S27-Jan-04 1:53
Steve S27-Jan-04 1:53 
GeneralDCOM: running COM-server on another PC Pin
Bash27-Jan-04 0:15
Bash27-Jan-04 0:15 
Hi Guys!

I'm novice in DCOM and my question will be very easy.

I'm created COM-server and its COM-client. I can successfully run both on the same machine and successufully run

on the separate machine (with modification in dcomcnfg). The code is not changed when remote running.

I used the follows (it works fine):

IEncoder * pEncoder;
HRESULT hr=CoCreateInstance(CLSID_Encoder,
NULL,
CLSCTX_SERVER,
IID_IEncoder,
(void **)&pEncoder);

I'm trying to specify exactrly on which machine COM-server should be run using the follows:

WCHAR *wszMachineName=L"STAR\0";
COSERVERINFO srv;
ZeroMemory(&srv,sizeof(srv));
srv.pwszName=wszMachineName;
MULTI_QI qi;

HRESULT hr=CoCreateInstanceEx(CLSID_Encoder,
NULL,
CLSCTX_SERVER,
&srv,
1,
&qi);


This returns E_INVALIDARG. Frown | :(

What should I do to remotely invoke my COM-server from another machine using CoCreateInstanceEx() ?


Yours sincerely,
Alex Bash
GeneralRe: DCOM: running COM-server on another PC Pin
Anonymous27-Jan-04 3:23
Anonymous27-Jan-04 3:23 
GeneralProblem with compiling samples of Iniside OLE Pin
Omar Alvi26-Jan-04 22:13
Omar Alvi26-Jan-04 22:13 
GeneralCOM: precompiled header in *_i.c files Pin
Bash26-Jan-04 7:55
Bash26-Jan-04 7:55 
GeneralRe: COM: precompiled header in *_i.c files Pin
Steve S26-Jan-04 22:27
Steve S26-Jan-04 22:27 
GeneralExtracting the Contents of IStorage Pin
Steve Thresher26-Jan-04 3:58
Steve Thresher26-Jan-04 3:58 
GeneralRe: Extracting the Contents of IStorage Pin
Anonymous30-Jan-04 10:34
Anonymous30-Jan-04 10:34 
GeneralCOM question Pin
Tzoockee26-Jan-04 2:29
Tzoockee26-Jan-04 2:29 
GeneralRe: COM question Pin
Steve S26-Jan-04 2:49
Steve S26-Jan-04 2:49 
GeneralRe: COM question Pin
Tzoockee26-Jan-04 3:11
Tzoockee26-Jan-04 3:11 
GeneralRe: COM question Pin
Steve S26-Jan-04 5:26
Steve S26-Jan-04 5:26 
QuestionHow to USE C++ code in VB ?? Pin
ponka12825-Jan-04 9:27
ponka12825-Jan-04 9:27 
AnswerRe: How to USE C++ code in VB ?? Pin
Jörgen Sigvardsson25-Jan-04 10:09
Jörgen Sigvardsson25-Jan-04 10:09 
GeneralRe: How to USE C++ code in VB ?? Pin
Lim Bio Liong25-Jan-04 14:57
Lim Bio Liong25-Jan-04 14:57 
GeneralRe: How to USE C++ code in VB ?? Pin
Jörgen Sigvardsson25-Jan-04 21:18
Jörgen Sigvardsson25-Jan-04 21:18 
GeneralRe: How to USE C++ code in VB ?? Pin
Anonymous26-Jan-04 3:04
Anonymous26-Jan-04 3:04 
Generalcom Pin
Member 83849523-Jan-04 19:35
Member 83849523-Jan-04 19:35 
GeneralRe: com Pin
Anonymous24-Jan-04 2:35
Anonymous24-Jan-04 2:35 

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.