Executing And Tracking A Process With VB And ASP
(Page 1 of 3 )
If you've ever used the Windows API, then you'll know that it has certain functions to execute and monitor shell applications. In this article Joe shows us how to execute and monitor a C++ program as a separate process using API's through a Visual Basic ActiveX DLL and ASP.Over the last couple of weeks I've been playing around with my favourite programming languages on the Microsoft platform: ASP, Visual Basic and C++. I've been using these three languages to research, document and construct a test platform on my Windows 2000 server that imitates calling a legacy application through a modern web-based scripting language, such as ASP.
If you've ever used the Windows API then you'll know that it has certain functions to execute and monitor shell applications, track them as a process, and monitor their progress. In this article I'm going to show you how to use C++ to create a dummy legacy application. I will then show you how to execute and monitor this legacy app as a separate process using API's through a Visual Basic ActiveX DLL. Lastly, we will create an ASP script to instantiate this ActiveX DLL.
This article assumes a fair amount of programming knowledge and you should be at an intermediate level with C++, Visual Basic and ASP. You'll need access to a Windows 2000 server to run the ASP scripts and optionally Visual C++ 6 to create our C++ legacy app. If you don't have Visual C++ installed then don't worry, the legacy app's executable is included as part of the support material at the end of this article.
Next: Creating the legacy app >>
More ASP Articles
More By Joe O'Donnell