Click here to Skip to main content
16,010,488 members
Home / Discussions / COM
   

COM

 
QuestionHow to use Com Event By Vc++ Pin
3-Mar-02 17:55
suss3-Mar-02 17:55 
AnswerRe: How to use Com Event By Vc++ Pin
Mazdak3-Mar-02 18:40
Mazdak3-Mar-02 18:40 
GeneralRe: How to use Com Event By Vc++ Pin
Amit Dey6-Mar-02 6:20
Amit Dey6-Mar-02 6:20 
GeneralRe: How to use Com Event By Vc++ Pin
Amit Dey6-Mar-02 6:22
Amit Dey6-Mar-02 6:22 
GeneralVC 5 && VC6 Pin
newbe2-Mar-02 4:43
newbe2-Mar-02 4:43 
GeneralRe: VC 5 && VC6 Pin
Mazdak2-Mar-02 5:01
Mazdak2-Mar-02 5:01 
GeneralATL and externals Pin
newbe1-Mar-02 0:36
newbe1-Mar-02 0:36 
GeneralProblem running Local Server Pin
Sunny_leung28-Feb-02 19:20
Sunny_leung28-Feb-02 19:20 
Hey all,

I have just started learning COM, and have been following the lab exercises from one of the commerical books. I am in the process of learning how to use dllhost.exe to host my Dll server( Originally, I had developed my server as an in process server without using ATL. ) The book told me to add the AppID to the registry by selecting the "Use Surrogate Process" in OLE/COM viewer. I did exactly that. However, when I tried to run the client, I got an error message that said: "No such interface supported".

The code that generated this error message is as follows:

IMyinterfacePtr p;
p.CreateInstance( __uuidof( CoMyClass ), NULL, CLSCTX_LOCAL_SERVER );

At first, I was very puzzled, but when I went back and looked at my object under the OLE/COM viewer, I can only see the IUnknown interface being exposed, but not IMyinterface.

Does anybody know what's happening? If so, what is the solution to the problem?

Your help is really apprepriate, since I am in this dark hole right now not being able to solve it.

Sunny
GeneralRe: Problem running Local Server Pin
Joao Vaz1-Mar-02 3:56
Joao Vaz1-Mar-02 3:56 
GeneralRe: Problem running Local Server Pin
Sunny_leung1-Mar-02 7:36
Sunny_leung1-Mar-02 7:36 
GeneralRe: Problem running Local Server Pin
Joao Vaz2-Mar-02 6:18
Joao Vaz2-Mar-02 6:18 
Generalmessage loop... Pin
Tim Rymer28-Feb-02 10:28
Tim Rymer28-Feb-02 10:28 
GeneralRe: message loop... Pin
Joao Vaz28-Feb-02 11:59
Joao Vaz28-Feb-02 11:59 
GeneralAsync WinInet Locks Program for Period of Time - need implementation advise! Pin
Tim Rymer28-Feb-02 4:25
Tim Rymer28-Feb-02 4:25 
GeneralRe: Async WinInet Locks Program for Period of Time - need implementation advise! Pin
Joao Vaz28-Feb-02 4:42
Joao Vaz28-Feb-02 4:42 
GeneralRe: Async WinInet Locks Program for Period of Time - need implementation advise! Pin
Tim Rymer28-Feb-02 5:00
Tim Rymer28-Feb-02 5:00 
GeneralRe: Async WinInet Locks Program for Period of Time - need implementation advise! Pin
Joao Vaz28-Feb-02 5:09
Joao Vaz28-Feb-02 5:09 
GeneralRe: Async WinInet Locks Program for Period of Time - need implementation advise! Pin
Tim Rymer28-Feb-02 7:09
Tim Rymer28-Feb-02 7:09 
GeneralRe: Async WinInet Locks Program for Period of Time - need implementation advise! Pin
Joao Vaz28-Feb-02 7:30
Joao Vaz28-Feb-02 7:30 
GeneralRe: Async WinInet Locks Program for Period of Time - need implementation advise! Pin
Tim Rymer28-Feb-02 7:39
Tim Rymer28-Feb-02 7:39 
Generala few questions... Pin
Tim Rymer28-Feb-02 8:06
Tim Rymer28-Feb-02 8:06 
GeneralRe: a few questions... Pin
28-Feb-02 11:33
suss28-Feb-02 11:33 
GeneralRe: a few questions... Pin
Joao Vaz28-Feb-02 11:54
Joao Vaz28-Feb-02 11:54 
QuestionHow to get FUNCDESC of a method given its DISPID ? Pin
Rohit27-Feb-02 0:05
Rohit27-Feb-02 0:05 
AnswerRe: How to get FUNCDESC of a method given its DISPID ? Pin
Joao Vaz1-Mar-02 7:03
Joao Vaz1-Mar-02 7:03 

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.