I was tried SQLite3Test and SQLite3Static with "#define _WIN32_WINNT 0x0501"
macro. but It's not work.
Please make sure the _WIN32_WINNT macro is defined in all your projects
then (and for all build configurations).
--
Joe Mistachkin
Solution
+ SQLite3 (Dynamic Library)
+ SQLite3Static (Static Library)
+ SQLite3Test
Directory of Z:\...\SQLite3Library\sqlite
2012-01-16 23:04 91,925 shell.c
2012-01-20 17:50 4,711,082 sqlite3.c
2012-01-16 23:06 4,227 sqlite3.def
2012-01-16 23:06 577,621 sqlite3.dll
2012-01-20 17:52 332,315 sqlite3.h
2012-01-17 11:31 47,726 sqlite3.lib
2012-01-16 23:04 24,158 sqlite3ext.h
Directory of Z:\...\SQLite3Library\VS2005\SQLite3
Directory of Z:\...\SQLite3Library\VS2005\SQLite3Library
Directory of Z:\...\SQLite3Library\VS2005\SQLite3Test
I have one solution. It contains 3 projects.
projects are use same sqlite files.
I try to compile source with Visual C++ 2010. It's fine. I can't understand
this situation.
What problem with Visual C++ 2005.
*Jens Frederich>*
Can you describe your project structure. One Visual Studio test project with
sqlite3.c sqlite3.h inside or two separate projects?
--------------------------------------------------------------------------------------------
ASURADA wrote:
>** *>* What's the problem. How to fix this problem.*>* (I use Visual C++ 2005
>on Windows 7 x64)*>* **In your project, please define the _WIN32_WINNT macro
>to 0x500 and try
again.
--
Joe Mistachkin
--------------------------------------------------------------------------------------------
I use sqlite library that is compiled by myself. Because I need static
library and 64bit library.
So I try to make library for version 3.7.10. It was successfully. No error
occur on compile time.
But It was not work. My SQLite library gave me a error message. My code is
fine with 3.7.9.
In case of work with memory db (:memory:), it is fine.
What's the problem. How to fix this problem.
(I use Visual C++ 2005 on Windows 7 x64)
test code
==========================
:***int rst = sqlite3_open( "e://data.db <file:///E://data.db>
<file:///E://data.db>", &pSQLite3 );*:****Error
==========================
sqlite3.c
35391 if( isNT() ){
35392 LPWSTR zTemp;
35393 nByte = osGetFullPathNameW((LPCWSTR)zConverted, 0, 0, 0) + 3; <<
Error occurred Line
35394 zTemp = sqlite3_malloc( nByte*sizeof(zTemp[0]) );
Error Message
==========================
Unhandled exception at 0x00000000 in SQLite3Test.exe: 0xC0000005: Access
violation reading location 0x00000000.
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users