Click here to Skip to main content
16,003,319 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem in initializing the structure member in VC++ Pin
PJ Arends19-Nov-05 13:32
professionalPJ Arends19-Nov-05 13:32 
AnswerRe: Problem in initializing the structure member in VC++ Pin
Gary R. Wheeler20-Nov-05 4:07
Gary R. Wheeler20-Nov-05 4:07 
GeneralRe: Problem in initializing the structure member in VC++ Pin
Sasikumar.SR20-Nov-05 22:54
Sasikumar.SR20-Nov-05 22:54 
QuestionLNK2005 error when using structure Pin
Sasikumar.SR19-Nov-05 2:19
Sasikumar.SR19-Nov-05 2:19 
AnswerRe: LNK2005 error when using structure Pin
Gary R. Wheeler19-Nov-05 5:36
Gary R. Wheeler19-Nov-05 5:36 
QuestionHow to round float number to the closest int?? Pin
Ming Luo19-Nov-05 0:44
Ming Luo19-Nov-05 0:44 
AnswerRe: How to round float number to the closest int?? Pin
toxcct19-Nov-05 0:48
toxcct19-Nov-05 0:48 
AnswerRe: How to round float number to the closest int?? Pin
Stan Shannon19-Nov-05 1:19
Stan Shannon19-Nov-05 1:19 
1.0000 / 0.2000 should give you 5. so the values must be a little different than you think.

In any case, one old trick is simply to add 0.5f to the result of the division. When you cast the result to an int if the original result was x.5 or greater the result will be x + 1 otherwise it will be x.


GeneralRe: How to round float number to the closest int?? Pin
Tim Smith20-Nov-05 7:02
Tim Smith20-Nov-05 7:02 
AnswerRe: How to round float number to the closest int?? Pin
Rick York19-Nov-05 7:37
mveRick York19-Nov-05 7:37 
Questionproblems in Pointer overflow/underflow Pin
K. narasimharao19-Nov-05 0:20
K. narasimharao19-Nov-05 0:20 
AnswerRe: problems in Pointer overflow/underflow Pin
khan++19-Nov-05 0:37
khan++19-Nov-05 0:37 
GeneralRe: problems in Pointer overflow/underflow Pin
toxcct19-Nov-05 0:43
toxcct19-Nov-05 0:43 
AnswerRe: problems in Pointer overflow/underflow Pin
toxcct19-Nov-05 0:43
toxcct19-Nov-05 0:43 
QuestionPrinter driver development Pin
mohsin_m18-Nov-05 23:26
mohsin_m18-Nov-05 23:26 
QuestionFile monitor program ? Pin
kendao18-Nov-05 22:37
kendao18-Nov-05 22:37 
AnswerRe: File monitor program ? Pin
khan++18-Nov-05 22:59
khan++18-Nov-05 22:59 
AnswerRe: File monitor program ? Pin
ThatsAlok20-Nov-05 21:12
ThatsAlok20-Nov-05 21:12 
QuestionHow to link a button to a file Pin
zargus18-Nov-05 21:03
zargus18-Nov-05 21:03 
AnswerRe: How to link a button to a file Pin
khan++18-Nov-05 21:13
khan++18-Nov-05 21:13 
GeneralRe: How to link a button to a file Pin
zargus18-Nov-05 21:20
zargus18-Nov-05 21:20 
QuestionNeed info abt WaitThreadFunc Pin
koumodaki18-Nov-05 19:57
koumodaki18-Nov-05 19:57 
AnswerRe: Need info abt WaitThreadFunc Pin
khan++18-Nov-05 20:53
khan++18-Nov-05 20:53 
Question"Problem in running the exe". Pin
rajeev8218-Nov-05 19:52
rajeev8218-Nov-05 19:52 
AnswerRe: "Problem in running the exe". Pin
khan++18-Nov-05 20:46
khan++18-Nov-05 20:46 

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.