Click here to Skip to main content
15,891,529 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Running main() from a dialog-based control Pin
aaadetos14-Nov-04 16:16
aaadetos14-Nov-04 16:16 
GeneralRe: Running main() from a dialog-based control Pin
John R. Shaw17-Nov-04 7:39
John R. Shaw17-Nov-04 7:39 
GeneralRe: Running main() from a dialog-based control Pin
aaadetos19-Nov-04 21:39
aaadetos19-Nov-04 21:39 
GeneralRe: Running main() from a dialog-based control Pin
John R. Shaw20-Nov-04 11:03
John R. Shaw20-Nov-04 11:03 
GeneralCEdit subclass question Pin
nguyenvhn13-Nov-04 6:48
nguyenvhn13-Nov-04 6:48 
GeneralRe: CEdit subclass question Pin
BlackDice13-Nov-04 11:39
BlackDice13-Nov-04 11:39 
GeneralRe: CEdit subclass question Pin
nguyenvhn13-Nov-04 14:46
nguyenvhn13-Nov-04 14:46 
GeneralRe: CEdit subclass question Pin
John R. Shaw13-Nov-04 17:29
John R. Shaw13-Nov-04 17:29 
nguyenvhn wrote:
nChar -= 'a'-'A';

First off you might look at an ascii table before you do some thing this strange. Second I am not even going to calculate what value this will result in.

If you where going to convert ascii characters in this manner you would have to do the following:
if( 'a' <= nChar && nChar <= 'z' )
    nChar = 'A' + (nChar - 'a');

To do it properly you would do the following:
nChar = toupper(nChar);


Ok! I lied I (calculated) tried your equation and it worked (mathmaticaly), but don't do it.

INTP
GeneralRe: CEdit subclass question Pin
Ravi Bhavnani13-Nov-04 23:21
professionalRavi Bhavnani13-Nov-04 23:21 
GeneralCAsyncSocket Question Pin
Rassul Yunussov13-Nov-04 0:01
Rassul Yunussov13-Nov-04 0:01 
Generaltime critical thread Pin
LeeeNN12-Nov-04 20:17
LeeeNN12-Nov-04 20:17 
GeneralRe: time critical thread Pin
Michael Dunn13-Nov-04 5:39
sitebuilderMichael Dunn13-Nov-04 5:39 
GeneralRe: time critical thread Pin
Anonymous13-Nov-04 9:57
Anonymous13-Nov-04 9:57 
GeneralRe: time critical thread Pin
John R. Shaw13-Nov-04 17:49
John R. Shaw13-Nov-04 17:49 
GeneralPostThreadMessage Pin
includeh1012-Nov-04 19:17
includeh1012-Nov-04 19:17 
GeneralRe: PostThreadMessage Pin
peterchen12-Nov-04 19:50
peterchen12-Nov-04 19:50 
Questionemail ? Pin
BaldwinMartin12-Nov-04 18:25
BaldwinMartin12-Nov-04 18:25 
GeneralCTreeCtrl item display limit or multiline Pin
Pakosan12-Nov-04 18:02
Pakosan12-Nov-04 18:02 
GeneralHelp :: can't include afximpl.h in VC++.NET Pin
TooLeeDiN12-Nov-04 17:19
TooLeeDiN12-Nov-04 17:19 
GeneralOpen a specific file in a MFC single document Pin
Iceberg7612-Nov-04 17:05
Iceberg7612-Nov-04 17:05 
GeneralRe: Open a specific file in a MFC single document Pin
pubududilena12-Nov-04 20:36
pubududilena12-Nov-04 20:36 
GeneralRe: Open a specific file in a MFC single document Pin
Iceberg7613-Nov-04 11:29
Iceberg7613-Nov-04 11:29 
QuestionHow to add Picture to Label or Edit Control? Pin
pubududilena12-Nov-04 16:54
pubududilena12-Nov-04 16:54 
QuestionWhat to replace TcpListener? Pin
Link260012-Nov-04 16:53
Link260012-Nov-04 16:53 
QuestionHow to get a the file created or modified date Pin
Anonymous12-Nov-04 14:05
Anonymous12-Nov-04 14:05 

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.