Click here to Skip to main content
14,774,302 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ and Visual Studio help? Error messages etc.. Pin
Richard MacCutchan8-Jun-16 23:26
mveRichard MacCutchan8-Jun-16 23:26 
QuestionMemory leak in VC++ 6.0 when store lots of objects in CArray,please help me! Pin
lostangels5-Jun-16 5:37
Memberlostangels5-Jun-16 5:37 
AnswerRe: Memory leak in VC++ 6.0 when store lots of objects in CArray,please help me! Pin
Daniel Pfeffer5-Jun-16 22:39
professionalDaniel Pfeffer5-Jun-16 22:39 
AnswerRe: Memory leak in VC++ 6.0 when store lots of objects in CArray,please help me! Pin
Richard MacCutchan5-Jun-16 23:35
mveRichard MacCutchan5-Jun-16 23:35 
AnswerRe: Memory leak in VC++ 6.0 when store lots of objects in CArray,please help me! Pin
Victor Nijegorodov6-Jun-16 2:17
MemberVictor Nijegorodov6-Jun-16 2:17 
AnswerRe: Memory leak in VC++ 6.0 when store lots of objects in CArray,please help me! Pin
leon de boer6-Jun-16 4:27
Memberleon de boer6-Jun-16 4:27 
QuestionType checking Pin
Rahul Thengadi4-Jun-16 11:26
MemberRahul Thengadi4-Jun-16 11:26 
AnswerRe: Type checking Pin
leon de boer4-Jun-16 22:03
Memberleon de boer4-Jun-16 22:03 
You can either
1.) Scan each character of the entry before doing anything with it, this is the generic form of a parser.
2.) Try converting it and if you get an error prompt, reloop and ask for entry again.
3.) Look for an error and if found exit program with error notification.

Which depends on what the source of the number is and what your goals with your program are. For example if the source of the number is a file not much use prompting and asking for re-entry ... files can't do anything about it Smile | :)

So the question comes down as, in the program you are writing what do you think it should do? What is the most elegant and most useful?
In vino veritas


modified 5-Jun-16 3:13am.

Questionwhat is the difference between definition numeric value 0.0, .0, 0.? Pin
Member 125258022-Jun-16 23:23
MemberMember 125258022-Jun-16 23:23 
AnswerRe: what is the difference between definition numeric value 0.0, .0, 0.? Pin
Richard MacCutchan3-Jun-16 0:40
mveRichard MacCutchan3-Jun-16 0:40 
GeneralRe: what is the difference between definition numeric value 0.0, .0, 0.? Pin
Member 125258023-Jun-16 2:59
MemberMember 125258023-Jun-16 2:59 
GeneralRe: what is the difference between definition numeric value 0.0, .0, 0.? Pin
Jochen Arndt3-Jun-16 3:38
professionalJochen Arndt3-Jun-16 3:38 
GeneralRe: what is the difference between definition numeric value 0.0, .0, 0.? Pin
Richard MacCutchan3-Jun-16 3:42
mveRichard MacCutchan3-Jun-16 3:42 
QuestionSyntax of How to Call a Member Function via a Function Pointer Pin
Bram van Kampen1-Jun-16 15:37
MemberBram van Kampen1-Jun-16 15:37 
AnswerRe: Syntax of How to Call a Member Function via a Function Pointer Pin
Jochen Arndt1-Jun-16 22:09
professionalJochen Arndt1-Jun-16 22:09 
SuggestionRe: Syntax of How to Call a Member Function via a Function Pointer Pin
Richard MacCutchan1-Jun-16 22:09
mveRichard MacCutchan1-Jun-16 22:09 
AnswerRe: Syntax of How to Call a Member Function via a Function Pointer Pin
leon de boer4-Jun-16 6:00
Memberleon de boer4-Jun-16 6:00 
Questionfor project Pin
Member 125588541-Jun-16 0:22
MemberMember 125588541-Jun-16 0:22 
AnswerRe: for project Pin
CPallini1-Jun-16 0:33
mveCPallini1-Jun-16 0:33 
AnswerRe: for project Pin
Richard MacCutchan1-Jun-16 0:39
mveRichard MacCutchan1-Jun-16 0:39 
QuestionRe: for project Pin
David Crow1-Jun-16 3:50
MemberDavid Crow1-Jun-16 3:50 
AnswerRe: for project Pin
Bram van Kampen1-Jun-16 16:26
MemberBram van Kampen1-Jun-16 16:26 
QuestionHow to determine file offset of each section using RVA in pe file ? Pin
Member 1254265131-May-16 2:26
MemberMember 1254265131-May-16 2:26 
AnswerRe: How to determine file offset of each section using RVA in pe file ? Pin
Richard MacCutchan31-May-16 3:00
mveRichard MacCutchan31-May-16 3:00 
AnswerRe: How to determine file offset of each section using RVA in pe file ? Pin
Bram van Kampen1-Jun-16 16:11
MemberBram van Kampen1-Jun-16 16:11 

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.