Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: multiple thread problem... Pin
John M. Drescher16-Dec-03 7:53
John M. Drescher16-Dec-03 7:53 
Generaloverruling new/delete, malloc/free Pin
Patje16-Dec-03 6:07
Patje16-Dec-03 6:07 
GeneralRe: overruling new/delete, malloc/free Pin
Alexander M.,16-Dec-03 9:05
Alexander M.,16-Dec-03 9:05 
QuestionHow to make a cab file with safe MFC control?? Pin
aglcic16-Dec-03 5:50
aglcic16-Dec-03 5:50 
AnswerRe: How to make a cab file with safe MFC control?? Pin
Roger Stewart16-Dec-03 14:37
professionalRoger Stewart16-Dec-03 14:37 
GeneralHelp with serialization Pin
Juan Carlos Cobas16-Dec-03 5:16
Juan Carlos Cobas16-Dec-03 5:16 
GeneralRe: Help with serialization Pin
Juan Carlos Cobas16-Dec-03 5:57
Juan Carlos Cobas16-Dec-03 5:57 
GeneralHTTP Post Pin
si_6916-Dec-03 4:58
si_6916-Dec-03 4:58 
Hi all

i am using the below code to call a http post, this is what someone has given me, which i have ammended but its chucking me out an error on these two lines

pFile->AddRequestHeaders("User-Agent: GetWebFile/1.0\r\n", HTTP_ADDREQ_FLAG_ADD_IF_NEW);
BOOL bOK = pFile->SendRequest();


can ne1 see where im going wrong

thanks

si

CString mob = argv[1];
CInternetSession is(_T(NULL));
CHttpConnection* pConn = NULL;
CHttpFile* pFile = NULL;
CString str_url = "http://62.232.41.434/Opera2003/Opera.asmx/";
CString str_path = "Receive?service=447781474224&Phone=447790775894&Message=Thank you for telling us your problem, we will look into what you’ve told us and take action if necessary. We are here to help you.&UserID=&Password=&UserData=&ContentType=0";
pConn = is.GetHttpConnection(str_url, (INTERNET_PORT)INTERNET_INVALID_PORT_NUMBER, NULL, NULL);


pFile = pConn->OpenRequest("POST", str_path);
pFile->AddRequestHeaders("User-Agent: GetWebFile/1.0\r\n", HTTP_ADDREQ_FLAG_ADD_IF_NEW);
BOOL bOK = pFile->SendRequest();
ULONG nStatus = 0;
pFile->QueryInfoStatusCode(nStatus);


GeneralExperts - help - Memory Allocation with disabling paging / swapping Pin
oren frenkel16-Dec-03 4:37
oren frenkel16-Dec-03 4:37 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
Felix Gartsman16-Dec-03 5:31
Felix Gartsman16-Dec-03 5:31 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
oren frenkel16-Dec-03 5:44
oren frenkel16-Dec-03 5:44 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
Felix Gartsman16-Dec-03 7:39
Felix Gartsman16-Dec-03 7:39 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
oren frenkel16-Dec-03 22:40
oren frenkel16-Dec-03 22:40 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
John M. Drescher16-Dec-03 7:56
John M. Drescher16-Dec-03 7:56 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
oren frenkel16-Dec-03 22:38
oren frenkel16-Dec-03 22:38 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
John M. Drescher17-Dec-03 4:11
John M. Drescher17-Dec-03 4:11 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
oren frenkel17-Dec-03 4:18
oren frenkel17-Dec-03 4:18 
GeneralRe: Experts - help - Memory Allocation with disabling paging / swapping Pin
John M. Drescher17-Dec-03 4:27
John M. Drescher17-Dec-03 4:27 
GeneralStarter Pin
neo2k316-Dec-03 3:58
neo2k316-Dec-03 3:58 
GeneralRe: Starter Pin
valikac16-Dec-03 5:11
valikac16-Dec-03 5:11 
GeneralRe: Starter Pin
Anonymous17-Dec-03 3:26
Anonymous17-Dec-03 3:26 
GeneralRe: Starter Pin
LittleYellowBird16-Dec-03 5:16
LittleYellowBird16-Dec-03 5:16 
GeneralRe: Starter Pin
Roger Wright16-Dec-03 5:23
professionalRoger Wright16-Dec-03 5:23 
GeneralRe: Starter Pin
BaldwinMartin16-Dec-03 11:19
BaldwinMartin16-Dec-03 11:19 
GeneralHEAP[MyProgram.exe]: Invalid Address specified to RtlSizeHeap( 00140000, 001E8D10 ) Pin
UOzkan16-Dec-03 3:02
UOzkan16-Dec-03 3:02 

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.