default arguments for COM interface functions

M

Mohammad

Hi:

Is it possible to use default arguments for COM interface functions
when programming in C++? Can one do in the component's IDL file? I
know it is possible in Visual Basic.

Thanks,

MJ
 
M

Mike Wahler

Mohammad said:
Hi:

Is it possible to use default arguments for COM interface functions
when programming in C++?

'COM' has not meaning in the C++ language. Any C++
function can have default argument(s), subject to the
syntactical rules governing them. If 'COM' somehow
prohibits this, to find out why, read about it where
it's topical. Here, it's not.
Can one do in the component's IDL file?

Just as 'COM', 'IDL' has no meaning in C++.
I
know it is possible in Visual Basic.

Here, we only speak (standard) C++.

Try asking about this in a Windows programming group.
Find the Windows groups at www.msdn.microsoft.com
and/or www.groups.google.com and/or www.usenet.org

-Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top