#error

24 messages · Page 1 of 1 (latest)

woeful haven
#

still hasn't fixed

#

won't even work with normal

jade gardenBOT
#

@woeful haven has reached level 1. GG!

digital depot
#

what is this

#

if its just 6 lines then try rewriting it or using a different API idk

woeful haven
#

i just need a fix for it

dawn brook
#

Could you please provide MRE (minimal reproducible example) of your code for more context?

digital depot
#

what even is this?

#

browser stuff?

woeful haven
# dawn brook Could you please provide MRE (minimal reproducible example) of your code for mor...
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

dawn brook
supple hound
#

bro don't use WinHttp Func

#

That's just ass hole. You can use libcurl instead.

woeful haven
#

I fixed it dont worry