|
hiho@ll
i try to auto login a website using the postdata i got from a form
my code:
CString url("http://www.mytestlogin.de/public/login.php");
CString post("user=testuser&pwd=testpass&log=&login=Login");
CString header("Content-Type application/x-www-form-urlencoded");
COleVariant vPostData(post);
COleVariant vHeader(header);
BSTR str=::SysAllocString(T2OLE(url.GetBuffer()));
m_pWebBrowser->Navigate(str,COleVariant((long)0,VT_I4),
COleVariant("_SELF", VT_BSTR),vPostData,vHeader);
does anybody know why it doesn't work?
all i get is the login page, where i have to put username and pass and click the login button
but with the code above i should be in the member area!?
i traced the http connection with a http proxy and the browser doesn't send the post data and my header!?
Is there a failure in variable declaration?
whats wrong?
thx@ll
|
|
|
|
|
yeah
my problem was the following:
replace
CString header("Content-Type application/x-www-form-urlencoded");
with
CString header("Content-Type: application/x-www-form-urlencoded\n");
|
|
|
|
|
other application pass the hInstance or hWnd as an int , my program should change it into HINSTANCE or HWND.
How to do this?
|
|
|
|
|
you have to cast int to HINSTANCE or HWND, like this way
<code>int</code> i=...;
<code> HINSTANCE </code>hInst=(<code>HINSTANCE</code>)i;
or
<code>HWND</code> hWnd=(<code>HWND</code>)i;
"I Think this Will Help"
[Vote One Here,.....]
<h5
alok gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
I need to make my application run within MS Word. Any ideas or suggestions??
Basically what i need to do is write a software and have it run with another existing software.
|
|
|
|
|
http://support.microsoft.com/?kbid=278260
|
|
|
|
|
|
Hello.
I've been searching the internet for hours now and I am looking for an OpenSource C++ library that does POP3 mail retrieval with SSL support for Windows. Basically, i only need sample code with SSL. Using the RFC, I can do mail retrieval and listing. I just need to get sample code for SSL with POP3. The idea is that I'm trying to make a POP3 notifier with SSL support as a plugin for another application.
Thanks a lot.
|
|
|
|
|
Trivex wrote:
SSL support for Windows
Would this[^] article help?
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Here is the errors when building:
SkinMagicLib.lib(coolsblib.obj) : error LNK2001: unresolved external symbol __imp__InitCommonControlsEx@4
SkinMagicLib.lib(SkinToolBar.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetIcon@12
SkinMagicLib.lib(SkinToolBar.obj) : error LNK2001: unresolved external symbol __imp__ImageList_Draw@24
SkinMagicLib.lib(SkinToolBar.obj) : error LNK2001: unresolved external symbol __imp__ImageList_GetIconSize@12
SkinMagicLib.lib(SkinControl.obj) : error LNK2001: unresolved external symbol __imp___TrackMouseEvent@4
Debug/SkinMagicSDK.dll : fatal error LNK1120: 5 unresolved externals
How to resolve it?
Thanks!
|
|
|
|
|
You typically see this error when you have included the library while you were debugging, but forgot to add it to the release versions and then you try to build the final version.
Select Project, Settings, and then go to the Link tab on the dialog displayed. Make sure the library (whatever it is for this SkinMagicLib component) is included in the list of "Object/Library Modules".
|
|
|
|
|
Just add this line in your stdafx.h file
#pragma comment(lib,"comctl32.lib")
after that there is no problem in linking.
actually problem is that you have provided the declaration of function i.e. by adding commctrl.h in your project for common controls but you forget to provide the runtime symbol for those function, which are defined in comctl32.lib
"I Think this Will Help"
[Vote One Here,.....]
<h5
alok gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
Hi, I have a toolbar button of type TBBUTTON. I am trying to set the font for it, is this possible?
|
|
|
|
|
Hello everyone.. I have created a client a server code for communication. I added to the code functions to download the contents of an URL into a file. I have set a the URL as default, and it worked fine. I need to know how to implement a function that will allow the input of any arbitrary URL by a user. Which functions should i use, what params. I looked up readURL, but im not sure if thats what i need.
If u have any idea, please help me.
Thank you.
|
|
|
|
|
|
I have a property sheet with a handful of property pages.
When File/New is selected, I want to clear out the data
from each property page. My code looks like:
void CView0::OnNew()
{
int page = m_pView0PropertySheet->GetActiveIndex();
if (page == 0) m_pView0PropertySheet->m_form0page1.New();
if (page == 1) m_pView0PropertySheet->m_form0page2.New();
if (page == 2) m_pView0PropertySheet->m_form0page3.New();
}
The problem with this code, is that it only clears out the
data from the active property page. Lets say I remove the
if (page == 0)
if (page == 1)
if (page == 2)
If I call this function and the 3rd property page was never
selected (never active), then I get an error because
m_pView0PropertySheet->m_form0page3 is null.
How can I safely clear the data for this example?
Please, any response any one can give me will be greatly
appreciated.
Sincerely,
Danielle Brina (an overworked graduate student)
|
|
|
|
|
You can use IsWindow() on each page to see if it has been activated. IsWindow() will return FALSE if the page has not been activated.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
Thank you
Elapid For The Win
|
|
|
|
|
Look in the registry at HKLM\SOFTWARE\Microsoft\.NETFramework\policy\ for things like v1.0, v1.1 etc.
|
|
|
|
|
Could someone please explain to me how to call a different program within my program?
My scheduler keeps calling a program every (let's say) 60 mins. However I do not know how to do that in my program
please help,
thank you
Elapid For The MFC
|
|
|
|
|
Take a look at CreateProcess.
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
Could you pls tell me where to look for that CreateProcess?
thanks
Elapid For The Win
|
|
|
|
|
<--Dummy
Elapid For The Win
|
|
|
|
|
|
ShellExecute(NULL,"open","notepad.exe",
NULL,NULL,SW_SHOW );
suhredayan There is no spoon.
|
|
|
|