Click here to Skip to main content
15,913,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalnetwork printing problem Pin
Sudhir Mangla28-Mar-05 21:35
professionalSudhir Mangla28-Mar-05 21:35 
GeneralRe: network printing problem Pin
DasdaDAS28-Mar-05 22:53
DasdaDAS28-Mar-05 22:53 
GeneralRe: network printing problem Pin
Sudhir Mangla29-Mar-05 2:15
professionalSudhir Mangla29-Mar-05 2:15 
QuestionHow to create CButton dynamically in MFC? Pin
xo300028-Mar-05 21:05
xo300028-Mar-05 21:05 
AnswerRe: How to create CButton dynamically in MFC? Pin
DasdaDAS28-Mar-05 23:23
DasdaDAS28-Mar-05 23:23 
GeneralRe: How to create CButton dynamically in MFC? Pin
xo300029-Mar-05 1:13
xo300029-Mar-05 1:13 
GeneralRe: How to create CButton dynamically in MFC? Pin
jhwurmbach30-Mar-05 3:56
jhwurmbach30-Mar-05 3:56 
QuestionWininet question? Pin
mvtapia28-Mar-05 20:53
mvtapia28-Mar-05 20:53 
I've been trying to do a simple program like the one on this site about toggling the proxy settings. The problem is when i try to compile I get this error.


Form1.obj : error LNK2001: unresolved external symbol "int __stdcall InternetQueryOptionA(void *,unsigned long,void *,unsigned long *)" (?InternetQueryOptionA@@$$J216YGHPAXK0PAK@Z)


I can't seem to crack where the problem is. I have this includes

#include <iostream>
#include <string>
using namespace std;

#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
#include <wininet.h>
#include <urlmon.h>
#include <stdio.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#include "strsafe.h"

#include <stdlib.h>
#define INET_ERR_OUT_MSG_BOX_BUFFER_SIZE 512
#define INET_ERR_OUT_FORMAT_BUFFER_SIZE 256

#ifdef _UNICODE
#define _itot _itow
#else
#define _itot _itoa
#endif

#using <mscorlib.dll>
using namespace System;
using namespace System::Security::Permissions;
using namespace Microsoft::Win32;


AND THIS LITTLE CODE:

InternetQueryOption(NULL,INTERNET_OPTION_USER_AGENT,NULL,&dwSize);
char *lpszData;
lpszData = new char[dwSize];
InternetQueryOption(NULL, INTERNET_OPTION_USER_AGENT,lpszData,&dwSize);
delete [] lpszData;

at first it did not have the char *lpszData; because in the Microsoft page didn't have it and I got undeclare variable.
Any thoughts...

Kamui
AnswerRe: Wininet question? Pin
ThatsAlok28-Mar-05 21:36
ThatsAlok28-Mar-05 21:36 
GeneralRe: Wininet question? Pin
mvtapia28-Mar-05 23:37
mvtapia28-Mar-05 23:37 
GeneralRe: Wininet question? Pin
ThatsAlok28-Mar-05 23:52
ThatsAlok28-Mar-05 23:52 
GeneralRe: Wininet question? Pin
mvtapia29-Mar-05 11:58
mvtapia29-Mar-05 11:58 
AnswerRe: Wininet question? Pin
Michael Dunn28-Mar-05 23:54
sitebuilderMichael Dunn28-Mar-05 23:54 
GeneralDot Matrix Printer Pin
Renjith Ramachandran28-Mar-05 19:41
Renjith Ramachandran28-Mar-05 19:41 
GeneralRe: Dot Matrix Printer Pin
Blake Miller29-Mar-05 5:52
Blake Miller29-Mar-05 5:52 
GeneralRe: Dot Matrix Printer Pin
Renjith Ramachandran29-Mar-05 7:25
Renjith Ramachandran29-Mar-05 7:25 
Generalc language Pin
Anonymous28-Mar-05 19:28
Anonymous28-Mar-05 19:28 
GeneralRe: c language Pin
ThatsAlok28-Mar-05 20:29
ThatsAlok28-Mar-05 20:29 
GeneralRe: c language Pin
Anonymous29-Mar-05 22:12
Anonymous29-Mar-05 22:12 
GeneralRe: c language Pin
Alexander M.,29-Mar-05 2:57
Alexander M.,29-Mar-05 2:57 
Generalusing CShockwaveFlash in own ActiveX Pin
AndreasTegeler28-Mar-05 19:12
AndreasTegeler28-Mar-05 19:12 
GeneralProcess and parent Pin
vikramlinux28-Mar-05 19:11
vikramlinux28-Mar-05 19:11 
GeneralRe: Process and parent Pin
DasdaDAS29-Mar-05 20:00
DasdaDAS29-Mar-05 20:00 
Generalstring vs CString problems. Pin
mlatimer28-Mar-05 19:06
mlatimer28-Mar-05 19:06 
GeneralRe: string vs CString problems. Pin
ThatsAlok28-Mar-05 20:27
ThatsAlok28-Mar-05 20:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.