Sqlite China  
首页 | 各种语言的sqlite编程 |sqlite研究 | sqlite应用实例与杂谈 | sqlite相关下载 | SQlite论坛
当前位置 : 主页>各种语言的sqlite编程>列表
Sqlite 可以在VB中使用的封装
来源:工友 作者:工友 时间:2007-12-21
封装了如下API: 
.DLL命令 sqlite3_open, 整数型, "dllsqlite.dll", "sqlite3_open"
    .参数 filename, 文本型
    .参数 Handle, 整数型, 传址

.DLL命令 sqlite3_close, 整数型, "dllsqlite.dll", "sqlite3_close"
    .参数 Handle, 整数型

.DLL命令 sqlite3_exec, 整数型, "dllsqlite.dll", "sqlite3_exec"
    .参数 Handle, 整数型
    .参数 SQL, 文本型
    .参数 CallBack, 整数型
    .参数 other, 整数型
    .参数 错误代码, 整数型, 传址

.DLL命令 GetProcAddress, 整数型, "dllsqlite.dll", "MyGetProcAddress", '这是我在封装Sqlite加进去得一个函数。。。原因 VB不支持指针。
    .参数 函数, 子程序指针

.DLL命令 sqlite3_last_insert_rowid, 长整数型, "dllsqlite.dll", "sqlite3_last_insert_rowid"
    .参数 Handle, 整数型

.DLL命令 sqlite3_get_table, 整数型, "dllsqlite.dll", "sqlite3_get_table"
    .参数 sqlite3, 整数型
    .参数 SQL, 文本型
    .参数 resultp, 整数型, 传址
    .参数 row, 整数型, 传址, '记录数
    .参数 col, 整数型, 传址, '列数
    .参数 错误代码, 整数型, 传址, '出错才用。

.DLL命令 sqlite3_free_table, 整数型, "dllsqlite.dll", "sqlite3_free_table"
    .参数 Handle, 整数型

.DLL命令 MyGetData, 文本型, "dllsqlite.dll", "MyGetDataA", '这是我编写得一个dll功能是读取表中得数据,原因,VB不支持指针。
    .参数 指针, 整数型
    .参数 记录, 整数型
    .参数 列, 整数型
    .参数 列总数, 整数型

.DLL命令 GetVersion, 整数型, "dllsqlite.dll", "MyGetVersion" ‘自己编写得。

///////////////////////////////////以上API都已经经过严格测试,
另外还封装了:---没有测试。
const void *sqlite3_column_blob(sqlite3_stmt*, int iCol);
int sqlite3_column_bytes(sqlite3_stmt*, int iCol);
int sqlite3_column_bytes16(sqlite3_stmt*, int iCol);
double sqlite3_column_double(sqlite3_stmt*, int iCol);
int sqlite3_column_int(sqlite3_stmt*, int iCol);
long long int sqlite3_column_int64(sqlite3_stmt*, int iCol);
const unsigned char *sqlite3_column_text(sqlite3_stmt*, int iCol);
const void *sqlite3_column_text16(sqlite3_stmt*, int iCol);
int sqlite3_column_type(sqlite3_stmt*, int iCol);

sqlite_vb.rar (142737bytes)

(阅读次数:
上一篇:VC++使用事务来写SQLite3数据库 下一篇:创建连接数据库SQLite 3.x的Rails网络应用软件
[收藏] [推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]
用户名: 新注册) 密码: 匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
§最新评论
热点文章
·简单的在Java中使用SQLite
·C/C++中调用SQLITE3的基本
·PHP+SQLITE制作简单的视频
·DISQLite3 简介 SQLite de
·VB.NET 中使用 SQLite3 的
·SQLiteJDBC 100%纯JAVA的s
·如何在Windows下编译SQLit
·关于SQLite的一些简单介绍
·在VC6.0中使用C++访问sqli
·C/C++中调用SQLITE3的基本
·SQLite 与 PHP 结合开发(
·在VC6.0中使用C++访问sqli
·使用SQLite进行网站搜索
·SQLite ADO.NET 驱动(C#
·在.NET C#中使用sqlite
·python模块之sqlite数据库
·PHP中的SQlite数据库应用
·如何在PHP5中通过PDO连接S
·PHP中如何使用sqlite_crea
·SQLite 、 PHP混合扩展编
相关文章
·让你的PHP4也用上Sqlite3
·VB.NET 中使用 SQLite3 的
·C/C++中调用SQLITE3的基本
·python模块之sqlite数据库
·在.NET C#中使用sqlite
·用Ruby进行SQLite的开发指
·PHP5中的 sqlite_create_f
·SQLite ADO.NET 驱动(C#
·使用SQLite进行网站搜索
·如何在Windows下编译SQLit

版权Power by DedeCms   后台登陆
Copyright @ 2007