Skip to content

Instantly share code, notes, and snippets.

@astrcomp
Created April 26, 2016 06:25
Show Gist options
  • Save astrcomp/c50a3a20932cc051a4b1ded944134142 to your computer and use it in GitHub Desktop.
Save astrcomp/c50a3a20932cc051a4b1ded944134142 to your computer and use it in GitHub Desktop.
WORD
WORD verWSAData = MAKEWORD(02, 02); // присвоить значение два байта 0x202h
uint8_t minor = w.wVersion & 0xFF;
uint8_t major = w.wVersion >> 8;
error = (int)minor;
cout << "version = " << error;
error = (int)major;
cout << "." <<error << endl;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment