|
Is it possible to use VC++ to activate a button in a web browser automatically. I hope this is clear. sorry for bad english.
I want to run a VC++ program to automatically cliack a button in a web browser. thanks
thanx
|
|
|
|
|
I would hazard a guess that it's possible using the IWebBrowser2 interface but have never tried.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hi, I'm new to embedded visual C++ 3.0. Does anyone knows how to add a Windows Media Player (video player) object with controls into the project using Dialog base? Many thanks!
|
|
|
|
|
I want stop program in a CMainFrame:: function but get erro message, "Application Error - The exception Breakpoint" why?
void CMainFrame::OnUpdateprogram()
{
....
....
exit();
}
|
|
|
|
|
It is not valid to exit from an MFC program in this manner from within the MainFrame window. You should post yourself a WM_CLOSE or else use PostQuitMessage() instead.
|
|
|
|
|
Thanks! BTW, wich one is nomaly using, what are they differenct?
|
|
|
|
|
PostQuitMessage usually works if your thread has a message queue but does not have a window. You definitely have a window, so I would post the WM_CLOSE instead.
PostMessage(WM_CLOSE);
Or you can use the sample code from MSDN:
AfxGetMainWnd()->PostMessage(WM_CLOSE, 0, 0);<br />
|
|
|
|
|
I have a CWebBrowser and would like to get a websites "View->Source" html, the CWebBrowser is called m_WebBrowser, and would like to know how to go about doing this.
as far as I know there isnt a way to get the source using a navigate call..
|
|
|
|
|
Just curious - are you using a CWebBrowserCtrl expressly for the purpose of getting at the page's HTML?
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
actually I am having the CWebBrowser go to a website, and then select all the information on the website and then put all the information in a text file, excluding pictures and links. but now I would like to add getting the page source from the website too, there is some hidden data I would like to automatically retrieve, like the links url
|
|
|
|
|
If you aren't using the CWebBrowserCtrl to display the page to the user, you may want to see this[^] article.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
hi all,
I have done a small programe in c++. it is a "phonebook"
the user can add,delete,find....contacts
I need to make the user to enter a password before that.
|
|
|
|
|
suroor_bio wrote:
I need to make the user to enter a password before that.
Ok, so what's your question? Is this a console or GUI application?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
|
One way to do this is to do in the C style by using getch() function to enter the charater. getch() function do not display character on the screen.
char passwd[15];
int i=-1;
printf("Enter Password:");
do
{
passwd[++i] = getch();
} while(passwd[i] != 13);
passwd[i] = '\0';
printf("\npassword is %s\n",passwd);
13 is the ascii code for the return key. Hope it will work
Ritu Kwatra
|
|
|
|
|
Ritu Kwatra wrote:
13 is the ascii code for the return key. Hope it will work
WOW!, you back
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
|
|
|
|
I'm attempting to write a small tool that automatically calls a function on start-up...but my problem is I want the dialog window so be displayed first. If I call the function from the OnInitDialog() it executes it before the window is displayed.
What is the easiest way around this?
|
|
|
|
|
Here's one way:
#define UWM_SOMETHING (WM_APP + 1234)
BEGIN_MESSAGE_MAP(CMyDialog, CDialog)
ON_MESSAGE(UWM_SOMETHING, OnSomething)
END_MESSAGE_MAP()
BOOL CMyDialog::OnInitDialog()
{
CDialog::OnInitDialog();
...
PostMessage(UWM_SOMETHING);
return TRUE;
}
LRESULT CMyDialog::OnSomething( WPARAM, LPARAM )
{
return 1;
}
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Thanks for a quick response
I tried your suggestion but unfortunately it has the same result... The OnSomething() function is still executed before the window is displayed.
|
|
|
|
|
Which means you'll need to use a separate thread to do the work in. See here.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Got it, thanx
|
|
|
|