开发者

web page in C++ desktop application

I have a Borland C++ application and I am new to desktop applications.

I would like in one of the pages to embed a web page of another application of mine that the URL is something like:

www.mysite.com/thepage

In HTML I can开发者_运维百科 use <IFrame>. How can I do it in Borland C++?


I would suggest you never to compare HTML with C++. They are extremely, totally , completely different and can't be compared.

Also I would not call anything in C++ desktop application as Page.

As for displaying HTML content use any HTML/Web Browser control.


The VCL in Borland/CodeGear/Embarcadero C++Builder has a native TCppWebBrowser component that is a wrapper for the Internet Explorer ActiveX control. Or you can embed the control manually. If you do not want to rely on Internet Explorer, FireFox has a similar control available, IIRC. Or there are third-party VCL web browser components available, such as PBear.


If it's a Borland C++ for Windows or at C Builder you should be able to embed a HTML control in a application window. Here you can find the implementation of a custom HTML control in plain C: http://www.codeproject.com/KB/COM/cwebpage.aspx . There is also a web control from Microsoft. You can find out more about it here: http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx Good Luck!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