Jump to content
  • Advertisement
Sign in to follow this  
Jouei

Win32 Html Broswer

This topic is 3790 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im making an MySql Database manager and i wish to use some basic html to display the results from searchs and Query's. I was woundering if there were any open source Basic html browser i can use or use as a decent refrence to write my own or if there is a default windows control that i can use. Ps. Any Pitfalls and problems that may arise would be nice to note if you know them. Regards jouei.

Share this post


Link to post
Share on other sites
Advertisement
Both Gecko (the HTML rendering engine for Mozilla/Firefox) and IE are available to be embedded in Windows applications. Both of them can be used as ActiveX objects for example. The exact steps required depend on your programming language and any windowing frameworks you are using for application development.

Share this post


Link to post
Share on other sites
Currently im useing C++ and Win32 Api. i can't belvie i forgot to mention that the real issue is that the application will end up being for commerical use.

So i do need something that i can still use and beable to sell the software application when it is done.

Regards Jouei.

Share this post


Link to post
Share on other sites
this might help: http://www.codeproject.com/KB/COM/cwebpage.aspx

Share this post


Link to post
Share on other sites
What's wrong with providing the html and letting the users pick their browser to view it?
Edit: Nevermind, I realized you probably want to integrate the html into your existing interface. An external browser wont help you with that.

Share this post


Link to post
Share on other sites
Why not make entire interface in HTML?

Databases are generally remote. If you provide an embedded browser you'll need a HTTP server anyway.

Commercial use? Many years ago commercial world discovered that web applications are the holy grail of administration.

Authenticity? No problem with web application. With custom application, you'll need double authentication. One for HTTP stream, other for the rest of the application.

Browser specific applications? Generally very bad. HTML is well defined, and reasonably well understood.

Performance? You don't gain anything important by going half-half. Queries will take most of the time. If interface is sluggish, there's AJAX.

Compatibility? What could be more compatible than server process, that feeds your application with HTTP stream.

I don't know, perhaps you have some ultra super demanding solutions... But for browsing queries, writing business applications, and everything else, that's what web applications are for.

Quote:
I was woundering if there were any open source Basic html browser i can use or use as a decent refrence to write my own or if there is a default windows control that i can use.
Sure there are.

And no, you cannot write one on your own. Flying Saucer, a CSS compatible browser has been in development by a team for over three years. It's still not complete, and not because of incompetence.

Quote:
Any Pitfalls and problems that may arise would be nice to note if you know them


Yes. Time. You're looking at 5-10 year project, during which time HTML 5 will come out.


IMHO - write a web application.

Share this post


Link to post
Share on other sites
I don't see why you are telling him to write a pure web based application Antheus. It sounds to me like he has a nice UI app set up already. You do not need an HTTP server to give HTML formatted pages. Try it, go to your desktop and create a text file and rename it html. Add some HTML code and boom. All he wants to do is generate an HTML page from some data that his Program gathers. Shouldn't be too difficult.

Since you are using the Win32 api anyways, that leads me to believe that you don't much care for cross platform development. May I suggest that you move over to .Net programming Windows Forms via C++?

This might help:
http://www.developer.com/net/cplus/article.php/1378751

Share this post


Link to post
Share on other sites
Quote:
Original post by Jouei
... if there is a default windows control that i can use.



Actually there is something like this. The core components used by IE provide COM interfaces you can use to work with HTML. MSHTML handles the DOM and rendering web pages, or you can embed a web browser window in your app. There is more info on MSDN. I've used MSHTML in projects before. If you are familiar with COM it's pretty easy to use. I expect there are .net interfaces to this stuff too.

Share this post


Link to post
Share on other sites
You don't need anything.
Just use WebBrowser interface and ::navigate
No ActiveX, No code to add in pure C & win32 api.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!