Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with projecthook while creating .EXE

Status
Not open for further replies.

Nifrabar

Programmer
Mar 16, 2003
1,343
NL
Hi,

Out of the blue I got next error while building an EXE
Code:
Compiling f:\vfp\projects\begraafplaats\libs\projecthook.vcx
File f:\...\begraafplaats\libs\projecthook.vcx is in use and cannot be recompiled.

I put some code in the projecthook for automating my built-proces.
This worked always fine for me until now....I didnot change the code in projecthook so wondering what is going on?

-Bart
 
Might this probably be a timing issue?
I put a messagebox in the beforebuild method of the projecthook to be able to trace matters.
With this messagebox the code worked as before.....
Weird stuff to me!
-Bart
 
Did you include the projecthook.vcx file in the project? Don't do that, because the projecthook is in use and cannot compile itself. I have a seperate pjx to hold all the projecthooks and compile them in a seperate project manager when projects using them are not in action.

Bye, Olaf.
 
Hi Olaf,
Thanks for your reply.
Can you give some more information about your way of using the project hook?
Indeed mine is included in the project and yes I also experienced that you cannot compile the projecthook within the project.
Your solution seems to solve problem like mine but I don't know how to implement in my app's.
I solely use the projecthook now to clean-up reports prior to do a build. I also zip the DBC and Stonefield-tables and roll that zip-file in my exe.
Once the exe runs there is a check to see if the DBC inside the exe is newer than the one in the data-map and if so there will be done an update.

pls inform.

KR
-Bart
 
Well,

you simply start a new empty project and put the projecthook class in thereble to edit it. You don't set the projecthook as the projecthook of that projects, it's simply for editing purposes. If you check the editor option to compile at save, the projecthook will be fine.

In your normal project you don't include the project hook, you just and only set it in the project info as the project hook.

That's all I'm saying and all you need to do, the project hook then is active in your normal project but not part of it.

Bye, Olaf.
 
Olaf,
Thanks for your feed-back.
Goingto follow up your advice.
KR
-Bart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top