Re: Project hook by RGBean
RGBean
Tue Jul 08 20:20:18 CDT 2008
That's true Lew, but you give up all the project's properties. For example
you can update the project's version based on some external criteria (e,g. a
change log) , or turn on or off the debug or encrypted flags.)
Rick
"Lew" <lew@fastmail.fm> wrote in message
news:eHFgdLK4IHA.1436@TK2MSFTNGP05.phx.gbl...
> You might be better off adding the build command to one of the prgs
> instead. That way you'd still be able to do the standard build from the
> project manager.
> "Stephen Ibbs" <stephen@datadevelopments.co.uk> wrote in message
> news:%23IpwJJC4IHA.4340@TK2MSFTNGP06.phx.gbl...
>> Many thanks Rick - very clear and simple to follow - just what I needed
>> !!
>>
>> Stephen
>>
>> "RGBean" <rgbean@NOSPAMmelange-inc.com> wrote in message
>> news:722C87E4-F86E-48F5-9BA6-03522D4466CD@microsoft.com...
>>> Sure Stephen,
>>>
>>> 1) SET DEFAULT TO the folder you want to keep it (usually the same one
>>> as the project).
>>> 2) Create a new class based on the Projecthook - off the menu, or in the
>>> command window. e.g.:
>>> CREATE CLASS myPJXHook OF myHooks as ProjectHook
>>> 3) In the BeforeBuild() method put your code.
>>> 4) Close the class
>>> 5) Open the project
>>> 6) Menu -> Project -> Project Info ... -> Project (tab)
>>> 7) Check the Project Class box, and choose the classlibrary and class
>>> name. (OK to save project info)
>>> 8) Build the project.
>>>
>>> Note: You can't have both the project and the project hook class open at
>>> the same time.
>>>
>>> As you can see there are other methods with thier parameters and
>>> properties that you have access to, have fun, and play with them!
>>>
>>> Rick
>>>
>>>
>>> "Stephen Ibbs" <stephen@datadevelopments.co.uk> wrote in message
>>> news:ujfkbKB4IHA.4572@TK2MSFTNGP04.phx.gbl...
>>>> There are a couple of prgs that I have to remember to run before
>>>> creating the exe - e.g. initialising some tables that are stored R/O
>>>> within the exe.
>>>>
>>>> I have never done anything with project hooks before, but believe that
>>>> this is the way I should do this. Can somebody point me to a helpful
>>>> article or explain simply how I set this up?
>>>>
>>>> Many thanks
>>>>
>>>> Stephen
>>>>
>>>>
>>>
>>
>>
>
>