>I understand that to change my VFP 8 EXE's icon from the fox, to someother icon, I would select the "attach icon" in the project manager.
>
>I do my builds programatically:
>
BUILD PROJECT MyProj RECOMPILE FROM MyProj.prg;
>MyProj1.PRG;
>......
>MyProj2.SCT
>BUILD EXE MyProj FROM MyProj
>
>Any idea as to how to include an attach icon in this? Will it swap my VFP 8 EXE's fox for the "attached" icon?
Terry,
You would need to create a ProjectHook and link it to your project. In the BeforeBuild event of the Projecthook, you could specify the Icon property of the _VFP.ActiveProject.
Because it appears you are blowing away the project file every time using the BUILD PROJECT command, you probably have to jump through a couple of extra hoops. Off the top of my head they would be:
1. Issue a Modify Project MyProject NoWait
2. Set the ProjectHookClass and ProjectHookLibrary properties of _VFP.ActiveProject.Project
3. Keyboard a Ctrl+W to save the project
4. Issue a Build EXE command
The BeforeBuild event should be triggered after the ProjectHook is associated with the project.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao