> This is what I tried:
>                             filename_to_be_stored              
> project_location
>      hbide_pathProc( "C:\dev_sources\vouch\abc.prg",
> "C:\harbour\contrib\hbide\projects\hbide.hbi" )
> and received:
>      C:\dev_sources\vouch\abc.prg
> whereas I was expecting something like:
>      ../../../../dev_sources/vouch/abc.prg

Back to this example and to put it shortly:

What you get is expected. In this case an absolute path was 
forced for the .prg file, which will be respected by this logic.

Whilst you expect my function to convert an absolute path 
to a relative one. This is never a good idea and doesn't 
have any point anyway, since you'd be in the same trouble 
in case you had moved your base dir (in this case hbide 
location).

In this case the IMO best solution is to move the .hbp (.hbi) 
file to C:\dev_sources\vouch\vouch.hbp and store "abc.prg" 
(without any path) in the .hbp file.

To open this .hbp file, you must specify (or visually select) 
it, and at this point we got to know the base directory, thus 
we also know the complete dir for each referenced source file.

Brgds,
Viktor

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to