fix: Hidden bugs in IOCPClient and CTalkManager
This commit is contained in:
@@ -133,6 +133,14 @@ int main(int argc, const char *argv[])
|
||||
}
|
||||
printf("[server] %s:%d\n", g_SETTINGS.ServerIP(), g_SETTINGS.ServerPort());
|
||||
|
||||
// <20><>ȡ<EFBFBD><C8A1>ǰģ<C7B0><C4A3><EFBFBD>ľ<EFBFBD><C4BE><EFBFBD><EFBFBD><EFBFBD>HINSTANCE<43><45>
|
||||
g_hInstance = GetModuleHandle(NULL);
|
||||
if (g_hInstance != NULL) {
|
||||
std::cout << "HINSTANCE: " << g_hInstance << std::endl;
|
||||
} else {
|
||||
std::cerr << "Failed to get HINSTANCE" << std::endl;
|
||||
}
|
||||
|
||||
do{
|
||||
g_bExit = 0;
|
||||
HANDLE hThread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)StartClient,NULL,0,NULL);
|
||||
|
||||
Reference in New Issue
Block a user