Click here to Skip to main content
15,890,506 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionWindows Shutdown notification in a MFC Dialog app Pin
Sunil P V13-Sep-12 0:20
Sunil P V13-Sep-12 0:20 
AnswerRe: Windows Shutdown notification in a MFC Dialog app Pin
Richard MacCutchan13-Sep-12 0:27
mveRichard MacCutchan13-Sep-12 0:27 
GeneralRe: Windows Shutdown notification in a MFC Dialog app Pin
Rajesh R Subramanian20-Sep-12 3:36
professionalRajesh R Subramanian20-Sep-12 3:36 
GeneralRe: Windows Shutdown notification in a MFC Dialog app Pin
Richard MacCutchan20-Sep-12 3:56
mveRichard MacCutchan20-Sep-12 3:56 
GeneralRe: Windows Shutdown notification in a MFC Dialog app Pin
Wes Aday20-Sep-12 5:53
professionalWes Aday20-Sep-12 5:53 
GeneralRe: Windows Shutdown notification in a MFC Dialog app Pin
Richard MacCutchan20-Sep-12 6:09
mveRichard MacCutchan20-Sep-12 6:09 
GeneralRe: Windows Shutdown notification in a MFC Dialog app Pin
Sunil P V20-Sep-12 4:58
Sunil P V20-Sep-12 4:58 
QuestionQuestion about ternary operator in initializer list Pin
elelont211-Sep-12 22:29
elelont211-Sep-12 22:29 
Hi,
i have two classes, and i am trying to use the ternary operator in the initializer list to initialize Class2 memeber to some value or null based on the data in MyClass2 constructor:

MyClass
{
...
int x;
int y;
}

MyClass2
{
...
MyClass myObj;
}


MyClass2 Constructor:

Version 1)
C++
MyClass2(const AnotherClass* data) :
      myObj(data ? data->x : MyClass()) --compile error


Version 2)
C++
MyClass2(const AnotherClass* data) :
      myObj(data ? data->x : MyClass my) --synatax error


I get the following error: error: no match for ternary 'operator?:' in ...

How could i fix this?
Thanks
AnswerRe: Question about ternary operator in initializer list Pin
jschell12-Sep-12 8:13
jschell12-Sep-12 8:13 
AnswerRe: Question about ternary operator in initializer list Pin
Richard MacCutchan12-Sep-12 22:32
mveRichard MacCutchan12-Sep-12 22:32 
Questionimage to speech and speech to image Pin
buzz chemistry11-Sep-12 8:11
buzz chemistry11-Sep-12 8:11 
AnswerRe: image to speech and speech to image Pin
Kenneth Haugland11-Sep-12 10:20
mvaKenneth Haugland11-Sep-12 10:20 
GeneralRe: image to speech and speech to image Pin
buzz chemistry4-Jan-13 13:45
buzz chemistry4-Jan-13 13:45 
AnswerRe: image to speech and speech to image Pin
jschell11-Sep-12 11:56
jschell11-Sep-12 11:56 
GeneralRe: image to speech and speech to image Pin
buzz chemistry4-Jan-13 13:47
buzz chemistry4-Jan-13 13:47 
Questionc++ small project Pin
Asmita s. patil9-Sep-12 4:38
Asmita s. patil9-Sep-12 4:38 
AnswerCross post Pin
Wes Aday9-Sep-12 5:51
professionalWes Aday9-Sep-12 5:51 
AnswerRe: c++ small project Pin
Shameel19-Sep-12 23:48
professionalShameel19-Sep-12 23:48 
QuestionMCF Class Templates Pin
davidconnerley5-Sep-12 10:34
davidconnerley5-Sep-12 10:34 
AnswerRe: MCF Class Templates Pin
Wes Aday5-Sep-12 11:49
professionalWes Aday5-Sep-12 11:49 
SuggestionRe: MCF Class Templates Pin
Albert Holguin5-Sep-12 12:30
professionalAlbert Holguin5-Sep-12 12:30 
GeneralRe: MCF Class Templates Pin
Wes Aday5-Sep-12 12:56
professionalWes Aday5-Sep-12 12:56 
AnswerRe: MCF Class Templates Pin
Albert Holguin5-Sep-12 12:31
professionalAlbert Holguin5-Sep-12 12:31 
AnswerRe: MCF Class Templates Pin
Richard MacCutchan5-Sep-12 23:25
mveRichard MacCutchan5-Sep-12 23:25 
Questionheap corruption error Pin
igotmymtv200521-Aug-12 9:33
igotmymtv200521-Aug-12 9:33 

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.