Re: [sqlite] compiling C program to use the shared library

2008-02-24 Thread Teg
Hello Sam, Just recompile the code into a new DLL and tell the environment to create a link library. I hate DLL's myself and only use static linkage to SQLite. Using LoadLibrary's just too much hassle. C Sunday, February 24, 2008, 9:37:04 PM, you wrote: SC> On Sun, Feb 24, 2008 at 9:12 PM, Roos

Re: [sqlite] compiling C program to use the shared library

2008-02-24 Thread Neville Franks
Monday, February 25, 2008, 2:13:13 PM, you wrote: NL> On Mon, Feb 25, 2008 at 2:37 AM, Sam Carleton NL> <[EMAIL PROTECTED]> wrote: >> Thank you, I know all about LoadLibrary. I also saw the header file >> that contains a structure with function pointers to all the exported >> methods. But are

Re: [sqlite] compiling C program to use the shared library

2008-02-24 Thread Doug Currie
On Sunday, February 24, 2008 Nuno Lucas wrote: > On Mon, Feb 25, 2008 at 2:37 AM, Sam Carleton > <[EMAIL PROTECTED]> wrote: >> [...] >> generated the stub lib I needed to link my code against and it seems >> to run fine with the officially compiled DLL. > The reason an import library isn't inc

Re: [sqlite] compiling C program to use the shared library

2008-02-24 Thread Nuno Lucas
On Mon, Feb 25, 2008 at 2:37 AM, Sam Carleton <[EMAIL PROTECTED]> wrote: > Thank you, I know all about LoadLibrary. I also saw the header file > that contains a structure with function pointers to all the exported > methods. But are you telling me that no one has published the code to > load

Re: [sqlite] compiling C program to use the shared library

2008-02-24 Thread Sam Carleton
On Sun, Feb 24, 2008 at 9:12 PM, Roosevelt Anderson <[EMAIL PROTECTED]> wrote: > To use the dll you need to use the LoadLibrary windows function and define > pointers to each of the sqlite functions. Here is a short example to get you > started. For more on using DLLs try this MSDN link: > > >

Re: [sqlite] compiling C program to use the shared library

2008-02-24 Thread Roosevelt Anderson
To use the dll you need to use the LoadLibrary windows function and define pointers to each of the sqlite functions. Here is a short example to get you started. For more on using DLLs try this MSDN link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/dynamic_link_lib

Re: [sqlite] compiling C program to use the shared library

2008-02-24 Thread Fin Springs
On Feb 23, 2008, at 9:15 PM, Sam Carleton scarleton-at- miltonstreet.com |sqlite| wrote: > How do I compile a C program to use the shared DLL rather then > statically link in SQLite? Good question; the DLL download only has the DEF file and the DLL, but you normally need an export LIB file to