I am making an app in Visual Basic 6.0 which includes feed from cctv camera. The cctv system runs as an .exe application but it doesn't comes with .dll file that can be embedded.

How to "embed" that window in my VB form?

I know about Shell() which runs application in different window, but I want it to embed completely in my form not in another window.

Thanks in advance.

有帮助吗?

解决方案

You can embed it as a resource in your exefile. But you have to extract it and run it. You can run it hidden as prev poster noted.

How to do that? Download ResHacker to embed the resource.

Here's a sample that includes vb6 source code for a self extracting installer. Don't install it as what it installs doesn't work on post win 2000 versions. The installer part does work any version.

http://mvps.org/serenitymacros/images/webview.zip

其他提示

Run the exe and take the hwnd to change its parent to your app form.

If you don't want to show the command prompt you can have a look at the following post here on stackoverflow

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top