Click here to Skip to main content
15,913,941 members
Home / Discussions / COM
   

COM

 
QuestionReturning values from COM object ?? Pin
19-Apr-02 1:37
suss19-Apr-02 1:37 
AnswerRe: Returning values from COM object ?? Pin
Paul M Watt21-Apr-02 9:39
mentorPaul M Watt21-Apr-02 9:39 
GeneralRe: Returning values from COM object ?? Pin
21-Apr-02 11:48
suss21-Apr-02 11:48 
QuestionHow to implement a thread in a service? Pin
Bhikshapathi Gorantla18-Apr-02 21:42
Bhikshapathi Gorantla18-Apr-02 21:42 
QuestionHow to digital certificate Pin
liuage18-Apr-02 16:06
liuage18-Apr-02 16:06 
AnswerRe: How to digital certificate Pin
Todd Smith18-Apr-02 16:09
Todd Smith18-Apr-02 16:09 
GeneralIs there a class just as MFC's CTime in ATL/WTL Pin
18-Apr-02 15:50
suss18-Apr-02 15:50 
GeneralA Question of Using the Standard C++ to Programme Connectable Object in VC6.0 Pin
zjkw18-Apr-02 15:49
zjkw18-Apr-02 15:49 
I exercise the pure c++(No supported by MFC and ATL,even IDisptch interface) to write:

1.proxy/stub DLL;
2.out proc server EXE;
3.client EXE.

Then I run the program.When the client call function of connectable object in the server through interface,
All work well;But if the server call function of the sink in the client even like QueryInterface(.....) ,
A strange thing raises.For example,I test the command below:

//the pUnk is passed from client by Advise(......)
HRESULT hResult=pUnk->QueryInterface(IID_IUnknown,(void**)(&pIUnknown));

Now I make use of FormatMessage(.....) to check the value of hResult,
the string is "The operation completed successfully";
Whereas QueryInterface(.....) does not implement!(I add MessageBox(....) topside to prompt me),
I want to known the reason,who can help me?thanks a lot!

//A slice of my source code
//MyCom.idl
import "unknwn.idl" ;
import "OCIDL.IDL" ;
//IMyEventSink interface,CMyEventSink object do the realization
[
object,
uuid(5A76E364-92E6-4d90-B575-31C0497FD174),
helpstring("IMyEventSink Interface"),
pointer_default(unique)
]

interface IMyEventSink : IUnknown
{
HRESULT Test([in] DWORD dwShowNum) ;
};

//the rest omits
..............


Roll eyes | :rolleyes:

C/C++ code fans
GeneralRe: A Question of Using the Standard C++ to Programme Connectable Object in VC6.0 Pin
zjkw23-Apr-02 2:37
zjkw23-Apr-02 2:37 
GeneralActivex/VisualC++ Pin
Dr Anandhi18-Apr-02 0:40
Dr Anandhi18-Apr-02 0:40 
Generala question about WTL Pin
xsword17-Apr-02 21:48
xsword17-Apr-02 21:48 
GeneralRe: a question about WTL Pin
Paul M Watt17-Apr-02 22:08
mentorPaul M Watt17-Apr-02 22:08 
GeneralWhy this happened and how can I solve it Pin
chq1217-Apr-02 15:48
chq1217-Apr-02 15:48 
GeneralRe: Why this happened and how can I solve it Pin
Mike Nordell17-Apr-02 17:18
Mike Nordell17-Apr-02 17:18 
Questionatl book? Pin
bryce17-Apr-02 2:28
bryce17-Apr-02 2:28 
AnswerI think you should learn COM first. Pin
TomPeakz18-Apr-02 17:07
TomPeakz18-Apr-02 17:07 
GeneralRe: I think you should learn COM first. Pin
bryce21-Apr-02 14:54
bryce21-Apr-02 14:54 
AnswerRe: atl book? Pin
Paul M Watt18-Apr-02 17:39
mentorPaul M Watt18-Apr-02 17:39 
QuestionHow to add a new service to Outlook (2k/XP) just like Exchange ? Pin
TomPeakz16-Apr-02 20:34
TomPeakz16-Apr-02 20:34 
QuestionHow to use mspaint.exe as OLE server Pin
Rover16-Apr-02 15:34
Rover16-Apr-02 15:34 
QuestionIs there a way to have an ActiveX control (windowless) repaint itself within IE? Pin
Bart-Man16-Apr-02 10:51
Bart-Man16-Apr-02 10:51 
AnswerSolution to my problem Pin
Bart-Man17-Apr-02 9:49
Bart-Man17-Apr-02 9:49 
GeneralProblem: Not able to run ActiveMovie3 OCX in worker thread. Pin
15-Apr-02 23:02
suss15-Apr-02 23:02 
GeneralRe: Problem: Not able to run ActiveMovie3 OCX in worker thread. Pin
Shurik200116-Apr-02 10:20
Shurik200116-Apr-02 10:20 
GeneralStatic Methods in COM?!?!??!?! Pin
15-Apr-02 4:43
suss15-Apr-02 4:43 

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.