Welcome, Guest.
Please login or register.
gigabase DLL
Forum Login
Login Name: Create a new account
Password:     Forgot password

XBLite Forum    General Boards    Files Area  ›  gigabase DLL
Users Browsing Forum
No Members and 1 Guests

gigabase DLL  This thread currently has 17,563 views. Print Print Thread
1 Pages 1 Recommend Thread
vbmrupp
March 31, 2012, 3:27am Report to Moderator Report to Moderator
Baby Member
Posts: 3
Attached is the zipped files for the gigabase DLL that having issue with.
Includes, the gigabase.dll
mscrt90.dll (dependancy)
gigabase.dec
cli.h
clitest.c (source of test code)
gigabase_struct.x



This post contains attachments; to download them you must login.

Logged Offline
Private Message Private message
XBLiteAdmin
March 31, 2012, 9:02am Report to Moderator Report to Moderator
Administrator Group
Posts: 44
Ok, I had to rebuild the gigabase.lib file so it would be xblite compatible.

The function cli_create_table now seems to be working.

Find attached a zip file with new gigabase.lib and the gigabase_struct.x that I was playing
around with and which I made small changes.

D.



This post contains attachments; to download them you must login.

Logged Offline
Site Site Private Message Private message Reply: 1 - 4
vbmrupp
April 4, 2012, 1:06am Report to Moderator Report to Moderator
Baby Member
Posts: 3
David, Do you mind telling me how you did this? For future reference. Is it the MS compiler that is the problem?
Logged Offline
Private Message Private message Reply: 2 - 4
XBLiteAdmin
April 4, 2012, 4:13am Report to Moderator Report to Moderator
Administrator Group
Posts: 44
Later versions of MS tools create .lib files which are not compatible with the
old version of link.exe which we are using. Eventually, I would like to get away
from using any MS tools at all.

So for any DLL not created by xblite, you will need to create a .lib file. This is
accomplished by first creating a .def file listing all of the exported functions in the
DLL. This is what the gigabase.def file looks like:

LIBRARY gigabase.dll

EXPORTS
  cli_abort
  cli_alter_index
  cli_alter_table
  cli_array_column
  cli_array_column_ex
  cli_attach
  cli_backup
  cli_batch_insert
  cli_clear_connection_pool
  cli_close
  cli_close_cursor
  cli_column
  cli_commit
  cli_create
  cli_create_table
  cli_create_transaction_context
  cli_describe
  cli_describe_layout
  cli_detach
  cli_drop_table
  cli_exec_batch
  cli_execute_query
  cli_execute_query_ex
  cli_fetch
  cli_fetch_ex
  cli_free
  cli_free_memory
  cli_freeze
  cli_get_database_size
  cli_get_field_offset
  cli_get_field_size
  cli_get_first
  cli_get_last
  cli_get_next
  cli_get_oid
  cli_get_prev
  cli_insert
  cli_insert_struct
  cli_join_transaction
  cli_lock
  cli_open
  cli_parameter
  cli_precommit
  cli_prepare_query
  cli_remove
  cli_remove_current
  cli_remove_transaction_context
  cli_schedule_backup
  cli_seek
  cli_set_error_handler
  cli_set_trace_function
  cli_show_tables
  cli_skip
  cli_statement
  cli_unfreeze
  cli_update
  cli_xml_export
  cli_xml_import

Then you use lib.exe to create a new *.lib file. In a command window, call lib.exe:

lib.exe -machine:i386 -def:gigabase.def -out:gigabase.lib

There is a tool I use that Ken Minogue created for XBasic called DLLGuide.exe. His
program simplifies this process by looking at a .dec file to create the .def file.

I have attached this program as dllguide.zip

It would be a nice project for someone to modify Ken's dllguide program using standard Windows
GUI controls.

D.



This post contains attachments; to download them you must login.

Logged Offline
Site Site Private Message Private message Reply: 3 - 4
vbmrupp
April 5, 2012, 1:10pm Report to Moderator Report to Moderator
Baby Member
Posts: 3
David, I was able to create the database and table using the gigabase_struct.x file. Now it seems that the application crashes when reaching the point in the file adding the structure data to the table. I am using the same xblite file you used. Though I did have to change the name of the table in the code; it was looking for persons instead of person.
I will try and look further and get back with you.
Thanks
Michael
Logged Offline
Private Message Private message Reply: 4 - 4
1 Pages 1 Recommend Thread
Print Print Thread

XBLite Forum    General Boards    Files Area  ›  gigabase DLL

Thread Rating
There is currently no rating for this thread