Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running a VB App from another program

Status
Not open for further replies.

snikde

Programmer
Mar 13, 2002
35
US
I have a CAD package (SolidWorks) in which I have created a series of menu choices. As part of the CAD package boot process it starts another VB program that I have created. From the menus I created in the CAD package I would like to execute functions/routines of the VB program that is now running. I can trap events for the menu picks in the CAD package so that part is fine. I just need to understand how to tell the VB program to run various routines that reside in it based on the menu picked in the CAD package. I am assuming this may means I have to "expose" its routines somehow by setting a reference to the VB program.

Thanks.
 
If the CAD app supports ActiveX and has a scripting language you could make the VB app as an ActiveX exe. Then you can start it with CreateObject and expose its functionality through properties and methods.

Could also put the procedures in the VB app's menus and use API functions to call them.

Another option is command line parameters but this only lets you run a procedure when the VB app is first started.

It all depends on what the CAD app supports programming-wise.

Paul Bent
Northwind IT Systems
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top