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

COM

 
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 
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 
Yes, I have IMyinterface declared inside the CoClass definition. In fact, my idl file is shown below, using real variable names rather than IMyinterface:

//----------------------------------
/*

This IDL file describes all the COM-isms
contained in the CarServer Library

*/

// Bring in core IDL files.
import "oaidl.idl";

// IStats
[object, uuid(A533DA31-D372-11d2-B8CF-0020781238D4),
helpstring("Get info about this car")]
interface IStats : IUnknown
{
HRESULT DisplayStats();
HRESULT GetPetName([out, retval] BSTR* petName);
};

// IEngine
[object, uuid(A533DA30-D372-11d2-B8CF-0020781238D4),
helpstring("Rev your car & slow it down")]
interface IEngine : IUnknown
{
HRESULT SpeedUp();
HRESULT GetMaxSpeed ([out, retval] int* maxSpeed);
HRESULT GetCurSpeed ([out, retval] int* curSpeed);
};


// ICreateCar
[object, uuid(A533DA32-D372-11d2-B8CF-0020781238D4),
helpstring("This lets you create a car")]
interface ICreateCar : IUnknown
{
HRESULT SetPetName([in]BSTR petName);
HRESULT SetMaxSpeed([in]int maxSp);
};


[uuid(82BA20D1-F07D-11d2-B8E0-0020781238D4), version(1.0),
helpstring("CoCar server with TypeLib")]
library CarServer
{

importlib("stdole32.tlb");

[uuid(82BA20D2-F07D-11d2-B8E0-0020781238D4)]
coclass CoCar
{
[default] interface ICreateCar;
interface IStats;
interface IEngine;
};
};
//-------------------------------- END

Also, since I am talk to an out-of-process server( actually, to a dll hosted by dllhost.exe), do I need to include the proxies/stubs in my build workspace? I currently don't have them included. Is this the reason why it failed to run?

Sunny
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 
GeneralRe: How to get FUNCDESC of a method given its DISPID ? Pin
Rohit1-Mar-02 17:22
Rohit1-Mar-02 17:22 
GeneralRe: How to get FUNCDESC of a method given its DISPID ? Pin
Joao Vaz2-Mar-02 6:33
Joao Vaz2-Mar-02 6:33 

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.