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 MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

API femap visual basic createobject premature close

Status
Not open for further replies.

thylow23

New member
Joined
Feb 16, 2004
Messages
5
Location
US
Does anyone know how to open a femap v8.3 application in visual basic 6 without the femap window closing immediately after I open it. I see the femap application open very quickly and it quickly closes. My code is:

Dim femap As femap.model
Dim rc As Long

Sub Main()

set femap.CreateObject("femap.model")
rc = femap.feAppVisible(True)

End Sub
 
i belive you are looking for the SHELL and/or SHELL_EXECUTE commands, which start an application in VB6.

the link below is to an excellent VB6 forum....if you sign up there you can search on whatever topics you have interest in.

i looked through my code listings but cannot fine an example right now, but i know i have used these commands....just cant find the code now.


daveleo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top