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

define class in seprate file

Status
Not open for further replies.

nevin2007

Programmer
Aug 21, 2009
31
IR
hi
i have an application that use some classes like vfpx‚gdi plus‚ctl32‚...
how can i define that classes in seprate .app or .exe file
because they not change during main program frequency update and if i add them to main project, EXE file will be large
 
GdiplusX from VFPX is already an example on how to compile into an app and use that. They solved it simply by DO system.app, which calls the main program within the app and this generates a root object _screen.system.

It's even easier to compile just a bunch of vfxes and prgs into an app and then use Newobject(), see the help on that extended version of createobject().

Code:
* to create an object of a class within a vcx within some app:
obj = newobject("someclass","some.vcx","some.app")

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top