[Shapelib] Problem adding shapelib.dll to VC 2005 project

Mateusz Loskot mateusz at loskot.net
Fri Nov 9 08:28:37 PST 2007

William T Richards wrote:
> When I attempt to add the shapelib.dll to a project I get the message:
>   "a refrence to 'F:\projects.........\shapelib.dll' could not be added. This is 
> not a valid assembly or COM component.  Only assemblies with extension 'dll' and 
> COM components can be referenced.
>    I got this library from http://shapelib.maptools.org/dl/contrib/DotNetArchive.zip
>  I have attempted to recreate the dll with in its project and the build runs 
> with out an error and produces the dll.
> Any Ideas why I cant get VC  to add the reference to shapelib.dll


If you are using Visual C++, why do you want to add any .NET references?
The only thing you need to do is to add shapelib import library to
linker input and make shapelib.dll available in PATH in run-time.

Mateusz Loskot

More information about the Shapelib mailing list