Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Breaking a big project up.
Message
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00335380
Message ID:
00335417
Views:
17
First, when doing any of the following, do it on COPIES ONLY.

When you exclude a form from a project, any classes that form uses must be provided separately [effectively excluding those classes from the project as well]. For simplicity, you may just want to exclude all forms and classes from the project.

What I do is put all my forms in a Forms sub-folder under my APP folder. I place all my classes in a Classes sub-folder under my APP folder as well. IN my MAIN PRG, I have a SET PATH statement that includes these sub-folders.

When I get ready to run the setup wizard I have a SetupWiz folder where I re-create my folder tree and put any APPs, EXEs, BMPs, ICOs, etc., including copies of all my form [SCX, SCT] and class files [VCX, VCT] in their respective sub-folders. I then run a PRG that will strip all the Method code from these copies. e.g.:
cd c:\MyApp\SetupWiz\Classes
lnRetVal = adir(aClasses, "*.VCX")
for i = 1 to lnRetVal
   lcClass = aClasses(i,1)
   use (lcClass) excl
   repl all methods with ""
   pack memo
   pack
   use
endfor
If you have any code you want to protect in the DBC, you can also open the DBC as a table and remove the un-compiled code from the record that has StoredProceduresSource as the ObjectName [should be the 3rd record]. The actual code is in the CODE field. Remember to only do this on a copy of the DBC or at least have the code stored in a separate file. You might want to open the database exclusivley [open data mydbc excl] first and issue a compile database mydbc before removing the SP code.

>I am wondering how to break a big project up into smaller projects. More specifically, I have an application with VMP4 as it's framework. I want a main executable that contains all the code for the class libraries and external prg routines. I want to make sub projects (and compile them as apps) which will extract a few forms from the original project so that I can create a few apps which will run when a button is pressed from the main program.
>
>To recap, a main exe will contain all compiled code for vcx and prgs etc... ( I don't want the sub projects to house common vcx and prg files that the apps use, I just want the apps to have access to this compiled code.)
>
>An app will contained a couple of compiled forms (scx's). The forms use vcx's from exe file.
>
>I almost had something like this working, but I kept getting error when trying to launch the app from the button in the exe file. It couldn't see the vcx's in the exe. (The vcx compiled into the exe is what I want seen by the app.) VMP4 has a fucntion x3setcls to use in order to set class libs which I used in the app but the dog gone app still wouldn't see the vcx's in the exe file.
>
>I am wondering how to make this work. And if I can't make it work like this, how can I make it work. Can a compile all the vcx's into, say, fll or some other type of winders run time library or com object or whatever? I would like sub apps to share the compiled vcx files so that they aren't so bulky from having to inlcude the vcx's in the project again.
>
>THanks in Advance.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform