Re: [sqlite] compiling with VC++

2007-02-26 Thread Dennis Jenkins
RB Smissaert wrote: Did you make the alterations to make the dll VB compatible? Nope. C/C++ all the way. - To unsubscribe, send email to [EMAIL PROTECTED]

Re: [sqlite] compiling with VC++

2007-02-25 Thread Martin Jenkins
RB Smissaert wrote: OK, I understand better now. This though doesn't seem quite right to me: 0, //sqlite3_libversion, It looks sqlite3_libversion should be a string. No, this is a list of function pointers. C has no notion of the *name* of the function, only its address. Functions are

Re: [sqlite] compiling with VC++

2007-02-24 Thread Martin Jenkins
RB Smissaert wrote: Due to me not knowing C I hadn't realized that this structure had to be left intact. It's not a C thing as such, it's the way Dr Hipp has designed it. It's an interface - the third entry in the list always does the same thing but the function that actually runs to do

Re: [sqlite] compiling with VC++

2007-02-24 Thread Martin Jenkins
RB Smissaert wrote: Will give that a try and see if it gives any less warnings. OK, but as Dennis suggested and Dr Hipp has confirmed this isn't the way to go. I was assuming the VB thing was a bit of a hack and didn't really read enough of the C code. Martin

Re: [sqlite] compiling with VC++

2007-02-24 Thread Martin Jenkins
RB Smissaert wrote: How would I do this: compile with -DSQLITE_OMIT_LOAD_EXTENSION=1 to leave it out. Remember that link tab I said about earlier? There's a C/C++ tab next to it with a Preprocessor definitions edit box. I think what you want is to put ",SQLITE_OMIT_LOAD_EXTENSION=1" at the

RE: [sqlite] compiling with VC++

2007-02-24 Thread RB Smissaert
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 24 February 2007 20:06 To: sqlite-users@sqlite.org Subject: Re: [sqlite] compiling with VC++ "RB Smissaert" <[EMAIL PROTECTED]> wrote: > All C4028 warnings originate from this code block: > > const sqlite3_

RE: [sqlite] compiling with VC++

2007-02-24 Thread Joe Wilson
--- RB Smissaert <[EMAIL PROTECTED]> wrote: > Could try with MinGW and MSYS and it may give less warnings, but would it > produce a dll that is any better? If possible I want to avoid installing > more software when I already have VC6++. It's completely up to you. How much time do you want to

RE: [sqlite] compiling with VC++

