|
Try:
m_explorerctrl.Navigate("http://www.yahoo.com",0,NULL,NULL,NULL);
|
|
|
|
|
klvin wrote: Cannot find "www.Test.com" . Make sure the path and Internet address is correct.
Are you really passing "www.Test.com" as parameter to Navigate ?
Because error seems to say so.
|
|
|
|
|
Have you tried correcting the URL so that it is well-formed (http://www.yahoo.con ) and see if that makes a difference? I would also try specifying one of the BrowserNavConstants flags as well.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
Hi,
I need to find a "text" in all the open windows in the application. I send messages from a dll
to all open windows (opened using exe). Both are part of the VC solution.
Am able to send message from dll to a window (active window) using
CWnd * pWndTarget = (CWnd*)dData;
pWndTarget->SendMessage(FIND_MESSAGE, wParam, (LPARAM)pItem)
But if i want to send the same message to all windows using
::SendMessage(HWND_BROADCAST,FIND_MESSAGE, wParam, (LPARAM)pItem);
it is not sending the message. Any clues please?
Thanks
Raji
|
|
|
|
|
|
Did the follwoing:-
from the dll -
in header - extern int AFX_EXT_DATA wmFindWndNotify;
int wmFindWndNotify = RegisterWindowMessage(_T("FIND_MESSAGE"));
::SendMessage(HWND_BROADCAST,FIND_MESSAGE, wParam, (LPARAM)pszName);
from the APP -
ON_REGISTERED_MESSAGE(wmFindWndNotify, OnFindObject)
But the method "OnFindObject" is not at all called!
Thanks
Raji
|
|
|
|
|
RajiRaghu wrote: ON_REGISTERED_MESSAGE(wmFindWndNotify, OnFindObject)
Is this in a child window? Only top-level, overlapped, and pop-up windows will receive the
broadcast message.
|
|
|
|
|
This is not a child window. All windows are Frame Dialogs.
Any clues please.
Thanks
Raji
|
|
|
|
|
In the DLL:
UINT wmFindWndNotify = RegisterWindowMessage(_T("FIND_MESSAGE"));
::SendMessage(HWND_BROADCAST, wmFindWndNotify, wParam, (LPARAM)pszName);
In the APP -
const UINT wmFindWndNotify = RegisterWindowMessage(_T("FIND_MESSAGE"));
...
BEGIN_MESSAGE_MAP(CMyFrame, CFrameWnd)
ON_REGISTERED_MESSAGE(wmFindWndNotify, OnFindObject)
This should work
|
|
|
|
|
hi all
im trying to call Cmdline exes in VC++ project.
im successful in that,nw im getting problem in running that exe on pc where VC++ is nt installed.
Application does not execute on that particular terminal.
|
|
|
|
|
Hi,
Check which libraries your app uses e.g. MFC71.dll or atl71.dll and copy it to client machine ... or find and redist for it on Microsoft site.
-----------
Mila
|
|
|
|
|
bardiyamanisha wrote: im getting problem in running that exe on pc where VC++ is nt installed.
Use dependency walker to find out what are the DLLs that are missing. The dlls that has a yellow symbol are missing. You should also ship these dlls with your application.
If it's not a dependency problem then it could be crashing somewhere. There is an article in codeproject that talks about such issues.
|
|
|
|
|
If you have built a debug version you are going to need to vopy over all the dependnecies too.
Use depends.exe to find out what your app needs.
If you have a release exe you should be OK. If you arent, then you have implications for your installer. It too will need to add the missing dependencies.
Truth is the subjection of reality to an individuals perception
|
|
|
|
|
fat_boy wrote: If you have built a debug version you are going to need to vopy over all the dependnecies too.
Actually, one is not permitted to distribute the DEBUG versions of DLLs - this is expressly prohibited in the license for Visual C++/Studio.
Steve S
Developer for hire
|
|
|
|
|
Steve S wrote: distribute
He didnt say he was distributing his exe, he just cant get it to run on another PC, as often happens during tsting.
Truth is the subjection of reality to an individuals perception
|
|
|
|
|
fat_boy wrote: He didnt say he was distributing his exe, he just cant get it to run on another PC...
These are one in the same. In order for his application to run on the other machine, it must be distributed/installed/copied. No matter how you spell it, the debug DLLs cannot exist on any other machine.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: These are one in the same.
Only in the broadest sense. Testing is totally different to selling a product.
Truth is the subjection of reality to an individuals perception
|
|
|
|
|
Hi,
In a SDI, I wanted to replace the Document Template that is added using AddDocTemplate(). I want to remove one template and add another template.
Thanks,
AJ
|
|
|
|
|
Ajay L D wrote: In a SDI, I wanted to replace the Document Template that is added using AddDocTemplate(). I want to remove one template and add another template.
Quite simple, create a new template and add it using AddDocTemplate .
|
|
|
|
|
Thanks again!
AddDocTemplate() adds another template including the current one. I want to remove the current template and replace it with a new one. Or in other words how can I remove/delete a template that is already added.
Thanks,
AJ
|
|
|
|
|
Ajay L D wrote: I want to remove the current template and replace it with a new one. Or in other words how can I remove/delete a template that is already added.
Are you doing this at runtime?
|
|
|
|
|
Yes. I am trying to do this in response to a Menu item selection.
AJ
|
|
|
|
|
Ajay L D wrote: Yes. I am trying to do this in response to a Menu item selection.
Why don't you go for an MDI application.
|
|
|
|
|
Can we delete a Template in MDI?
AJ
|
|
|
|
|
Ajay L D wrote: Can we delete a Template in MDI?
You don't have to delete a template but you can switch to a new one. Of course you can also delete the template.
|
|
|
|