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!

How import forms from VB6 in the SW IDE

Status
Not open for further replies.

Florent

Mechanical
Feb 18, 2007
32
Hi evrybody ;

I've developped an standalone executable to process many files with Visual Basic 6.
Now, I want to re-use the code and forms that are already written to make an integrated macro which will process the current opened model in SW.
But when I try to import the form in the SW IDE, the import failed.

Apparently, the form from SW IDE is contained inside to file (.frm->text file and .frx-> binary file) contrary to a from from vb6 which is contained in a simple file text (.frm).

Does anyone try to do this, or have an idea ???

Thanks for your helpful answers, and the others too !!! ;-)


SW2007 SP5
Worksatation HP wx4300 2GB
NVidia Quadro FX 3450
 
Replies continue below

Recommended for you

I've had this problem. There's a difference between VBE forms and MS 2.0 forms.

The best I could do is create a new form w/ controls that all have identical names, then copy-and-paste the code.

There are some slight differences, so there may be some bugs to work out.

[bat]Honesty may be the best policy, but insanity is a better defense.[bat]
-SolidWorks API VB programming help
 
Thanks TheThick.

I've ever thought to this solution, but didn't want to do it, in oder to manage only one code.

Unfortunatly, it seems to be the only solution.

Thank you still.

SW2007 SP5
Worksatation HP wx4300 2GB
NVidia Quadro FX 3450
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor