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

Difference between Classes in .PRG or .VCX files

Status
Not open for further replies.

Qwark

Programmer
Sep 26, 2000
59
NL
What's the difference between classes in an .prg file or in a .vcx file (wich is created with the class designer).
And of course what's the best way.

Can anyone answer my question, and give your opinion.

Thanks,

Qwark
 
Hi Qwark,

When using visual claslibraries, the visual design is more easy. I do not believe it is quicker using either VCX's or PRG's at runtime.

I have used both. Using code classes (prg's) I made a project hook that put all my code classes and procedures into one big prg. The advantage is that you only have to issue SET PROCEDURE TO mymainprg once, which saves start up time.

You can use both btw, I designed most of my classes in VCX's and used the ClassBrowser to turn them into code classes and I used a project hook to collect them and put them into one big prg after building my app (all my VCX's where of course excluded from the app).

So at design time I could still use VCX's as where at runtime the app uses code classes.

Another advantage is that you can place the big prg (as an FXP at runtime, of course) outside of your exe, which makes your exe quite small. As where most prefer to include their VCX's in the exe so they cannot be opened or get corrupt.

So it's up to you to decide.

Weedz.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top