Windows programming

Moderators: None (Apply to moderate this forum)
Number of threads: 3711
Number of posts: 9173

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
C++Builder4 and Web Browser Posted by Mick on 12 Nov 1999 at 3:36 AM
Does anybody know how to open "Default Web Browser" and send it to http://blablabla.whatever.com<p>
I have a C++Builder4 and I have no idea how to do that. What component should I use and how?<p>
Mick


Edit Report
Re: C++Builder4 and Web Browser Posted by Justin on 12 Nov 1999 at 7:37 AM
Im not sure if this will work on C++ Bulider,<br>
but with my Visual C++, I can use something like<br>
the below. (I copied and pasted this from a<br>
previous reply I put here a while ago.)<p>
ShellExecute(/*handle_to_your_app_window*/, "open", "the_web_page", NULL, NULL, SW_SHOWMAXIMIZED);<p>
you will also need to #include shellapi.h<p>
Another interesting thing about this function is<br>
it will launch any file, so if you specified a<br>
file on a local drive in the "the_web_page" part,<br>
that file could be launched as well.<p>
Hope this helps,<br>
Justin


Edit Report
Re: C++Builder4 and Web Browser Posted by Mick on 13 Nov 1999 at 6:30 AM
Hehe, thanks...:) Works just fine...<p>
Just a little (very tiny) problem: I don't know the syntax for ShellExecute(...); What are these NULLs? Can you send me a ".hlp" file or at least the syntax with meanings...<p>
Thanks,<br>
Mick<br>
mick1@deathsdoor.com





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.