Click here to Skip to main content
15,891,136 members
Home / Discussions / COM
   

COM

 
GeneralOut of proc Interface Implementation Problem Pin
thomas_tom9917-Apr-05 23:27
thomas_tom9917-Apr-05 23:27 
GeneralRe: Out of proc Interface Implementation Problem Pin
Anonymous18-Apr-05 4:18
Anonymous18-Apr-05 4:18 
GeneralRe: Out of proc Interface Implementation Problem Pin
Peter Ritchie23-Apr-05 7:43
Peter Ritchie23-Apr-05 7:43 
GeneralISyncMgrRegister and other Interfaces Pin
MichaelPine17-Apr-05 21:55
MichaelPine17-Apr-05 21:55 
GeneralRe: ISyncMgrRegister and other Interfaces Pin
Peter Ritchie23-Apr-05 7:44
Peter Ritchie23-Apr-05 7:44 
GeneralAxWebBrowser trouble Pin
cSharpBastard17-Apr-05 21:22
cSharpBastard17-Apr-05 21:22 
GeneralRe: AxWebBrowser trouble Pin
Peter Ritchie23-Apr-05 7:47
Peter Ritchie23-Apr-05 7:47 
QuestionOverloading methods in COM-Components. How to use the UNION data type? Pin
knaster bax14-Apr-05 22:09
knaster bax14-Apr-05 22:09 
As far as I understood overloading with COM/AchtiveX-Components is not possible, i.e. you cannot have a component, that exposes overloaded methods like a C++ class. Something like

mycomponent::mymethod(long lVal)
mycomponent::mymethod(double dVal)

would not work. Am I right?

Now I'm wondering if the "Union" type in MIDL could be a solution to build an interface to pass for example exactly two well defined types (e.g. long and double) as a parameter to a method.

Of course I could use a variant as parameter and check inside the method if the passed parameters are of the types I wanted, but that would be some kind of late binding that would be checked at run time. If it was possible to pass some union, checks for right types would be done at compile time (early binding).

So, who can give me an example of how to handle union datatypes with automation COM components and what the interface should look like?

AnswerRe: Overloading methods in COM-Components. How to use the UNION data type? Pin
rwestgraham26-Apr-05 14:29
rwestgraham26-Apr-05 14:29 
GeneralEstablish a virtual COM port for Bluetooth USB Dongle Pin
Tao Wang13-Apr-05 23:36
Tao Wang13-Apr-05 23:36 
GeneralRe: Establish a virtual COM port for Bluetooth USB Dongle Pin
Peter Ritchie23-Apr-05 8:03
Peter Ritchie23-Apr-05 8:03 
GeneralUsing a COM component Pin
MDowning13-Apr-05 13:35
MDowning13-Apr-05 13:35 
GeneralRe: Using a COM component Pin
MDowning13-Apr-05 13:43
MDowning13-Apr-05 13:43 
GeneralRe: Using a COM component Pin
rwestgraham13-Apr-05 14:25
rwestgraham13-Apr-05 14:25 
GeneralRe: Using a COM component Pin
Mike Dimmick14-Apr-05 0:13
Mike Dimmick14-Apr-05 0:13 
GeneralRe: Using a COM component Pin
Ed K19-Apr-05 10:58
Ed K19-Apr-05 10:58 
Generallate binding with com - please help! Pin
abandito13-Apr-05 7:41
abandito13-Apr-05 7:41 
GeneralRe: late binding with com - please help! Pin
Peter Ritchie23-Apr-05 8:08
Peter Ritchie23-Apr-05 8:08 
Generalwarning MIDL2039 Pin
PJ Arends13-Apr-05 6:22
professionalPJ Arends13-Apr-05 6:22 
GeneralRe: warning MIDL2039 Pin
Peter Ritchie23-Apr-05 7:07
Peter Ritchie23-Apr-05 7:07 
GeneralRe: warning MIDL2039 Pin
PJ Arends23-Apr-05 14:43
professionalPJ Arends23-Apr-05 14:43 
GeneralWebBrowser Key Event Pin
BorisKco13-Apr-05 6:12
BorisKco13-Apr-05 6:12 
GeneralRe: WebBrowser Key Event Pin
vishalmore17-Apr-05 21:28
vishalmore17-Apr-05 21:28 
GeneralRe: WebBrowser Key Event Pin
BorisKco19-Apr-05 3:43
BorisKco19-Apr-05 3:43 
GeneralC#/COM+-->WIN98SE Pin
langdotnet12-Apr-05 9:51
langdotnet12-Apr-05 9:51 

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.