Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,382 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Using External DLL #219019
07/31/08 17:06
07/31/08 17:06
Joined: May 2008
Posts: 91
Eugene, OR. USA
ATOMIX Offline OP
Junior Member
ATOMIX  Offline OP
Junior Member

Joined: May 2008
Posts: 91
Eugene, OR. USA
Can we load external dll's in lite-c? I really need to be able to load the sqlite3.dll and use it for database access. But I am at a loss on how to load an external dll into our lite-c code. I have a lot of experience in C/C++ programming but am at a loss about how to include the .h file and then compile to access the external dll. I am confused at the difference between pure C mode and lite-c mode and can I combine them? Help!!!!!! I can't find any code examples in the documentation. We need a lite-c reference guide very badly.


ATOMIX Productions
ATOMIX Group LLC
http://theatomizer.com
A7 Pro 7.50
Re: Using External DLL [Re: ATOMIX] #219855
08/05/08 00:34
08/05/08 00:34
Joined: Mar 2003
Posts: 3,010
analysis paralysis
NITRO777 Offline
Expert
NITRO777  Offline
Expert

Joined: Mar 2003
Posts: 3,010
analysis paralysis
Hi,
Download this aum magazine and tell me if it helps clear up things for you:

AUM 31

There is an article in there which deals with the SDK

Re: Using External DLL [Re: NITRO777] #219861
08/05/08 01:48
08/05/08 01:48
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
see the manual(gamestudio sdk part),

setup your ide(preferably vc++ 2008 express), add lib and include dir(gstudio7/sdk_plugin) and compile it.


i can provide you a little example i started(but have no time to contunie) that uses sqlite3 amalgamation(or something like that), and lets you use opendb and exec commands(yea, really works) in lite-c. If you are experienced in c++ this will get you started i think.


(ps. you can write wrappers for dlls to use them with lite-c. like load the dll in litec and write another one with DLLFUNC s inside to use that external dll.)


3333333333
Re: Using External DLL [Re: Quad] #219924
08/05/08 16:46
08/05/08 16:46
Joined: May 2008
Posts: 91
Eugene, OR. USA
ATOMIX Offline OP
Junior Member
ATOMIX  Offline OP
Junior Member

Joined: May 2008
Posts: 91
Eugene, OR. USA
Quadraxas:
An example would be awesome. I am having the most problem with the sqlite3.h file, it keeps getting stuck on the #if statements (that happens with all windows sdk headers I have used), I am stuck on the sqlite3 structure that is returned from the sqlite3_open() database function and am just stuck with it. Can't even get the header files to load.

TriNitroToluene:
Thanks for the reply. I read the magazine but it was c-script not lite-c. As a newbie all of these scripting languages are confusing and require way too much of a learning curve just trying to figure out which one to use!!


ATOMIX Productions
ATOMIX Group LLC
http://theatomizer.com
A7 Pro 7.50
Re: Using External DLL [Re: ATOMIX] #219950
08/05/08 19:04
08/05/08 19:04
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
here you go:
example archieve
i included a readme file for explanation and commented the code files.

Last edited by Quadraxas; 08/05/08 19:04.

3333333333
Re: Using External DLL [Re: Quad] #221018
08/11/08 16:32
08/11/08 16:32
Joined: May 2008
Posts: 91
Eugene, OR. USA
ATOMIX Offline OP
Junior Member
ATOMIX  Offline OP
Junior Member

Joined: May 2008
Posts: 91
Eugene, OR. USA
Quadraxas: I am forever in your debt. You just saved my butt from sitting in this chair for a long, long time trying to make this work. I tried your test and the databases opened in sqlite Admin perfectly. I will now attempt to put the code into my code and try the test on our sqlite database. I will tear your code apart and try the same thing on OpenAL which is an extremely powerful open source Audio library. I want to be able to really stream audio from the internet. We have our own Audio stream set up at http://www.atomixworld.com:8000/Streaming.ogg/ into your player, this stream uses iceCast2 with an mp3 encoder and we setup an internet radio station at http://www.takilmafm.com yea we actually pay royalties and all for this one. We have an average of 16,000 listening. This was our first attempt at streaming and it uses Windows encoders. We plan on updating this to iceCast2 soon. Once again we at Atomix Group LLC in Eugene, Oregon USA, are totally in your debt. If you ever need anything we can provide, please don't hesitate to ask.

Note: I will work solid on the statement code for this lib and send it back to you. I spent a couple of hours studying the statement method and feel I have a handle on it. I needed to study statements anyway and have been putting it off. You gave me the core of everything I need to finish it.

Last edited by ATOMIX; 08/12/08 13:57.

ATOMIX Productions
ATOMIX Group LLC
http://theatomizer.com
A7 Pro 7.50

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1