Click here to Skip to main content
15,889,266 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to Convert palette buffer to RGB buffer Pin
CPallini26-Sep-12 22:09
mveCPallini26-Sep-12 22:09 
QuestionDialogBox 64bit ? Pin
Smart Arab26-Sep-12 0:07
Smart Arab26-Sep-12 0:07 
AnswerRe: DialogBox 64bit ? Pin
Richard MacCutchan26-Sep-12 2:42
mveRichard MacCutchan26-Sep-12 2:42 
QuestionRe: DialogBox 64bit ? Pin
CPallini26-Sep-12 3:40
mveCPallini26-Sep-12 3:40 
AnswerRe: DialogBox 64bit ? Pin
Smart Arab26-Sep-12 5:01
Smart Arab26-Sep-12 5:01 
GeneralRe: DialogBox 64bit ? Pin
Richard MacCutchan26-Sep-12 5:12
mveRichard MacCutchan26-Sep-12 5:12 
GeneralRe: DialogBox 64bit ? Pin
Smart Arab26-Sep-12 5:54
Smart Arab26-Sep-12 5:54 
GeneralRe: DialogBox 64bit ? Pin
Jochen Arndt26-Sep-12 6:10
professionalJochen Arndt26-Sep-12 6:10 
In the special case of WinMain you may use a static cast for the return value without running into any problems:
C++
return static_cast<int>(DialogProc());

Or just assign the return value to a variable and set the value returned by WinMain (usually a non-zero value if the program terminates due to errors):
C++
INT_PTR nRet = DialogProc();
return nRet != ID_OK ? 1 : 0;

GeneralRe: DialogBox 64bit ? Pin
Smart Arab26-Sep-12 22:45
Smart Arab26-Sep-12 22:45 
GeneralRe: DialogBox 64bit ? Pin
Richard MacCutchan26-Sep-12 6:29
mveRichard MacCutchan26-Sep-12 6:29 
GeneralRe: DialogBox 64bit ? Pin
Smart Arab26-Sep-12 22:42
Smart Arab26-Sep-12 22:42 
GeneralRe: DialogBox 64bit ? Pin
CPallini26-Sep-12 11:47
mveCPallini26-Sep-12 11:47 
GeneralRe: DialogBox 64bit ? Pin
Smart Arab26-Sep-12 22:39
Smart Arab26-Sep-12 22:39 
GeneralRe: DialogBox 64bit ? Pin
CPallini26-Sep-12 22:45
mveCPallini26-Sep-12 22:45 
QuestionHow to make slider movement smooth in MFC.? Pin
mbatra3125-Sep-12 20:39
mbatra3125-Sep-12 20:39 
QuestionRandom Number Pin
pix_programmer25-Sep-12 20:05
pix_programmer25-Sep-12 20:05 
AnswerRe: Random Number Pin
Ingo25-Sep-12 20:38
Ingo25-Sep-12 20:38 
AnswerRe: Random Number Pin
CPallini25-Sep-12 22:25
mveCPallini25-Sep-12 22:25 
AnswerRe: Random Number Pin
Ingo25-Sep-12 23:55
Ingo25-Sep-12 23:55 
GeneralRe: Random Number Pin
CPallini26-Sep-12 0:28
mveCPallini26-Sep-12 0:28 
GeneralRe: Random Number Pin
Ingo26-Sep-12 0:35
Ingo26-Sep-12 0:35 
AnswerRe: Random Number Pin
_AnsHUMAN_ 26-Sep-12 0:12
_AnsHUMAN_ 26-Sep-12 0:12 
AnswerRe: Random Number Pin
Software_Developer26-Sep-12 8:00
Software_Developer26-Sep-12 8:00 
AnswerOT Just curious... Pin
jeron126-Sep-12 8:21
jeron126-Sep-12 8:21 
QuestionRe: OT Just curious... Pin
David Crow26-Sep-12 10:52
David Crow26-Sep-12 10:52 

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.