Click here to Skip to main content
15,910,878 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: (LPCWSTR) -> (LPSTR) error! Pin
David Crow6-Sep-06 8:32
David Crow6-Sep-06 8:32 
AnswerRe: (LPCWSTR) -> (LPSTR) error! Pin
mostafa_pasha6-Sep-06 8:34
mostafa_pasha6-Sep-06 8:34 
GeneralRe: (LPCWSTR) -> (LPSTR) error! Pin
David Crow6-Sep-06 8:43
David Crow6-Sep-06 8:43 
GeneralRe: (LPCWSTR) -> (LPSTR) error! Pin
Zac Howland6-Sep-06 8:45
Zac Howland6-Sep-06 8:45 
GeneralRe: (LPCWSTR) -> (LPSTR) error! Pin
mostafa_pasha6-Sep-06 9:05
mostafa_pasha6-Sep-06 9:05 
GeneralRe: (LPCWSTR) -> (LPSTR) error! Pin
Hamid_RT6-Sep-06 22:38
Hamid_RT6-Sep-06 22:38 
QuestionGetting the app data folder in Vista Pin
Christopher Duncan6-Sep-06 7:45
Christopher Duncan6-Sep-06 7:45 
QuestionCan't compile an aplication with WinHTTP Pin
Eugene Pustovoyt6-Sep-06 7:38
Eugene Pustovoyt6-Sep-06 7:38 
Hello guys. It's my first application with WinHTTP. Please help me to fix an error.
This errors occurs after include "winhttp.h" file to stdafx.h of my application:

StdAfx.h:
<br />
#ifndef VC_EXTRALEAN<br />
#define VC_EXTRALEAN<br />
#endif<br />
<br />
#ifndef WINVER<br />
#define WINVER 0x0501<br />
#endif<br />
<br />
#ifndef _WIN32_WINNT<br />
#define _WIN32_WINNT 0x0501<br />
#endif						<br />
<br />
#ifndef _WIN32_WINDOWS<br />
#define _WIN32_WINDOWS 0x0410<br />
#endif<br />
<br />
#ifndef _WIN32_IE<br />
#define _WIN32_IE 0x0600<br />
#endif<br />
<br />
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS<br />
#define _AFX_ALL_WARNINGS<br />
<br />
#include <afxwin.h><br />
#include <afxext.h><br />
#include <afxdisp.h><br />
<br />
#include <afxdtctl.h><br />
#ifndef _AFX_NO_AFXCMN_SUPPORT<br />
#include <afxcmn.h><br />
#endif // _AFX_NO_AFXCMN_SUPPORT<br />
<br />
#include <winhttp.h>


When I complile this application then I gets following list of the errors:
<br />
..\winhttp.h(285): error C2065: '__in' : undeclared identifier<br />
..\winhttp.h(285): error C2143: syntax error : missing ')' before 'const'<br />
..\winhttp.h(285): warning C4229: anachronism used : modifiers on data are ignored<br />
..\winhttp.h(285): error C2491: 'WinHttpTimeFromSystemTime' : definition of dllimport data not allowed<br />
..\winhttp.h(287): error C2059: syntax error : ')'<br />
..\winhttp.h(292): error C3861: '__in': identifier not found, even with argument-dependent lookup<br />
..\winhttp.h(292): error C2146: syntax error : missing ')' before identifier 'LPCWSTR'<br />
..\winhttp.h(292): warning C4229: anachronism used : modifiers on data are ignored<br />
..\winhttp.h(292): error C2491: 'WinHttpTimeToSystemTime' : definition of dllimport data not allowed<br />
..\winhttp.h(294): error C2059: syntax error : ')'<br />
..\winhttp.h(313): error C2065: 'dwUrlLength' : undeclared identifier<br />
..\winhttp.h(313): error C3861: '__in_ecount': identifier not found, even with argument-dependent lookup<br />
..\winhttp.h(313): error C2146: syntax error : missing ')' before identifier 'LPCWSTR'<br />
..\winhttp.h(313): warning C4229: anachronism used : modifiers on data are ignored<br />
..\winhttp.h(313): error C2491: 'WinHttpCrackUrl' : definition of dllimport data not allowed<br />
..\winhttp.h(317): error C2059: syntax error : ')'<br />
..\winhttp.h(322): error C3861: '__in': identifier not found, even with argument-dependent lookup<br />
..\winhttp.h(322): error C2146: syntax error : missing ')' before identifier 'LPURL_COMPONENTS'<br />
..\winhttp.h(322): warning C4229: anachronism used : modifiers on data are ignored<br />
..\winhttp.h(322): error C2491: 'WinHttpCreateUrl' : definition of dllimport data not allowed<br />
..\winhttp.h(326): error C2059: syntax error : ')'<br />
..\winhttp.h(1029): error C3861: '__in': identifier not found, even with argument-dependent lookup<br />
..\winhttp.h(1029): error C2146: syntax error : missing ')' before identifier 'DWORD'<br />
..\winhttp.h(1029): warning C4229: anachronism used : modifiers on data are ignored<br />
..\winhttp.h(1029): error C2491: 'WinHttpDetectAutoProxyConfigUrl' : definition of dllimport data not allowed<br />
..\winhttp.h(1031): error C2059: syntax error : ')'<br />




Best regards,
Eugene Pustovoyt

ICQ UIN: 161325180

AnswerRe: Can't compile an aplication with WinHTTP Pin
prasad_som6-Sep-06 21:18
prasad_som6-Sep-06 21:18 
AnswerRe: Can't compile an aplication with WinHTTP Pin
Hamid_RT11-Sep-06 9:42
Hamid_RT11-Sep-06 9:42 
QuestionFile extentions in vc++ Pin
amaneet6-Sep-06 6:43
amaneet6-Sep-06 6:43 
AnswerRe: File extentions in vc++ Pin
Maximilien6-Sep-06 6:47
Maximilien6-Sep-06 6:47 
QuestionRe: File extentions in vc++ Pin
David Crow6-Sep-06 7:45
David Crow6-Sep-06 7:45 
AnswerRe: File extentions in vc++ Pin
Hamid_RT7-Sep-06 9:06
Hamid_RT7-Sep-06 9:06 
QuestionA not so simple define Pin
Waldermort6-Sep-06 5:24
Waldermort6-Sep-06 5:24 
QuestionRe: A not so simple define Pin
David Crow6-Sep-06 5:51
David Crow6-Sep-06 5:51 
AnswerRe: A not so simple define Pin
Waldermort6-Sep-06 6:17
Waldermort6-Sep-06 6:17 
GeneralRe: A not so simple define Pin
David Crow6-Sep-06 7:43
David Crow6-Sep-06 7:43 
GeneralRe: A not so simple define Pin
Waldermort6-Sep-06 7:53
Waldermort6-Sep-06 7:53 
AnswerRe: A not so simple define Pin
led mike6-Sep-06 6:56
led mike6-Sep-06 6:56 
GeneralRe: A not so simple define Pin
Waldermort6-Sep-06 7:48
Waldermort6-Sep-06 7:48 
QuestionQuestion Pin
led mike6-Sep-06 8:53
led mike6-Sep-06 8:53 
AnswerRe: A not so simple define Pin
Zac Howland6-Sep-06 8:42
Zac Howland6-Sep-06 8:42 
GeneralRe: A not so simple define Pin
Waldermort6-Sep-06 13:54
Waldermort6-Sep-06 13:54 
GeneralRe: A not so simple define Pin
Zac Howland7-Sep-06 4:36
Zac Howland7-Sep-06 4:36 

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.