#error
24 messages · Page 1 of 1 (latest)
@woeful haven has reached level 1. GG!
what is this
if its just 6 lines then try rewriting it or using a different API idk
cant
i just need a fix for it
Could you please provide MRE (minimal reproducible example) of your code for more context?
DWORD data;
DWORD dwSize = sizeof(DWORD);
// Use WinHttpOpen to obtain an HINTERNET handle.
HINTERNET hSession = WinHttpOpen(L"A WinHTTP Example Program/1.0",
WINHTTP_ACCESS_TYPE_DEFAULT_PROXY,
WINHTTP_NO_PROXY_NAME,
WINHTTP_NO_PROXY_BYPASS, 0);
if (hSession)
{
// Use WinHttpQueryOption to retrieve internet options.
if (WinHttpQueryOption( hSession,
WINHTTP_OPTION_CONNECT_TIMEOUT,
&data, &dwSize))
{
printf("Connection timeout: %u ms\n\n",data);
}
else
{
printf( "Error %u in WinHttpQueryOption.\n",
GetLastError());
}
// When finished, release the HINTERNET handle.
WinHttpCloseHandle(hSession);
}
else
{
printf("Error %u in WinHttpOpen.\n", GetLastError());
}
microsoft's code snippet isnt passing aswell
so something is not correct
it says breakpoint isntructione xecuted but after that it never executes
i tested it with a dedicated _debug printf
callstack
Full file please, like with your #include, main, etc..
I fixed it dont worry