Click here to Skip to main content
15,892,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHELP [modified] Pin
yunpil7-May-09 7:40
yunpil7-May-09 7:40 
AnswerRe: HELP Pin
Cedric Moonen7-May-09 7:53
Cedric Moonen7-May-09 7:53 
JokeRe: HELP Pin
sashoalm7-May-09 22:39
sashoalm7-May-09 22:39 
QuestionRe: HELP Pin
CPallini7-May-09 9:31
mveCPallini7-May-09 9:31 
AnswerRe: HELP Pin
Wes Aday7-May-09 10:15
professionalWes Aday7-May-09 10:15 
AnswerRe: HELP Pin
Hamid_RT8-May-09 0:46
Hamid_RT8-May-09 0:46 
QuestionRasGetCustomAuthData fuction not working in non admin user. Pin
birajendu7-May-09 6:41
birajendu7-May-09 6:41 
QuestionCInternetSession with Authentification Proxy Pin
sashoalm7-May-09 6:06
sashoalm7-May-09 6:06 
I use in my program MFC to download files from the internet, and I want to know if it will work through an authenticating proxy server.

This is my CInternetSession object:
m_pInternetSession = new CInternetSession("Microsoft Internet Explorer 5.0");


And this is CInternetSession constructor from MFC sources.
#define PRE_CONFIG_INTERNET_ACCESS  INTERNET_OPEN_TYPE_PRECONFIG

.................................

	/* explicit */ CInternetSession(LPCTSTR pstrAgent = NULL,
		DWORD_PTR dwContext = 1,
		DWORD dwAccessType = PRE_CONFIG_INTERNET_ACCESS,
		LPCTSTR pstrProxyName = NULL,
		LPCTSTR pstrProxyBypass = NULL,
		DWORD dwFlags = 0);


So it uses INTERNET_OPEN_TYPE_PRECONFIG by default.

And this is written about INTERNET_OPEN_TYPE_PRECONFIG in MSDN:
Use INTERNET_OPEN_TYPE_PRECONFIG to instruct your application to retrieve the configuration from the registry

So does that mean that my program will correctly load any proxy settings that were set for internet explorer and how can I check that? I've never really used proxies, so I'm at a loss here.

There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal

AnswerRe: CInternetSession with Authentification Proxy Pin
Stuart Dootson7-May-09 7:32
professionalStuart Dootson7-May-09 7:32 
GeneralRe: CInternetSession with Authentification Proxy Pin
sashoalm7-May-09 22:37
sashoalm7-May-09 22:37 
GeneralRe: CInternetSession with Authentification Proxy Pin
Stuart Dootson7-May-09 22:42
professionalStuart Dootson7-May-09 22:42 
GeneralRe: CInternetSession with Authentification Proxy Pin
sashoalm8-May-09 0:34
sashoalm8-May-09 0:34 
GeneralRe: CInternetSession with Authentification Proxy Pin
Stuart Dootson8-May-09 2:04
professionalStuart Dootson8-May-09 2:04 
GeneralRe: CInternetSession with Authentification Proxy Pin
sashoalm8-May-09 4:32
sashoalm8-May-09 4:32 
GeneralRe: CInternetSession with Authentification Proxy Pin
Stuart Dootson8-May-09 4:47
professionalStuart Dootson8-May-09 4:47 
GeneralRe: CInternetSession with Authentification Proxy Pin
Stuart Dootson7-May-09 22:54
professionalStuart Dootson7-May-09 22:54 
Questioncapturing notify messages Pin
kitkat120127-May-09 6:00
kitkat120127-May-09 6:00 
AnswerRe: capturing notify messages Pin
led mike7-May-09 7:02
led mike7-May-09 7:02 
QuestionConfusion about object code generated? Pin
lionelcyril7-May-09 5:12
lionelcyril7-May-09 5:12 
AnswerRe: Confusion about object code generated? Pin
Eytukan7-May-09 5:20
Eytukan7-May-09 5:20 
AnswerRe: Confusion about object code generated? Pin
«_Superman_»7-May-09 5:22
professional«_Superman_»7-May-09 5:22 
GeneralRe: Confusion about object code generated? Pin
Eytukan7-May-09 5:25
Eytukan7-May-09 5:25 
AnswerRe: Confusion about object code generated? Pin
CPallini7-May-09 7:00
mveCPallini7-May-09 7:00 
QuestionIWinHttpRequest get_ResponseStream and Bitmap FromStream [modified] Pin
J.B.7-May-09 4:54
J.B.7-May-09 4:54 
AnswerRe: IWinHttpRequest get_ResponseStream and Bitmap FromStream Pin
Stuart Dootson7-May-09 7:28
professionalStuart Dootson7-May-09 7:28 

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.