Click here to Skip to main content
15,909,829 members
Home / Discussions / COM
   

COM

 
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 
GeneralRe: Static Methods in COM?!?!??!?! Pin
Paul M Watt15-Apr-02 8:02
mentorPaul M Watt15-Apr-02 8:02 
Anonymous wrote:
At the moment I am trying to work out whether you can have a static method/property in an interface (equivalent to static function in a C++ class).

Because static member functions are not put in the VTable for functions of a class, I would suggest that you do not declare a static method directly in your interface that you would like to expose. However, There should be no problem if the way that you choose to implement a function in your interface that calls a static method, this should accomplish the same goal.

class X
{
...
static HRESULT H_function ();

// These functions are exposed in IInterface.
...
HRESULT static_function ()
{
  return H_function();
}

};


A bit contrived, but hopefully it explains the point.

Anonymous wrote:
is it possible to publish a non-implemented interface for use by third parties in cases where I have defined some 'pure-virtual' methods - would this be distributed as a type library???

You can publish any interface that you would like. Putting the definitions in a type library simply makes it accessible to languages that pragmatically read the type library to gain access to the objects inside, so this would be an acceptable way of doing it.






Checkout my Guide to Win32 Paint for Intermediates
GeneralRe: Static Methods in COM?!?!??!?! Pin
15-Apr-02 21:53
suss15-Apr-02 21:53 
GeneralExtracting a gif from Excel file Pin
Lilian Chan-Grant15-Apr-02 3:10
Lilian Chan-Grant15-Apr-02 3:10 
GeneralNew Subject Pin
14-Apr-02 21:51
suss14-Apr-02 21:51 
GeneralRe: New Subject Pin
Paul M Watt15-Apr-02 8:06
mentorPaul M Watt15-Apr-02 8:06 
GeneralRe: New Subject Pin
bryce21-Apr-02 14:56
bryce21-Apr-02 14:56 
GeneralNew Subject Pin
14-Apr-02 21:48
suss14-Apr-02 21:48 
GeneralNew Subject Pin
14-Apr-02 21:43
suss14-Apr-02 21:43 
GeneralRe: New Subject Pin
Amit Dey15-Apr-02 6:34
Amit Dey15-Apr-02 6:34 
GeneralNew Subject Pin
14-Apr-02 21:41
suss14-Apr-02 21:41 
GeneralRe: New Subject Pin
Mazdak14-Apr-02 22:31
Mazdak14-Apr-02 22:31 
GeneralRe: New Subject Pin
bryce21-Apr-02 14:59
bryce21-Apr-02 14:59 
GeneralTest Pin
14-Apr-02 21:36
suss14-Apr-02 21:36 
GeneralRe: Test Pin
bryce21-Apr-02 15:00
bryce21-Apr-02 15:00 
GeneralloadXML does not load PLEASE HELP! Pin
j_mehdi13-Apr-02 5:09
j_mehdi13-Apr-02 5:09 
GeneralUrgent!! Why this error take place and how can i deal with it Pin
chq1212-Apr-02 18:36
chq1212-Apr-02 18:36 
GeneralRe: Urgent!! Why this error take place and how can i deal with it Pin
Amit Dey15-Apr-02 6:31
Amit Dey15-Apr-02 6:31 
Questionhow to connect to component remotely Pin
Bhikshapathi Gorantla12-Apr-02 1:18
Bhikshapathi Gorantla12-Apr-02 1:18 

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.