Click here to Skip to main content
14,271,421 members

C / C++ / MFC

 
GeneralRe: No Errors but wrong values on return? Pin
GESY27-Jul-18 4:02
memberGESY27-Jul-18 4:02 
GeneralRe: No Errors but wrong values on return? Pin
GESY27-Jul-18 4:49
memberGESY27-Jul-18 4:49 
AnswerRe: No Errors but wrong values on return? Pin
David Crow27-Jul-18 4:53
memberDavid Crow27-Jul-18 4:53 
AnswerRe: No Errors but wrong values on return? Pin
Richard MacCutchan27-Jul-18 1:13
protectorRichard MacCutchan27-Jul-18 1:13 
GeneralRe: No Errors but wrong values on return? Pin
GESY27-Jul-18 3:58
memberGESY27-Jul-18 3:58 
GeneralRe: No Errors but wrong values on return? Pin
GESY27-Jul-18 4:53
memberGESY27-Jul-18 4:53 
AnswerRe: No Errors but wrong values on return? Pin
David Crow27-Jul-18 4:57
memberDavid Crow27-Jul-18 4:57 
GeneralRe: No Errors but wrong values on return? Pin
Richard MacCutchan27-Jul-18 5:10
protectorRichard MacCutchan27-Jul-18 5:10 
GESY wrote:
using %d but I had seen %u
That is for signed (%d) or unsigned (%u) integers. For a long value you need to add the prefix l thus:
long longValue = 1000000;
printf("long value: %ld\n", longValue);

These format characters are explained in the MSDN documentation at Format Specification Syntax: printf and wprintf Functions[^].

Quote:
dwFileVersionMS or dwProductVersionMS ?
Well it depends what you are testing for. The documentation for the specific product or library should tell you which one they are referring to, as they are usually different.


GESY wrote:
1000 of thanks
Happy to help, and I learned a few useful things in the process; so we both benefit.
GeneralRe: No Errors but wrong values on return? Pin
GESY28-Jul-18 8:43
memberGESY28-Jul-18 8:43 
GeneralRe: No Errors but wrong values on return? Pin
GESY28-Jul-18 8:45
memberGESY28-Jul-18 8:45 
GeneralRe: No Errors but wrong values on return? Pin
Richard MacCutchan28-Jul-18 9:01
protectorRichard MacCutchan28-Jul-18 9:01 
GeneralRe: No Errors but wrong values on return? Pin
GESY28-Jul-18 11:13
memberGESY28-Jul-18 11:13 
GeneralRe: No Errors but wrong values on return? Pin
Richard MacCutchan28-Jul-18 22:08
protectorRichard MacCutchan28-Jul-18 22:08 
GeneralRe: No Errors but wrong values on return? Pin
GESY29-Jul-18 6:00
memberGESY29-Jul-18 6:00 
QuestionCreateProcess lpApplicationName param Pin
ForNow23-Jul-18 16:16
memberForNow23-Jul-18 16:16 
AnswerRe: CreateProcess lpApplicationName param Pin
Richard MacCutchan23-Jul-18 22:46
protectorRichard MacCutchan23-Jul-18 22:46 
SuggestionRe: CreateProcess lpApplicationName param Pin
Jochen Arndt23-Jul-18 22:56
mveJochen Arndt23-Jul-18 22:56 
GeneralRe: CreateProcess lpApplicationName param Pin
Richard MacCutchan23-Jul-18 23:09
protectorRichard MacCutchan23-Jul-18 23:09 
AnswerRe: CreateProcess lpApplicationName param Pin
Jochen Arndt23-Jul-18 22:55
mveJochen Arndt23-Jul-18 22:55 
GeneralRe: CreateProcess lpApplicationName param Pin
ForNow23-Jul-18 23:35
memberForNow23-Jul-18 23:35 
GeneralRe: CreateProcess lpApplicationName param Pin
Jochen Arndt23-Jul-18 23:55
mveJochen Arndt23-Jul-18 23:55 
GeneralRe: CreateProcess lpApplicationName param Pin
ForNow24-Jul-18 1:42
memberForNow24-Jul-18 1:42 
QuestionTechnical Interview Preparation Pin
Member 1392070221-Jul-18 0:50
memberMember 1392070221-Jul-18 0:50 
AnswerRe: Technical Interview Preparation Pin
Richard MacCutchan21-Jul-18 1:12
protectorRichard MacCutchan21-Jul-18 1:12 
AnswerRe: Technical Interview Preparation Pin
CPallini22-Jul-18 21:52
mveCPallini22-Jul-18 21:52 

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.