Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
External VFP program
Message
 
To
31/01/2002 08:10:22
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00613281
Message ID:
00613506
Views:
10
This message has been marked as a message which has helped to the initial question of the thread.
>Hi All,
>I want place a part of a programm (let's say a report with a big form to set parameters) as external from the EXE file.
>
>It shut by within one single file.
>Is it possible to place it in a dll and call from there, lets say with NEWOBJECT()? Do I need all parents of my object in this dll? (all of them are inside of my exe file)
>
>Is there a better solution for this?
>
>Is there a common way to tell the mainprog that this external is existing or not?
>
>Thanks for Help
>Agnes

You have several options here. You can mark the source files (prg,scx,etc.) as "Excluded" in the project and just place them in the directory that contains the EXE. Then you can use the DO command and reference the locate and name of the source file. For example:

DO mymethod IN myfile.prg

Another approach is to create a separate project and build an APP, EXE, or DLL. When the project is built, it will try to include any references to external libraries used. This approach is typically used it these external files could be used without the main EXE. Your external application will be larger in size then just using the source code. The one disadvantage with just including the source code is you are exposing that portion of you application to have other developers modify it.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform