Click here to Skip to main content
15,793,260 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: No Errors but wrong values on return? Pin
Richard MacCutchan27-Jul-18 2:13
mveRichard MacCutchan27-Jul-18 2:13 
GeneralRe: No Errors but wrong values on return? Pin
GESY27-Jul-18 4:58
GESY27-Jul-18 4:58 
GeneralRe: No Errors but wrong values on return? Pin
GESY27-Jul-18 5:53
GESY27-Jul-18 5:53 
AnswerRe: No Errors but wrong values on return? Pin
David Crow27-Jul-18 5:57
David Crow27-Jul-18 5:57 
GeneralRe: No Errors but wrong values on return? Pin
Richard MacCutchan27-Jul-18 6:10
mveRichard MacCutchan27-Jul-18 6:10 
GeneralRe: No Errors but wrong values on return? Pin
GESY28-Jul-18 9:43
GESY28-Jul-18 9:43 
GeneralRe: No Errors but wrong values on return? Pin
GESY28-Jul-18 9:45
GESY28-Jul-18 9:45 
GeneralRe: No Errors but wrong values on return? Pin
Richard MacCutchan28-Jul-18 10:01
mveRichard MacCutchan28-Jul-18 10:01 
Why are you converting a string to a double just to do a simple comparison? Use a string comparer (strcmp) like:
C++
if(strcmp(BUFF, "6.1") == 0) MessageBox(hwnd,"It is 6.1","version",MB_OK); // Tested OK RTVAL was 6.1

Or even simpler
C++
if (HIWORD(pvi->dwProductVersionMS) == 6 && LOWORD(pvi->dwProductVersionMS) == 1)
    MessageBox ...

GeneralRe: No Errors but wrong values on return? Pin
GESY28-Jul-18 12:13
GESY28-Jul-18 12:13 
GeneralRe: No Errors but wrong values on return? Pin
Richard MacCutchan28-Jul-18 23:08
mveRichard MacCutchan28-Jul-18 23:08 
GeneralRe: No Errors but wrong values on return? Pin
GESY29-Jul-18 7:00
GESY29-Jul-18 7:00 
QuestionCreateProcess lpApplicationName param Pin
ForNow23-Jul-18 17:16
ForNow23-Jul-18 17:16 
AnswerRe: CreateProcess lpApplicationName param Pin
Richard MacCutchan23-Jul-18 23:46
mveRichard MacCutchan23-Jul-18 23:46 
SuggestionRe: CreateProcess lpApplicationName param Pin
Jochen Arndt23-Jul-18 23:56
professionalJochen Arndt23-Jul-18 23:56 
GeneralRe: CreateProcess lpApplicationName param Pin
Richard MacCutchan24-Jul-18 0:09
mveRichard MacCutchan24-Jul-18 0:09 
AnswerRe: CreateProcess lpApplicationName param Pin
Jochen Arndt23-Jul-18 23:55
professionalJochen Arndt23-Jul-18 23:55 
GeneralRe: CreateProcess lpApplicationName param Pin
ForNow24-Jul-18 0:35
ForNow24-Jul-18 0:35 
GeneralRe: CreateProcess lpApplicationName param Pin
Jochen Arndt24-Jul-18 0:55
professionalJochen Arndt24-Jul-18 0:55 
GeneralRe: CreateProcess lpApplicationName param Pin
ForNow24-Jul-18 2:42
ForNow24-Jul-18 2:42 
QuestionTechnical Interview Preparation Pin
Member 1392070221-Jul-18 1:50
Member 1392070221-Jul-18 1:50 
AnswerRe: Technical Interview Preparation Pin
Richard MacCutchan21-Jul-18 2:12
mveRichard MacCutchan21-Jul-18 2:12 
AnswerRe: Technical Interview Preparation Pin
CPallini22-Jul-18 22:52
mveCPallini22-Jul-18 22:52 
QuestionAPI to change win10 touchpad 'Cursor speed' dynamically without restarting Pin
AroraSaurabh19-Jul-18 7:59
AroraSaurabh19-Jul-18 7:59 
GeneralRe: API to change win10 touchpad 'Cursor speed' dynamically without restarting Pin
Richard MacCutchan19-Jul-18 22:24
mveRichard MacCutchan19-Jul-18 22:24 
AnswerRe: API to change win10 touchpad 'Cursor speed' dynamically without restarting Pin
Randor 20-Jul-18 22:30
professional Randor 20-Jul-18 22:30 

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.