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

C / C++ / MFC

 
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 
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 
That is not a big deal.
As already suggested, you don't need to return directly the DialogBox call result, quite the opposite, is better break it into a two stage approach:
  1. Assign the DialogBox return value to an (INT_PTR) variable (say result).
  2. Based on result value, return an appropriate (int) number from the WinMain function.

This is convenient, since DialogBox and WinMain use different conventions for they return values (see DialogBox[^] and WinMain[^] at MSDN).
Veni, vidi, vici.

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 
AnswerRe: OT Just curious... Pin
CPallini26-Sep-12 10:55
mveCPallini26-Sep-12 10:55 
GeneralRe: OT Just curious... Pin
jeron126-Sep-12 11:02
jeron126-Sep-12 11:02 
GeneralRe: OT Just curious... Pin
CPallini26-Sep-12 11:14
mveCPallini26-Sep-12 11:14 
GeneralRe: OT Just curious... Pin
jeron126-Sep-12 12:15
jeron126-Sep-12 12:15 

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.