Search code examples
vb6exeoleembedding

How to embed the window of another application in my application


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.


Solution

  • 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