I do a program, which should parse the site. When using designs

HINTERNET hInternet = InternetOpen( TEXT("WinInet Test"), INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0); 

an error occurs:

Unresolved external InternrtOpenA referensed from D: ... UNIT1.OBJ

As I understand it is necessary to connect the library " ws2_32.lib ".
If you simply add it to the project ( Add to project ), nothing changes.
If I add via " #pragma comment(lib, "ws2_32.lib") " (I even copied it into the project folder), nothing changes either.

What else can you do?

    1 answer 1

    Judging by the documentation, the implementation of InternetOpen is in the wininet.lib library (dll) , and not at all in ws2_32.lib.

    • At random, I found out. But, oddly enough, in various examples I saw that it is ws2_32.lib that connects. Interestingly, can this be related to the development environment? Borland own, studio own? - oleg_ismaylov