Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross 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
Feb 16, 2004
5
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
 
Replies continue below

Recommended for you

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