Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help needed with ProjectHook Object
Message
 
 
To
30/11/2001 09:56:52
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00587733
Message ID:
00588753
Views:
31
Hilmar,
Along these same line of reasoning, you can simply add a procedure to the bottom of your main program that never gets called. In it, add the following:
Procedure DummyProc
external class MyVcx1.Vcx
external class MyVcx2.Vcx

external report MyRpt1.Frx
external report MyRpt2.Frx

external procedure MyPrg1.Prg
external procedure MyPrg2.Prg
The project compiler will bring everything into the project. And then there is no need to remove anything from the PM.

>>I’m using VFP 6 SP 5 on Windows 98 SE. I’ve got a project file that I need to add 200 plus program files to which are referenced indirectly. Rather than use the point and click interface, I thought to add these file programmatically. Now comes the learning and growth experience.
>>
>>I RTFM up to and through “The ProjectHook Object” and have tried to assign a project class in both Tools, Options, Projects and, with the project open, Project Info, Project Class. No luck, and I don’t understand how to create the class library that I need. Could someone please point me in the right direction and/or maybe provide a basic example of adding program files to the project? All the MSDN documentation I’m reading seems to be using circular logic.
>>
>>Thank you very much.
>
>Create a dummy program, add it to the project, compile, remove dummy program. Contents of dummy program:
>
>
>do MyProgram1
>do MyProgram2
>...
>do form MyForm1
>...
>report form Report1
>report form Report2
>...
>
>
>It should be easy to write a program to create this dummy program. One of the recent downloads can scan through a folder, search for files with a certain extension, and add them to a text-file. It also allows the option to specify text before and after.
>
>HTH, Hilmar.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform