Entering an acount on a web-site, knowing the username & password
-
Hello! I have a little problem: I want to access an acount on the web(using IE), from my Visual C++(6) application, knowing the url, user-name & password. For example: url: http://mail.yahoo.com user: dorutzu pass: the_password All I want to happen is a new browser window to appear with my account opened in it. Any ideea how this can be made possible(for any web-site)? Thank you in advance...I'm waiting for your answers here or eventualy at dorutzu@yahoo.com :)
-
Hello! I have a little problem: I want to access an acount on the web(using IE), from my Visual C++(6) application, knowing the url, user-name & password. For example: url: http://mail.yahoo.com user: dorutzu pass: the_password All I want to happen is a new browser window to appear with my account opened in it. Any ideea how this can be made possible(for any web-site)? Thank you in advance...I'm waiting for your answers here or eventualy at dorutzu@yahoo.com :)
Search MSDN for IE Automation.
-
Search MSDN for IE Automation.
-
Do you have MSDN? If so, just search for
**"internet explorer" near automation**
. You'll find plenty to get you started. Otherwise, go to http://search.microsoft.com/advanced_search.asp?siteid=us/dev[^] and search for the same thing. -
Do you have MSDN? If so, just search for
**"internet explorer" near automation**
. You'll find plenty to get you started. Otherwise, go to http://search.microsoft.com/advanced_search.asp?siteid=us/dev[^] and search for the same thing.void CHtmlView::Navigate2( LPCTSTR lpszURL, DWORD dwFlags = 0, LPCTSTR lpszTargetFrameName = NULL, LPCTSTR lpszHeaders = NULL, LPVOID lpvPostData = NULL, DWORD dwPostDataLen = 0 ); I assume that the login page uses a
, so you need to construct the post data parameter block and pass it as the lpvPostData param. As for opening in new window, see the lpszTargetFrameName param.