2007-02-24 Thread RB Smissaert
:06 To: sqlite-users@sqlite.org Subject: Re: [sqlite] compiling with VC++ "RB Smissaert" <[EMAIL PROTECTED]> wrote: > All C4028 warnings originate from this code block: > > const sqlite3_api_routines sqlite3_apis = { [...] > sqlite3_busy_timeout, > //sqlit

RE: [sqlite] compiling with VC++

2007-02-24 Thread RB Smissaert
rom: Joe Wilson [mailto:[EMAIL PROTECTED] Sent: 24 February 2007 19:45 To: sqlite-users@sqlite.org Subject: RE: [sqlite] compiling with VC++ --- RB Smissaert <[EMAIL PROTECTED]> wrote: > Downloaded it from the one you pointed to me: You're confusing me with someone else. Here's a way to b

RE: [sqlite] compiling with VC++

2007-02-24 Thread RB Smissaert
Will give that a try and see if it gives any less warnings. RBS -Original Message- From: Martin Jenkins [mailto:[EMAIL PROTECTED] Sent: 24 February 2007 19:21 To: sqlite-users@sqlite.org Subject: Re: [sqlite] compiling with VC++ RB Smissaert wrote: > Did you make the alterati

RE: [sqlite] compiling with VC++

2007-02-24 Thread RB Smissaert
-users@sqlite.org Subject: RE: [sqlite] compiling with VC++ The suggested changes the web site recommends are incorrect: loadext.c Comment out the following lines is loadext.c by adding 2 back slashes ("//") to the start of the line. This prevents errors due to our changes. sqlit

Re: [sqlite] compiling with VC++

2007-02-24 Thread drh
"RB Smissaert" <[EMAIL PROTECTED]> wrote: > All C4028 warnings originate from this code block: > > const sqlite3_api_routines sqlite3_apis = { [...] > sqlite3_busy_timeout, > //sqlite3_changes, > //sqlite3_close, > sqlite3_collation_needed, > sqlite3_collation_needed16, > > Not sure it

RE: [sqlite] compiling with VC++

2007-02-24 Thread Joe Wilson
--- RB Smissaert <[EMAIL PROTECTED]> wrote: > Downloaded it from the one you pointed to me: You're confusing me with someone else. Here's a way to build sqlite3.dll without Microsoft tools using the official sources: Grab and install MinGW and MSYS (google for it), download

Re: [sqlite] compiling with VC++

2007-02-24 Thread Martin Jenkins
RB Smissaert wrote: Microsoft Visual C++ 6 Enterprise edition. Hmm. I'm using VC6++ Pro. I wonder if it's safe to assume the compilers are the same and the difference is that I don't have the Enterprisey middleware gubbins. I think it is the latest before .net came in. Dunno. I kind of

RE: [sqlite] compiling with VC++

2007-02-24 Thread Joe Wilson
Original Message- > From: Martin Jenkins [mailto:[EMAIL PROTECTED] > Sent: 24 February 2007 18:52 > To: sqlite-users@sqlite.org > Subject: Re: [sqlite] compiling with VC++ > > RB Smissaert wrote: > > Thanks, that is very helpful and reassuring as well. > > Will se

Re: [sqlite] compiling with VC++

2007-02-24 Thread Martin Jenkins
RB Smissaert wrote: Thanks, that is very helpful and reassuring as well. Will see if I can figure out then what is causing this one: warning C4028, as you say that could be a typo. I've just built 3.3.12 source with VC6 and didn't see that error. I changed the warning level to 4 and got 500

Re: [sqlite] compiling with VC++

2007-02-24 Thread Martin Jenkins
RB Smissaert wrote: Did you make the alterations to make the dll VB compatible? I don't think Dennis was building the VB version. The lines that Todd says you have to comment out - did you comment them out or replace them with a 0? I haven't analysed the code fully but I'm a bit suspicious

RE: [sqlite] compiling with VC++

2007-02-24 Thread RB Smissaert
: 24 February 2007 19:06 To: sqlite-users@sqlite.org Subject: RE: [sqlite] compiling with VC++ The function signatures at the lines in question look wrong to me. Do you have the correct version of sqlite3ext.h? --- RB Smissaert <[EMAIL PROTECTED]> wrote: > Here examples of all 3, all from

RE: [sqlite] compiling with VC++

2007-02-24 Thread RB Smissaert
-Original Message- From: Martin Jenkins [mailto:[EMAIL PROTECTED] Sent: 24 February 2007 18:52 To: sqlite-users@sqlite.org Subject: Re: [sqlite] compiling with VC++ RB Smissaert wrote: > Thanks, that is very helpful and reassuring as well. > Will see if I can figure out then what is c

RE: [sqlite] compiling with VC++

2007-02-24 Thread Joe Wilson
> sqlite3_overload_function, > }; > > > RBS > > > -Original Message----- > From: Joe Wilson [mailto:[EMAIL PROTECTED] > Sent: 24 February 2007 17:29 > To: sqlite-users@sqlite.org > Subject: RE: [sqlite] compiling with VC++ > > They're probably harml

RE: [sqlite] compiling with VC++

2007-02-24 Thread RB Smissaert
Did you make the alterations to make the dll VB compatible? RBS -Original Message- From: Dennis Jenkins [mailto:[EMAIL PROTECTED] Sent: 24 February 2007 18:39 To: sqlite-users@sqlite.org Subject: Re: [sqlite] compiling with VC++ RB Smissaert wrote: > Thanks, will have a l

Re: [sqlite] compiling with VC++

2007-02-24 Thread Dennis Jenkins
RB Smissaert wrote: Thanks, will have a look at that. Do you know from experience that it will compile OK with VC6++? I use VC 6.0 and it compiles just fine. I did not follow the instructions on the web site. I didn't even read them. I just put all of the C files into a single

RE: [sqlite] compiling with VC++

2007-02-24 Thread RB Smissaert
Subject: Re: [sqlite] compiling with VC++ RB Smissaert wrote: > When compiling this source code I get 265 warning, which doesn't really > worry me that much as it all seems to be working fine, but in general what > kind of warning should be taken seriously? This has come up the list b

RE: [sqlite] compiling with VC++

2007-02-24 Thread RB Smissaert
: Joe Wilson [mailto:[EMAIL PROTECTED] Sent: 24 February 2007 17:29 To: sqlite-users@sqlite.org Subject: RE: [sqlite] compiling with VC++ They're probably harmless. Even so, can you post the file name/line of one example of each of the following 3 warnings as they seem odd: warning C4047

Re: [sqlite] compiling with VC++

2007-02-24 Thread Martin Jenkins
RB Smissaert wrote: When compiling this source code I get 265 warning, which doesn't really worry me that much as it all seems to be working fine, but in general what kind of warning should be taken seriously? This has come up the list before. Dr Hipp assigns a lot more weight to his tests

RE: [sqlite] compiling with VC++

2007-02-24 Thread Joe Wilson
They're probably harmless. Even so, can you post the file name/line of one example of each of the following 3 warnings as they seem odd: warning C4047: 'initializing' : '__int64 (__cdecl *)(struct Mem *)' differs in levels of indirection from 'char *(__cdecl *)(const char *,char *)' warning

RE: [sqlite] compiling with VC++

2007-02-24 Thread RB Smissaert
: RE: [sqlite] compiling with VC++ Thanks, that is it, nice and simple. RBS -Original Message- From: Martin Jenkins [mailto:[EMAIL PROTECTED] Sent: 24 February 2007 15:40 To: sqlite-users@sqlite.org Subject: Re: [sqlite] compiling with VC++ RB Smissaert wrote: > Now what do I do m

RE: [sqlite] compiling with VC++

2007-02-24 Thread RB Smissaert
Thanks, that is it, nice and simple. RBS -Original Message- From: Martin Jenkins [mailto:[EMAIL PROTECTED] Sent: 24 February 2007 15:40 To: sqlite-users@sqlite.org Subject: Re: [sqlite] compiling with VC++ RB Smissaert wrote: > Now what do I do make it compile a dll cal

Re: [sqlite] compiling with VC++

2007-02-24 Thread Martin Jenkins
RB Smissaert wrote: Now what do I do make it compile a dll called SQLite3VB.dll? I think it defaults to the project name, but have a look at the Link tab in the Project|Settings dialog (Alt-F7) - there's an edit box titled "Output file name" which might do what you want. Martin

RE: [sqlite] compiling with VC++

2007-02-24 Thread RB Smissaert
-Original Message- From: RB Smissaert [mailto:[EMAIL PROTECTED] Sent: 24 February 2007 14:31 To: sqlite-users@sqlite.org Subject: RE: [sqlite] compiling with VC++ Think I got this fixed now. It simply was something I had overlooked to change: //const char *sqlite3_libversion(void); BSTR

RE: [sqlite] compiling with VC++

2007-02-24 Thread RB Smissaert
Lots of warnings (265) but no errors and a dll is produced, which I will try now. RBS -Original Message- From: RB Smissaert [mailto:[EMAIL PROTECTED] Sent: 24 February 2007 13:47 To: sqlite-users@sqlite.org Subject: RE: [sqlite] compiling with VC++ OK, thanks a lot. I think I have made

RE: [sqlite] compiling with VC++

2007-02-24 Thread RB Smissaert
[mailto:[EMAIL PROTECTED] Sent: 24 February 2007 13:47 To: sqlite-users@sqlite.org Subject: RE: [sqlite] compiling with VC++ OK, thanks a lot. I think I have made a lot of progress, probably because of the different source files you pointed me to. I get one error though and that has to do

RE: [sqlite] compiling with VC++

2007-02-24 Thread RB Smissaert
) : error C2373: 'sqlite3_libversion' : redefinition; different type modifiers No idea what to do about this. RBS -Original Message- From: Martin Jenkins [mailto:[EMAIL PROTECTED] Sent: 24 February 2007 13:29 To: sqlite-users@sqlite.org Subject: Re: [sqlite] compiling with VC++ RB

Re: [sqlite] compiling with VC++

2007-02-24 Thread Martin Jenkins
RB Smissaert wrote: Thanks, will have a look at that. Do you know from experience that it will compile OK with VC6++? I'm pretty sure I've compiled it with VC6++. I've been compiling on Debian and Solaris machines recently and have sort of lost track of building stuff on Windows. I tried

RE: [sqlite] compiling with VC++

2007-02-24 Thread RB Smissaert
Thanks, will have a look at that. Do you know from experience that it will compile OK with VC6++? RBS -Original Message- From: Martin Jenkins [mailto:[EMAIL PROTECTED] Sent: 24 February 2007 12:02 To: sqlite-users@sqlite.org Subject: Re: [sqlite] compiling with VC++ RB Smissaert wrote

Re: [sqlite] compiling with VC++

2007-02-24 Thread Martin Jenkins
RB Smissaert wrote: Could anybody pass me step by step instructions to compile the source with MS VC++ ? I don't code or compile in C at all and only code in VB/VBA. There a some instructions at: http://www.sqlite.org/cvstrac/wiki?p=HowToCompile and a zip file - sqlite-source-3_3_13.zip -