Click here to Skip to main content
14,333,933 members

C / C++ / MFC

 
AnswerRe: error C2143 error C2059 Pin
_Flaviu31-Jul-19 2:38
member_Flaviu31-Jul-19 2:38 
GeneralRe: error C2143 error C2059 Pin
Richard MacCutchan31-Jul-19 2:54
protectorRichard MacCutchan31-Jul-19 2:54 
GeneralRe: error C2143 error C2059 Pin
_Flaviu31-Jul-19 3:27
member_Flaviu31-Jul-19 3:27 
GeneralRe: error C2143 error C2059 Pin
Richard MacCutchan31-Jul-19 4:03
protectorRichard MacCutchan31-Jul-19 4:03 
GeneralRe: error C2143 error C2059 Pin
_Flaviu31-Jul-19 22:01
member_Flaviu31-Jul-19 22:01 
GeneralRe: error C2143 error C2059 Pin
k505431-Jul-19 5:39
memberk505431-Jul-19 5:39 
GeneralRe: error C2143 error C2059 Pin
_Flaviu31-Jul-19 21:06
member_Flaviu31-Jul-19 21:06 
QuestionRe: error C2143 error C2059 Pin
David Crow1-Aug-19 3:22
memberDavid Crow1-Aug-19 3:22 
_Flaviu wrote:
do you suggest me another safe method to compare structs ? A little code sample will be great !
How about something akin to:
struct foo
{
    short s;
    double d;

    bool equals( struct foo f )
    {
        // this is not the preferred method for comparing floating-point values (but that's not the point)
        return (this->s == f.s) && (this->d == f.d);
    }
};

"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 1-Aug-19 10:32am.

AnswerRe: error C2143 error C2059 Pin
k50541-Aug-19 4:28
memberk50541-Aug-19 4:28 
GeneralRe: error C2143 error C2059 Pin
k50541-Aug-19 3:57
memberk50541-Aug-19 3:57 
GeneralRe: error C2143 error C2059 Pin
Richard MacCutchan31-Jul-19 21:32
protectorRichard MacCutchan31-Jul-19 21:32 
GeneralRe: error C2143 error C2059 Pin
Peter_in_27801-Aug-19 0:53
professionalPeter_in_27801-Aug-19 0:53 
GeneralRe: error C2143 error C2059 Pin
Richard MacCutchan1-Aug-19 1:31
protectorRichard MacCutchan1-Aug-19 1:31 
QuestionBest way to call REST Service from C++ Pin
ptr_Electron24-Jul-19 22:50
memberptr_Electron24-Jul-19 22:50 
AnswerRe: Best way to call REST Service from C++ Pin
Gerry Schmitz25-Jul-19 2:49
mveGerry Schmitz25-Jul-19 2:49 
QuestionRe: Best way to call REST Service from C++ Pin
Richard MacCutchan25-Jul-19 3:52
protectorRichard MacCutchan25-Jul-19 3:52 
AnswerRe: Best way to call REST Service from C++ Pin
Gerry Schmitz25-Jul-19 10:13
mveGerry Schmitz25-Jul-19 10:13 
GeneralRe: Best way to call REST Service from C++ Pin
Richard MacCutchan25-Jul-19 22:31
protectorRichard MacCutchan25-Jul-19 22:31 
GeneralRe: Best way to call REST Service from C++ Pin
Gerry Schmitz25-Jul-19 22:48
mveGerry Schmitz25-Jul-19 22:48 
GeneralRe: Best way to call REST Service from C++ Pin
Richard MacCutchan25-Jul-19 23:29
protectorRichard MacCutchan25-Jul-19 23:29 
GeneralRe: Best way to call REST Service from C++ Pin
Gerry Schmitz26-Jul-19 5:12
mveGerry Schmitz26-Jul-19 5:12 
QuestionCall C functions from VC++ Pin
_Flaviu17-Jul-19 22:20
member_Flaviu17-Jul-19 22:20 
AnswerRe: Call C functions from VC++ Pin
phil.o17-Jul-19 23:19
mvephil.o17-Jul-19 23:19 
GeneralRe: Call C functions from VC++ Pin
_Flaviu18-Jul-19 0:19
member_Flaviu18-Jul-19 0:19 
GeneralRe: Call C functions from VC++ Pin
phil.o18-Jul-19 0:25
mvephil.o18-Jul-19 0:25 

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.