C++ string hatası

Header:

C++:
#include <Windows.h>
#include <iostream>
#include <string>

namespace Bypass {
 void SetGamepid(DWORD pid);
 BOOL Bypass_CSGO();
 BOOL RestoreCSGO();
}

Main (Yarım):

#İnclude "global.h"
#İnclude <iOStream>

#İnclude <string>

Using namespace std;
Using std: String;

DWORD GetGamePID() {
HWND hwGame = FindWindowA(0, " Counter-Strike: Global Offensive");
İf (!hwGame) return 0;
DWORD ret = 0;
GetWindowThreadProcessId(hwGame, &ret);
Return ret;
}

Std: String LpcwsTR25TRINg(LPCWSTR lps) {
İnt len = WideCharToMultiByte(CP_ACP, 0, lps, -1, NULL, 0, NULL, NULL);
İf (len <= 0) {
Return "";
}
Else {
Char* dest = New char[len];
WideCharToMultiByte(CP_ACP, 0, lps, -1, dest, len, NULL, NULL);
Dest[len - 1] = 0;
Std: String str(dest);
Delete[] dest;
Return str;
}
}

(std::string eski hocam)
1657293639066.png

1657293678527.png


Garip. Kullandığın IDE yada compiler'ı belirtir misin?
 

Geri
Yukarı