Wrox Programmer Forums
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 19th, 2005, 03:33 PM
Registered User
 
Join Date: May 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Visual C++ wininet

Hi,

I'm trying to access the internet with using wininet.h and am unable to build. Using Visual Studios 2003 (c++).

Compile Error:
error LNK2019: unresolved external symbol __imp__InternetConnectA@32 referenced in function _main


CODE:
#define WINVER 0x0400
#include "stdafx.h"
#include <windows.h>
#include <wininet.h>

int main()
{
  HINTERNET hInternetRoot;
  hInternetRoot = InternetOpen("bmw Agent", INTERNET_OPEN_TYPE_PROXY, "127.0.0.1", "<local>", 0);

  return 0;
}

 
Old November 2nd, 2005, 04:07 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

link wininet.lib in your project settings.

Regards
Ankur Verma





Similar Threads
Thread Thread Starter Forum Replies Last Post
WinINet - Choosing encryption algorithm tdaplyn Visual C++ 0 April 28th, 2006 06:48 PM
WinInet Regie Visual C++ 5 December 29th, 2005 01:21 AM
WinInet jain30 Visual C++ 0 December 1st, 2005 01:43 AM
Problem with wininet IgorT VB How-To 1 September 2nd, 2004 10:20 AM
Using WININET.DLL from .NET [email protected] ADO.NET 3 July 1st, 2003 11:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.