Click here to Skip to main content
15,895,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to create a window with a thin border?! I can't believe this isn't working any more! [modified] Pin
Axonn Echysttas11-Jul-06 11:13
Axonn Echysttas11-Jul-06 11:13 
GeneralRe: How to create a window with a thin border?! I can't believe this isn't working any more! Pin
User 171649211-Jul-06 13:19
professionalUser 171649211-Jul-06 13:19 
GeneralRe: How to create a window with a thin border?! I can't believe this isn't working any more! Pin
Axonn Echysttas11-Jul-06 20:09
Axonn Echysttas11-Jul-06 20:09 
QuestionUser Input revisted [modified] Pin
Harold_Wishes11-Jul-06 10:51
Harold_Wishes11-Jul-06 10:51 
AnswerRe: User Input revisted Pin
Zac Howland11-Jul-06 11:09
Zac Howland11-Jul-06 11:09 
GeneralRe: User Input revisted Pin
Harold_Wishes11-Jul-06 12:27
Harold_Wishes11-Jul-06 12:27 
GeneralRe: User Input revisted Pin
Zac Howland11-Jul-06 14:16
Zac Howland11-Jul-06 14:16 
AnswerRe: User Input revisted [modified] Pin
earl11-Jul-06 13:13
earl11-Jul-06 13:13 
Personally, I'd let the user enter whatever and not read anything until he or she hits enter. After he or she hit enter I'd try and decide if what they typed was a valid number; doing something like
<code>

char buff[1024]; //whatever the user entered
unsigned int value;
int charsRead;

bool validEntry = false;
while(!validEntry) {
//prompt the user

//get a line from the user via whatever method...


if (sscanf(buff, "%u%n", &value, &charsRead) == 1) {
//can further compare charsRead w/ strlen if you want, ie
//test strlen(buff) == charsRead
//
validEntry = true;
}
}
</code>

earl


-- modified at 19:14 Tuesday 11th July, 2006
GeneralRe: User Input revisted Pin
Zac Howland11-Jul-06 14:14
Zac Howland11-Jul-06 14:14 
QuestionHow to extract data from webbrowser controle in visual c++ 6? Pin
method00711-Jul-06 9:44
method00711-Jul-06 9:44 
AnswerRe: How to extract data from webbrowser controle in visual c++ 6? Pin
David Crow11-Jul-06 10:10
David Crow11-Jul-06 10:10 
GeneralRe: How to extract data from webbrowser controle in visual c++ 6? Pin
method00711-Jul-06 10:14
method00711-Jul-06 10:14 
GeneralRe: How to extract data from webbrowser controle in visual c++ 6? Pin
David Crow11-Jul-06 10:26
David Crow11-Jul-06 10:26 
GeneralRe: How to extract data from webbrowser controle in visual c++ 6? Pin
method00711-Jul-06 10:47
method00711-Jul-06 10:47 
GeneralRe: How to extract data from webbrowser controle in visual c++ 6? Pin
David Crow11-Jul-06 10:56
David Crow11-Jul-06 10:56 
GeneralRe: How to extract data from webbrowser controle in visual c++ 6? [modified] Pin
method00711-Jul-06 11:01
method00711-Jul-06 11:01 
GeneralRe: How to extract data from webbrowser controle in visual c++ 6? Pin
Maximilien11-Jul-06 16:04
Maximilien11-Jul-06 16:04 
GeneralRe: How to extract data from webbrowser controle in visual c++ 6? Pin
David Crow12-Jul-06 2:32
David Crow12-Jul-06 2:32 
GeneralRe: How to extract data from webbrowser controle in visual c++ 6? [modified] Pin
method00712-Jul-06 3:37
method00712-Jul-06 3:37 
GeneralRe: How to extract data from webbrowser controle in visual c++ 6? Pin
David Crow12-Jul-06 4:57
David Crow12-Jul-06 4:57 
GeneralRe: How to extract data from webbrowser controle in visual c++ 6? Pin
method00712-Jul-06 5:07
method00712-Jul-06 5:07 
GeneralRe: How to extract data from webbrowser controle in visual c++ 6? Pin
David Crow12-Jul-06 5:34
David Crow12-Jul-06 5:34 
QuestionVC7 Compiler Linker Environment Variables Pin
Dave_Roach11-Jul-06 9:37
Dave_Roach11-Jul-06 9:37 
AnswerRe: VC7 Compiler Linker Environment Variables Pin
Abhi Lahare11-Jul-06 18:36
Abhi Lahare11-Jul-06 18:36 
GeneralRe: VC7 Compiler Linker Environment Variables Pin
Dave_Roach12-Jul-06 3:43
Dave_Roach12-Jul-06 3:43 

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.