>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.comwww.prenia.comWeblog: blogs.prenia.com/cathi