User forums > General (but related to Code::Blocks)
Read the wmic or GUID
hidefromkgb:
It`s undeclared for one simple reason: I do not know what data type SEND_GPSC_INIT3() accepts.
It is up to you to declare stringMachineGUID and give it a value converted from MachineGUID`s *WCHAR.
patrocle:
accept string, that't i ask for string output. *WCHAR is not accepted and the guid result is empty :( I give up
Thanks for your help mate.
hidefromkgb:
Damn it. That was the first google result.
--- Code: ---std::wstring wtmp(MachineGUID);
std::string stringMachineGUID(wtmp.begin(), wtmp.end());
--- End code ---
patrocle:
now a real problem, guid is empty :o
stahta01:
--- Quote from: stahta01 on April 28, 2019, 06:10:21 pm ---Please read this FAQ and this website rules.
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
http://forums.codeblocks.org/index.php/topic,9996.0.html
Tim S.
--- End quote ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version