AW: [Shapelib] DLL -> access violation

shapelib-admin at lists.maptools.org shapelib-admin at lists.maptools.org
Tue Mar 2 12:59:13 PST 2004


shapelib-admin at lists.maptools.org wrote:
> I use VC++6.0. Make minimal project (dialog). (add the
> shapefil.h,shapelib.lib and shapelib.dll in the working directory
> Only add 3 things,
> 1.Include in stdafx.h
> 2.Linker: use shapelib.lib
> 3.Dialogclass: SHPHandle file = SHPOpen("michael_lines.shp","rb");

Michael,

Instead of adding shapelib.lib to your project, try just adding the
shpopen.c and dbfopen.c source files into your project.  Also, bring the
shapefil.h include file.  My guess would be that you are using different
build options than were used for the shapelib.lib static library.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Shapelib mailing list