如何将浏览器引擎集成到我的 MASM 应用程序中?
我正在使用 RadASM IDE 在 MASM 上开发一个应用程序。这个IDE附带了一个IE控件(WebBrowser),但是我想要显示的内容在该浏览器(XHTML+CSS)上被破坏了,而且我想删除外部IE dll的依赖关系,所以这是我想到的唯一解决方案是使用其他浏览器的引擎,如 Firefox 或 Chrome。 我在网上搜索过,发现了一些满足我的要求的 DevKit,但它们被设计为与 VS2005+ 一起使用,或者只是在 C++ 上编码。
如果有人知道如何将浏览器引擎(不是 IE)集成到 MASM 应用程序中,我们将不胜感激。
I'm developing an app on MASM using the RadASM IDE. This IDE comes with an IE control (WebBrowser) but the content that I want to display is broken on that browser (XHTML+CSS), also I want to remove the dependency of an external IE dll so the only solution that comes to my mind is use an engine of other browser like Firefox or Chrome.
I've searched over the net and I found some DevKits that meets my requeriments, but they are designed to work with VS2005+ or they just are coded on C++.
If someone know a way to integrate a browser engine (Not IE) to a MASM app, will be highly appretiated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我怀疑您是否会找到专门帮助您从汇编语言调用它的浏览器 SDK。如今几乎没有人真正用汇编语言编写应用程序。然而,C 语言非常接近汇编语言,因此您所要做的就是使用 C 语言指令并将其转换为汇编语言。由于您已经在用汇编语言编写应用程序,因此这对您来说应该不成问题。
I doubt you will find any browser SDK that specifically helps you call it from assembly language. Almost nobody actually writes applications in assembly language today. However, C is pretty close to assembly, so all you have to do is use the instructions for C and translate to assembly language. Since you're already writing an application in assembly language, that should be no trouble for you.
您可以通过 WinAPI 函数 LoadLibraryA 和 GetProcAddress 使用任何附带预编译二进制文件的 SDK。或者,您可以按照 Iczelion 在该主题上撰写的内容(绝对值得一读)或阅读 我的网站上有 3 部分指南,它基于 Iczelions 指南,但适用于实际示例,即为 FMOD API 创建您自己的 MASM 导入库。
是否值得所有的麻烦是另一个问题。
You can use any SDK that comes with pre-compiled binaries using the WinAPI functions LoadLibraryA and GetProcAddress. Or you can build your own import libraries for MASM by following what either Iczelion did write on that topic (definately worth a read) or by reading the 3 part guide on my website, which is based on Iczelions guide but works on a live example, namely creating your own MASM import library for the FMOD API.
Weather it is worth all the hassle is another question.