Click here to Skip to main content
15,896,154 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to start Pin
_AnsHUMAN_ 20-Jun-13 23:04
_AnsHUMAN_ 20-Jun-13 23:04 
Questionfatal error C1083: Cannot open source file: ' ..\filea.cpp Pin
ForNow19-Jun-13 5:53
ForNow19-Jun-13 5:53 
QuestionRe: fatal error C1083: Cannot open source file: ' ..\filea.cpp Pin
David Crow19-Jun-13 6:10
David Crow19-Jun-13 6:10 
AnswerRe: fatal error C1083: Cannot open source file: ' ..\filea.cpp Pin
ForNow19-Jun-13 6:19
ForNow19-Jun-13 6:19 
GeneralRe: fatal error C1083: Cannot open source file: ' ..\filea.cpp Pin
Richard MacCutchan19-Jun-13 6:56
mveRichard MacCutchan19-Jun-13 6:56 
SuggestionRe: fatal error C1083: Cannot open source file: ' ..\filea.cpp Pin
David Crow19-Jun-13 7:40
David Crow19-Jun-13 7:40 
QuestionHow to Implement HD video recording using DirectShow.? Pin
mbatra3119-Jun-13 3:34
mbatra3119-Jun-13 3:34 
QuestionHow to download a httpfile throw Proxy Pin
haha_c18-Jun-13 17:19
haha_c18-Jun-13 17:19 
Hi,I need to open a httpfile by Proxy Server,but the UserName and Password I set always fail,I don't know why,I tried many times,I don't know how to do,Can you have any ideas.

Here is My code:

CString strURL = _T("http://www.kkkk.com/");
CInternetSession Session(_T("Get Xml"));
CHttpFile *lpFile = NULL;
try
{
//set proxy info
char sProxyList[MAX_PATH], sProxyName[64],sProxyPassw[64];
strcpy(sProxyName,"mmm");
strcpy(sProxyPassw,"mmm");

INTERNET_PROXY_INFO proxyinfo;
proxyinfo.dwAccessType = INTERNET_OPEN_TYPE_PROXY;
proxyinfo.lpszProxy =_T("192.168.0.1:8080");
proxyinfo.lpszProxyBypass = NULL;

Session.SetOption(INTERNET_OPTION_PROXY,(LPVOID)&proxyinfo,sizeof(INTERNET_PROXY_INFO));//Success
if (! Session.SetOption(INTERNET_OPTION_PROXY_USERNAME, sProxyName, strlen(sProxyName)+1))
{
DWORD ret = GetLastError();//Always return 12018.Why?
}
if (! Session.SetOption(INTERNET_OPTION_PROXY_PASSWORD, sProxyPassw, strlen(sProxyPassw)+1))
{
DWORD ret = GetLastError(); //Always return 12018.Why?
}
}

lpFile = (CHttpFile*)Session.OpenURL(strURL,1,INTERNET_FLAG_TRANSFER_ASCII|INTERNET_FLAG_RELOAD|INTERNET_FLAG_DONT_CACHE);
if (lpFile != NULL)
{
while(TRUE)
{
char szBuff[1024] = {0};
if ( lpFile->Read(szBuff, 1024) <= 0)
{
break;
}
strContent += szBuff;
}
}
}catch(CInternetException* pEx)
{
TCHAR pszError[64];
pEx->GetErrorMessage(pszError, 64);
strErrorMsg = pszError;
pEx->Delete();
}
delete lpFile;
lpFile = NULL;
Session.Close();
SuggestionRe: How to download a httpfile throw Proxy Pin
Richard MacCutchan18-Jun-13 22:55
mveRichard MacCutchan18-Jun-13 22:55 
QuestionMemory, speed and MSXML Pin
Argonia18-Jun-13 5:32
professionalArgonia18-Jun-13 5:32 
QuestionRe: Memory, speed and MSXML Pin
David Crow18-Jun-13 6:13
David Crow18-Jun-13 6:13 
AnswerRe: Memory, speed and MSXML Pin
Argonia18-Jun-13 7:52
professionalArgonia18-Jun-13 7:52 
GeneralRe: Memory, speed and MSXML Pin
David Crow18-Jun-13 9:55
David Crow18-Jun-13 9:55 
QuestionDoes ActiveX ctrl work as seperate process? Pin
Vaibhav Gupt18-Jun-13 0:41
Vaibhav Gupt18-Jun-13 0:41 
AnswerRe: Does ActiveX ctrl work as seperate process? Pin
_AnsHUMAN_ 18-Jun-13 3:41
_AnsHUMAN_ 18-Jun-13 3:41 
GeneralRe: Does ActiveX ctrl work as seperate process? Pin
Jonathan Davies18-Jun-13 5:19
Jonathan Davies18-Jun-13 5:19 
QuestionAssertion error Winocc.cpp line 345 While testing self made unlicensed ActiveXctrl. Pin
Vaibhav Gupt18-Jun-13 0:38
Vaibhav Gupt18-Jun-13 0:38 
QuestionRemote Accessing Pin
john563217-Jun-13 20:42
john563217-Jun-13 20:42 
GeneralRe: Remote Accessing Pin
Richard MacCutchan17-Jun-13 21:16
mveRichard MacCutchan17-Jun-13 21:16 
AnswerRe: Remote Accessing Pin
vr99999999917-Jun-13 22:47
vr99999999917-Jun-13 22:47 
Questionzero copy approach in windows and unix using C++ Pin
vr99999999917-Jun-13 20:13
vr99999999917-Jun-13 20:13 
AnswerRe: zero copy approach in windows and unix using C++ Pin
Richard MacCutchan17-Jun-13 21:15
mveRichard MacCutchan17-Jun-13 21:15 
GeneralRe: zero copy approach in windows and unix using C++ Pin
vr99999999917-Jun-13 21:30
vr99999999917-Jun-13 21:30 
GeneralRe: zero copy approach in windows and unix using C++ Pin
Richard MacCutchan17-Jun-13 21:53
mveRichard MacCutchan17-Jun-13 21:53 
GeneralRe: zero copy approach in windows and unix using C++ Pin
CPallini17-Jun-13 23:45
mveCPallini17-Jun-13 23:45 

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.