Click here to Skip to main content
16,022,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
{6D7B3988-1553-4F3A-865B-2C1095E1E699}
above one is my guid of WLAN hardware i want to give this value to GUID variable like this

interfaceGuid = {0x6D7B3988, 0x1553, 0x4F3A, { 0x86, 0x5B, 0x2C, 0x10, 0x95, 0xE1, 0xE6, 0x99 } };

and i am getting 8 error which are

(58) : error C2059: syntax error : '{'
(58) : error C2143: syntax error : missing ';' before '{'
(58) : error C2059: syntax error : '{'
(59) : error C2059: syntax error : '}'
(59) : error C2143: syntax error : missing ';' before '}'
(59) : error C2059: syntax error : '}'
(61) : error C2143: syntax error : missing ';' before '{'
(61) : error C2447: '{' : missing function header (old-style formal list?)
DemoGUI - 8 error(s), 0 warning(s)


so please solve it

Thanks in advance
Posted

It can be used at initializing only :) :
GUID guigTemp = {..};

...and then:
memcpy(&yourDestinationGuid, &guidTemp, sizeof(GUID));
 
Share this answer
 
v2
Indrajit kumar wrote:
interfaceGuid = {0x6D7B3988, 0x1553, 0x4F3A, { 0x86, 0x5B, 0x2C, 0x10, 0x95, 0xE1, 0xE6, 0x99 } };


What datatype is interfaceGuid ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900