Click here to Skip to main content
15,890,368 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to make very large numbers Pin
David Crow27-Apr-07 17:02
David Crow27-Apr-07 17:02 
GeneralRe: how to make very large numbers Pin
Rajesh R Subramanian27-Apr-07 19:31
professionalRajesh R Subramanian27-Apr-07 19:31 
GeneralRe: how to make very large numbers Pin
g3RC4n27-Apr-07 23:11
g3RC4n27-Apr-07 23:11 
GeneralRe: how to make very large numbers Pin
cp987628-Apr-07 0:21
cp987628-Apr-07 0:21 
GeneralRe: how to make very large numbers Pin
g3RC4n28-Apr-07 8:48
g3RC4n28-Apr-07 8:48 
QuestionLog in to website Pin
baloneyman27-Apr-07 15:42
baloneyman27-Apr-07 15:42 
QuestionRe: Log in to website Pin
Rajesh R Subramanian27-Apr-07 19:30
professionalRajesh R Subramanian27-Apr-07 19:30 
AnswerRe: Log in to website Pin
baloneyman27-Apr-07 22:02
baloneyman27-Apr-07 22:02 
Hi, Most of the attempts were erased. I was just using this stub to
plug things in.

I can get logged just by tagging the parameters to the url and doing
a navigate. But that way ends up at a splash screen which the VBA code
bypasses.

This one I think was from MSDN:

CString strHeaders =
   _T("Content-Type: application/x-www-form-urlencoded");

CString strFormData = _T("in_un=xxx&in_pw=xxx&process=IN&PARGS=http%253A%252F%252Fwww.racingpost.co.uk%252Fnews%252Fhome.sd");

CInternetSession session;
CHttpConnection* pConnection =
   session.GetHttpConnection(_T("https://reg.racingpost.co.uk/cde/login_iframe_rp.sd"));

CHttpFile* pFile =
   pConnection->OpenRequest(CHttpConnection::HTTP_VERB_POST, _T("rp_sign"));

BOOL result = pFile->SendRequest(strHeaders,
   (LPVOID)(LPCTSTR)strFormData, strFormData.GetLength());


The form is:

  <FORM name=rpsign onsubmit="rp_sign(document.rpsign);return false" 
method=post>
  <TBODY>
  <TR vAlign=top height=25>
    <TD width=114 colSpan=2><INPUT class=B10 maxLength=30 size=14 
      value=xxx name=in_un></TD>
    <TD width=136 colSpan=2><INPUT class=B10 
      style="BACKGROUND-IMAGE: url(../images/furniture/top_password.gif); BACKGROUND-REPEAT: no-repeat" 
      onfocus=removeBG(this); type=password maxLength=30 size=14 name=in_pw 
      xonFocus="this.backgroundimage:url('../images/furniture/top_password.gif');"></TD></TR>
  <TR>
    <TD width=52><INPUT class=A8 style="WIDTH: 52px" onclick="rp_sign(document.rpsign);return false" type=submit value="LOG IN"></TD>
    <TD width=62><INPUT class=A8 style="WIDTH: 62px" onclick="rp_register(document.rpsign);return false" type=button value=REGISTER><INPUT 
      type=hidden value=IN name=process><INPUT type=hidden 
      value=http%3A%2F%2Fwww.racingpost.co.uk%2Fnews%2Fnews_service.sd%3Fstyle%3D2 
      name=PARGS></TD>
    <TD width=126><INPUT class=A8 style="WIDTH: 126px" onclick="rp_forgotten(document.rpsign);return false" type=button value="FORGOTTEN PASSWORD"></TD></TR></TBODY></TABLE></FORM></BODY></HTML>


I am not too much when it comes to HTTP
Thanks,
Roy
Questiondatabase and CListCtrl Pin
hero199527-Apr-07 14:53
hero199527-Apr-07 14:53 
AnswerRe: database and CListCtrl Pin
David Crow27-Apr-07 17:04
David Crow27-Apr-07 17:04 
QuestionPlaySound using Add resource (MFC) Pin
YUANGE27-Apr-07 7:47
YUANGE27-Apr-07 7:47 
AnswerRe: PlaySound using Add resource (MFC) Pin
David Crow27-Apr-07 9:34
David Crow27-Apr-07 9:34 
QuestionLNK errors while using tiff.lib!!! Pin
Kiran Satish27-Apr-07 7:42
Kiran Satish27-Apr-07 7:42 
AnswerRe: LNK errors while using tiff.lib!!! Pin
bob1697227-Apr-07 14:38
bob1697227-Apr-07 14:38 
QuestionAdding a COM Interface... Pin
dontknowitall27-Apr-07 7:15
dontknowitall27-Apr-07 7:15 
QuestionHow do I check/uncheck a MENUITEM in a menu? Pin
KellyR27-Apr-07 6:08
KellyR27-Apr-07 6:08 
AnswerRe: How do I check/uncheck a MENUITEM in a menu? Pin
JudyL_MD27-Apr-07 7:40
JudyL_MD27-Apr-07 7:40 
GeneralRe: How do I check/uncheck a MENUITEM in a menu? Pin
KellyR27-Apr-07 8:35
KellyR27-Apr-07 8:35 
QuestionVC++8: OCX Control -> How do I generate a class wrapper if the control has two interfaces? Pin
Joan M27-Apr-07 3:35
professionalJoan M27-Apr-07 3:35 
QuestionWidget appearance in CDHtmlDialog Pin
fuzzymonk27-Apr-07 3:13
fuzzymonk27-Apr-07 3:13 
QuestionNeed help to create service Pin
VC_RYK27-Apr-07 2:53
VC_RYK27-Apr-07 2:53 
QuestionRe: Need help to create service Pin
David Crow27-Apr-07 3:08
David Crow27-Apr-07 3:08 
AnswerRe: Need help to create service Pin
VC_RYK27-Apr-07 3:13
VC_RYK27-Apr-07 3:13 
GeneralRe: Need help to create service Pin
David Crow27-Apr-07 3:20
David Crow27-Apr-07 3:20 
GeneralRe: Need help to create service Pin
VC_RYK27-Apr-07 3:37
VC_RYK27-Apr-07 3:37 

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.