News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

sqlite3.lib

Started by ernest33, June 08, 2005, 09:56:47 PM

Previous topic - Next topic

ernest33

Hi !
I'm trying to compile a sqlite3.lib from the source (www.sqlite.org), but when i use "l2inc" i got nothing....and the lib is only 22k !
Please help me i'm getting mad :dazzled:. I have tried many way to compile but none work (like i want to)  :P
For infos i want to make something like a package for RadAsm like the one for GDI+ :clap:.....
Best Regard
Ernest33

KetilO

Hi

Maybe the method used here is what you are looking for.


http://www.phpmvc.net/asm/


See the xml-parser example.

KetilO

Eóin

If you download and extract the ZIP file version and then run vctoolkit and cd to the dir. Then do;

> cl /MD *.c
...

> link -lib /NODEFAULTLIB /OUT:sqlite.lib *.obj


Ignore any errors involving tcl files cause you don't want them (I presume).


hutch--

ernest33,

Enclosed is the DLL they release plus an import library and an include file for MASM. Let us know how it works.


[attachment deleted by admin]
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Vortex

Hi Hutch,

I created an include file with PROTOs.

[attachment deleted by admin]

ramguru

Vortex, how comes that your def2inc tool trims the first character of each line. Hutch, for what reason files inc & lib eventually have two "L" letters (supposed be sqlite not sqllite). Because of these reasons it doesn't work at all. No-one is forced to answer, I rebuilt lib and inc files myself. Just wanted to state that sqlite3 is great.

Vortex

There is the same problem with Hutch's import library, now I realised this fact. I extracted the PROTOs from this lib.

ramguru

I uploaded my version (with some EQU's) of lib&inc, I'm just writing an app with sqlite3, this works for sure.

[attachment deleted by admin]

Vortex

Nice work :U

I reduced the size of the import library from 68.2 Kb to 23.4 Kb



[attachment deleted by admin]

ramguru

 :clap: You are the boss  :bg works OK

Vortex

The trick is to convert your include file to import library with inc2lib.

Mark Jones

Nice work. :)

Anyone have a demo handy for us SQL noobs? :bg
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

ramguru

I hope it will be a dictionary... Now my little prog is capable to create new data base, create table and insert some text into them. It is a  matter of time... After I add some more features (searching etc.) I'll be glad to share my knowledge (sourcecode).

ramguru

OK my little app, I hope not to early...
How it works:
1) The main db (in my case "moby_dic.db") is created or opened (if already...) (CREATE TABLE statement) which consist of 4 columns (fields);
2) U write some text into first 4 edit-boxes and press Enter button - now one record is saved (INSERT statement);
3) U write some text in 5-th edit-box (perform a search by whole word you entered in first edit-box - SELECT statement);
For clarity a MessageBox will appear in each step.
Hope you'll like it...

[attachment deleted by admin]

farrier

ramguru,

Thanks!  Another tool for my toolbox.  I'll be playing with this today.

farrier
It is a GOOD day to code!
Some assembly required!
ASM me!
With every mistake, we must surely be learning. (George...Bush)