Click here to Skip to main content
15,907,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Advice for Books Pin
vnm613-May-04 21:01
vnm613-May-04 21:01 
GeneralCATCH_ALL and OnCtlColor Pin
Coremn12-May-04 15:01
Coremn12-May-04 15:01 
GeneralRe: CATCH_ALL and OnCtlColor Pin
monrobot1312-May-04 15:29
monrobot1312-May-04 15:29 
GeneralRe: CATCH_ALL and OnCtlColor Pin
Coremn12-May-04 15:42
Coremn12-May-04 15:42 
GeneralRe: CATCH_ALL and OnCtlColor Pin
Coremn12-May-04 16:17
Coremn12-May-04 16:17 
GeneralRe: CATCH_ALL and OnCtlColor Pin
Ryan Binns12-May-04 18:02
Ryan Binns12-May-04 18:02 
GeneralInterface Methods Pin
monrobot1312-May-04 14:20
monrobot1312-May-04 14:20 
GeneralRe: Interface Methods Pin
Milton Karimbekallil12-May-04 21:06
Milton Karimbekallil12-May-04 21:06 
hi
One - Yes, An interface method can have parameters with default values provided the parameter shud be optional too. The parameter settings while creating the function defenition in IDL is as fllows:

[in] short i, [in] short j, [in, out, optional, defaultvalue(117)] short* k, [out, retval] short* l

and the c++ function signature will be:

STDMETHODIMP MyClass::Test(short i, short j, short *k, short *l)

Two - A class that implimets an interface can have constructor with parameters. But no way to use that. If you use CoCreateInstance to create the client then we can't use the c++ class name directly and so cunstructor parameter also. Only way where we can use the c++ class name to create the com class is CComObject<MyClass>. But even this CComObject does not accept constructor initializers.

rgds...mil10
GeneralEXCEPTION_BREAKPOINT not raised Pin
Brian Tietz12-May-04 14:18
Brian Tietz12-May-04 14:18 
GeneralRe: EXCEPTION_BREAKPOINT not raised Pin
Ryan Binns12-May-04 18:21
Ryan Binns12-May-04 18:21 
GeneralATL 7 WTL 7.1 Pin
monrobot1312-May-04 13:59
monrobot1312-May-04 13:59 
GeneralRe: ATL 7 WTL 7.1 Pin
Michael Dunn12-May-04 15:37
sitebuilderMichael Dunn12-May-04 15:37 
GeneralRe: ATL 7 WTL 7.1 Pin
monrobot1312-May-04 16:09
monrobot1312-May-04 16:09 
QuestionMessageBox Not Displayed from Destructor? Pin
Justin Cooke12-May-04 11:56
Justin Cooke12-May-04 11:56 
AnswerRe: MessageBox Not Displayed from Destructor? Pin
Diddy14-May-04 0:56
Diddy14-May-04 0:56 
GeneralRe: MessageBox Not Displayed from Destructor? Pin
Justin Cooke14-May-04 6:41
Justin Cooke14-May-04 6:41 
GeneralRe: MessageBox Not Displayed from Destructor? Pin
Diddy18-May-04 1:19
Diddy18-May-04 1:19 
GeneralRemoval of source control (VSS) Pin
Janovetz12-May-04 11:56
Janovetz12-May-04 11:56 
Generalfade screen Pin
johansmits12-May-04 11:16
johansmits12-May-04 11:16 
GeneralRe: fade screen Pin
Christian Graus12-May-04 12:13
protectorChristian Graus12-May-04 12:13 
Generalglobal #define !!! Pin
Hesham Amin12-May-04 10:42
Hesham Amin12-May-04 10:42 
GeneralRe: global #define !!! Pin
Christopher Lloyd12-May-04 11:07
Christopher Lloyd12-May-04 11:07 
Generalthank you but... Pin
Hesham Amin12-May-04 11:14
Hesham Amin12-May-04 11:14 
GeneralRe: thank you but... Pin
Christopher Lloyd13-May-04 1:52
Christopher Lloyd13-May-04 1:52 
GeneralRe: thank you but... Pin
Hesham Amin13-May-04 4:14
Hesham Amin13-May-04 4:14 

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.