Guest trueToastedCode Posted July 8, 2022 Posted July 8, 2022 Whenever i use a wstring/wchar_t in a cpp program, zip the binary, send it over to another Win machine and unzip the program, it gets blocked as a "dangerous" Win32/Wacatac.B!ml trojan - Which is obviously wrong. How do i solve this? This is completely acceptable :(Sample 1:int main() { const string s = "Hello World!"; const wstring ws(s.begin(), s.end()); const wchar_t *wc = ws.c_str(); wcout << wc << endl; }Sample 2:wchar_t* c2wc(const char* c) { size_t size = strlen© + 1; wchar_t *wc = new wchar_t; size_t outSize; mbstowcs_s(& Continue reading... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.