Click here to Skip to main content
14,242,360 members

C / C++ / MFC

 
GeneralRe: No Errors but wrong values on return? Pin
Victor Nijegorodov26-Jul-18 8:20
memberVictor Nijegorodov26-Jul-18 8:20 
GeneralRe: No Errors but wrong values on return? Pin
GESY27-Jul-18 3:55
memberGESY27-Jul-18 3:55 
GeneralMessage Closed Pin
11-Dec-18 9:03
memberMember 1408587711-Dec-18 9:03 
AnswerRe: No Errors but wrong values on return? Pin
Richard MacCutchan25-Jul-18 23:42
protectorRichard MacCutchan25-Jul-18 23:42 
GeneralRe: No Errors but wrong values on return? Pin
GESY26-Jul-18 7:56
memberGESY26-Jul-18 7:56 
QuestionRe: No Errors but wrong values on return? Pin
David Crow26-Jul-18 17:11
memberDavid Crow26-Jul-18 17:11 
GeneralRe: No Errors but wrong values on return? Pin
Richard MacCutchan26-Jul-18 22:08
protectorRichard MacCutchan26-Jul-18 22:08 
SuggestionRe: No Errors but wrong values on return? Pin
David Crow26-Jul-18 17:14
memberDavid Crow26-Jul-18 17:14 
GESY wrote:

char *FDBUF = new char[dwSize];
If dwSize is 0, this allocation is pointless. In other words, don't continue if GetFileVersionInfoSize() did not return anything useful.

GESY wrote:

wsprintf(BUFF, "Version is %d",LOBYTE(LOWORD(pvi->dwProductVersionLS)),HIBYTE(LOWORD(pvi->dwProductVersionMS)));
To match the Details tab of the Properties dialog, I'd think you'd want something similar to:

wsprintf(BUFF, _T("File version is %u.%u.%u.%u"), HIWORD(pvi->dwFileVersionMS), LOWORD(pvi->dwFileVersionMS), HIWORD(pvi->dwFileVersionLS), LOWORD(pvi->dwFileVersionLS));
…
wsprintf(BUFF, _T("Product version is %u.%u.%u.%u"), HIWORD(pvi->dwProductVersionMS), LOWORD(pvi->dwProductVersionMS), HIWORD(pvi->dwProductVersionLS), LOWORD(pvi->dwProductVersionLS));

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles



modified 27-Jul-18 0:01am.

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 
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 

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.