On Windows strings are double-byte Unicode (wchar_t *). On Unix strings are multi-byte UTF-8 (char*).
The example C/C++ app shows how to do it. Let me know if you need any help.
Hello, I have now successfully gotten everythign workign on mac but have a compile error on windows:
1> cap_main.cpp1>C:\Users\buckler\Source\Repos\ia\cap\cap_main.cpp(76): error C2664: 'HRESULT IsGenuineEx(STRCTYPE,PGENUINE_OPTIONS)': cannot convert argument 1 from 'const char [32]' to 'STRCTYPE'1> C:\Users\buckler\Source\Repos\ia\cap\cap_main.cpp(76): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast1>C:\Users\buckler\Source\Repos\ia\cap\cap_main.cpp(119): error C2664: 'HRESULT TrialDaysRemaining(STRCTYPE,uint32_t *)': cannot convert argument 1 from 'const char [32]' to 'STRCTYPE'1> C:\Users\buckler\Source\Repos\ia\cap\cap_main.cpp(119): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast1>C:\Users\buckler\Source\Repos\ia\cap\cap_main.cpp(164): error C2664: 'HRESULT CheckAndSavePKey(STRCTYPE,uint32_t)': cannot convert argument 1 from 'char [100]' to 'STRCTYPE'1> C:\Users\buckler\Source\Repos\ia\cap\cap_main.cpp(164): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast2>------ Skipped Build: Project: INSTALL, Configuration: Release x64 ------
On Windows strings are double-byte Unicode (wchar_t *). On Unix strings are multi-byte UTF-8 (char*).
The example C/C++ app shows how to do it. Let me know if you need any help.