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

C / C++ / MFC

 
GeneralRe: How to check whether a buffer contains a double number? Pin
George23-Oct-03 20:52
George23-Oct-03 20:52 
GeneralRe: How to check whether a buffer contains a double number? Pin
Dominik Reichl4-Oct-03 1:28
Dominik Reichl4-Oct-03 1:28 
GeneralRe: How to check whether a buffer contains a double number? Pin
Bo Hunter4-Oct-03 9:25
Bo Hunter4-Oct-03 9:25 
GeneralRe: How to check whether a buffer contains a double number? Pin
George24-Oct-03 16:45
George24-Oct-03 16:45 
GeneralRe: How to check whether a buffer contains a double number? Pin
Dominik Reichl4-Oct-03 22:56
Dominik Reichl4-Oct-03 22:56 
GeneralRe: How to check whether a buffer contains a double number? Pin
George24-Oct-03 23:25
George24-Oct-03 23:25 
GeneralRe: How to check whether a buffer contains a double number? Pin
George24-Oct-03 16:42
George24-Oct-03 16:42 
GeneralRe: How to check whether a buffer contains a double number? Pin
Dominik Reichl4-Oct-03 23:00
Dominik Reichl4-Oct-03 23:00 
char[5]="..." simply isn't correct C. You can either use char[] or char*.

Even if it would be correct C, char[5]="123.4" would possibly result in a memory read violation because you allocate 5 characters and put 5 characters in it, but where do you put the ending NULL character? So, this causes a read violation, because the strtod function cannot find the NULL character.

I wonder why your compiler accepted char[5]="...". My compiler doesn't compile this.



_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? Wink | ;)
(doesn't work on NT)

GeneralRe: How to check whether a buffer contains a double number? Pin
George24-Oct-03 23:22
George24-Oct-03 23:22 
QuestionWhat's the difference between C's printf and C++'s cout? Pin
Link26003-Oct-03 16:17
Link26003-Oct-03 16:17 
AnswerRe: What's the difference between C's printf and C++'s cout? Pin
Ian Darling3-Oct-03 22:22
Ian Darling3-Oct-03 22:22 
GeneralRe: What's the difference between C's printf and C++'s cout? Pin
Mike Dimmick3-Oct-03 23:44
Mike Dimmick3-Oct-03 23:44 
GeneralRe: What's the difference between C's printf and C++'s cout? Pin
Ian Darling4-Oct-03 2:03
Ian Darling4-Oct-03 2:03 
GeneralRe: What's the difference between C's printf and C++'s cout? Pin
Kevin McFarlane4-Oct-03 0:23
Kevin McFarlane4-Oct-03 0:23 
GeneralCHtmlView - form without SUBMIT button Pin
trof3-Oct-03 14:36
trof3-Oct-03 14:36 
GeneralRe: CHtmlView - form without SUBMIT button Pin
Neville Franks4-Oct-03 11:59
Neville Franks4-Oct-03 11:59 
GeneralRe: CHtmlView - form without SUBMIT button Pin
trof5-Oct-03 9:07
trof5-Oct-03 9:07 
GeneralRe: CHtmlView - form without SUBMIT button Pin
Neville Franks5-Oct-03 11:01
Neville Franks5-Oct-03 11:01 
GeneralTransparent ActiveX Pin
johnnyXP3-Oct-03 12:48
johnnyXP3-Oct-03 12:48 
Generalhandle passing problem... Pin
R. Thomas3-Oct-03 10:42
R. Thomas3-Oct-03 10:42 
GeneralRe: handle passing problem... Pin
R. Thomas3-Oct-03 19:07
R. Thomas3-Oct-03 19:07 
GeneralRe: handle passing problem... Pin
J. Dunlap3-Oct-03 19:14
J. Dunlap3-Oct-03 19:14 
GeneralRe: handle passing problem... Pin
R. Thomas3-Oct-03 19:38
R. Thomas3-Oct-03 19:38 
GeneralRe: handle passing problem... Pin
J. Dunlap3-Oct-03 19:46
J. Dunlap3-Oct-03 19:46 
GeneralRe: handle passing problem... Pin
R. Thomas3-Oct-03 19:55
R. Thomas3-Oct-03 19:55 

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.