AW: AW: [Shapelib] DLL -> access violation

shapelib-admin at lists.maptools.org shapelib-admin at lists.maptools.org
Tue Mar 2 13:29:00 PST 2004


:) This i try too. But than i get other compiler errors.
If i only include, the compiler say, he reach the EOF while searching
directive precompiled header file (translate word by word),
normal this mean that he want
#include "stdafx.h" (hmm or have i disable the using of precompiled
headers????)
If i include his file, he say:
Debug/test.pch' isnt a precompiled Header-File, who is create whit this
compiler
And if i look in MSDN, its because using c files. And i have to recompile
(create all new), but
this change nothing.

Sorry for asking so much im a study in learning (and english too )

mfg Michael

-----Ursprungliche Nachricht-----
Von: shapelib-admin at lists.maptools.org
[mailto:shapelib-admin at lists.maptools.org]
Gesendet: Dienstag, 2. Marz 2004 21:59
An: shapelib at lists.maptools.org
Betreff: Re: AW: [Shapelib] DLL -> access violation


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

_______________________________________________
Shapelib mailing list
Shapelib at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/shapelib




More information about the Shapelib mailing list