0x0001 isn't equal to 1 ?

  • Thread starter Thread starter Steve Curvey
  • Start date Start date
S

Steve Curvey

Guest
I have to setup a structure for a function call and if I do this:

std::vector<WORD> a;
a.push_back(0x0001);

the function calling the structure gives an error of invalid data, but if I do this:

std::vector<WORD> a;
a.push_back(1);

it works. What's the difference between the two?

Continue reading...
 
Back
Top