Ashish Mittal <[EMAIL PROTECTED]> wrote:

> Hello friends,
>
> I am getting error in compilation of VB6 projects.
>
> Problem:-    I want to compile VB6 project from  NAnt  and also  want
> to provide reference to some dll  during  project compilation time.

Generally speaking, references in a VB6 program are handled by the 
project file, i.e. the .vbp file.  It's possible to hack this file and 
add or change the references you need, but IMNECTHO, it's way more pain 
than it's worth in most cases.

If the DLLs you are referencing are registered, then the VB6 compiler 
should be able to find them no matter where they are on the file system, 
using the GUID from the project file to search in the registry.  If the 
DLLs are not registered, or not registerable, then you might consider 
making sure those DLLs are in a consistent location across all machines 
on which the project will be built.  It's only necessary to point the 
references in the project file to this location.  That's the rought we 
elected to take.

It is certainly possible to modify the paths in the project file prior 
to compilation, but you have to be careful that you don't modify the 
name of the DLL or the GUID.

Brad 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to