Click here to Skip to main content
12,897,242 members (49,357 online)

Managed C++/CLI

 
QuestionWindows Shutdown notification in a MFC Dialog app Pin
sunilkpv13-Sep-12 0:20
membersunilkpv13-Sep-12 0:20 
AnswerRe: Windows Shutdown notification in a MFC Dialog app Pin
Richard MacCutchan13-Sep-12 0:27
mvpRichard MacCutchan13-Sep-12 0:27 
GeneralRe: Windows Shutdown notification in a MFC Dialog app Pin
Rajesh R Subramanian20-Sep-12 3:36
memberRajesh R Subramanian20-Sep-12 3:36 
GeneralRe: Windows Shutdown notification in a MFC Dialog app Pin
Richard MacCutchan20-Sep-12 3:56
mvpRichard MacCutchan20-Sep-12 3:56 
GeneralRe: Windows Shutdown notification in a MFC Dialog app Pin
Wes Aday20-Sep-12 5:53
memberWes Aday20-Sep-12 5:53 
GeneralRe: Windows Shutdown notification in a MFC Dialog app Pin
Richard MacCutchan20-Sep-12 6:09
mvpRichard MacCutchan20-Sep-12 6:09 
GeneralRe: Windows Shutdown notification in a MFC Dialog app Pin
sunilkpv20-Sep-12 4:58
membersunilkpv20-Sep-12 4:58 
QuestionQuestion about ternary operator in initializer list Pin
elelont211-Sep-12 22:29
memberelelont211-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)
MyClass2(const AnotherClass* data) :
      myObj(data ? data->x : MyClass()) --compile error


Version 2)
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
memberjschell12-Sep-12 8:13 
AnswerRe: Question about ternary operator in initializer list Pin
Richard MacCutchan12-Sep-12 22:32
mvpRichard MacCutchan12-Sep-12 22:32 
Questionimage to speech and speech to image Pin
buzz chemistry11-Sep-12 8:11
memberbuzz chemistry11-Sep-12 8:11 
AnswerRe: image to speech and speech to image Pin
Kenneth Haugland11-Sep-12 10:20
memberKenneth Haugland11-Sep-12 10:20 
GeneralRe: image to speech and speech to image Pin
buzz chemistry4-Jan-13 13:45
memberbuzz chemistry4-Jan-13 13:45 
AnswerRe: image to speech and speech to image Pin
jschell11-Sep-12 11:56
memberjschell11-Sep-12 11:56 
GeneralRe: image to speech and speech to image Pin
buzz chemistry4-Jan-13 13:47
memberbuzz chemistry4-Jan-13 13:47 
Questionc++ small project Pin
Asmita s. patil9-Sep-12 4:38
memberAsmita s. patil9-Sep-12 4:38 
AnswerCross post Pin
Wes Aday9-Sep-12 5:51
memberWes Aday9-Sep-12 5:51 
AnswerRe: c++ small project Pin
Shameel19-Sep-12 23:48
memberShameel19-Sep-12 23:48 
QuestionMCF Class Templates Pin
davidconnerley5-Sep-12 10:34
memberdavidconnerley5-Sep-12 10:34 
AnswerRe: MCF Class Templates Pin
Wes Aday5-Sep-12 11:49
memberWes Aday5-Sep-12 11:49 
SuggestionRe: MCF Class Templates Pin
Albert Holguin5-Sep-12 12:30
memberAlbert Holguin5-Sep-12 12:30 
GeneralRe: MCF Class Templates Pin
Wes Aday5-Sep-12 12:56
memberWes Aday5-Sep-12 12:56 
AnswerRe: MCF Class Templates Pin
Albert Holguin5-Sep-12 12:31
memberAlbert Holguin5-Sep-12 12:31 
AnswerRe: MCF Class Templates Pin
Richard MacCutchan5-Sep-12 23:25
mvpRichard MacCutchan5-Sep-12 23:25 
Questionheap corruption error Pin
igotmymtv200521-Aug-12 9:33
memberigotmymtv200521-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.


Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 20 Apr 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid