Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/19/24 18:45
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
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, AndrewAMD, TedMar), 837 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
write a (.c lib) for Lite_c and c? #409744
10/22/12 02:13
10/22/12 02:13
Joined: Dec 2009
Posts: 128
China
frankjiang Offline OP
Member
frankjiang  Offline OP
Member

Joined: Dec 2009
Posts: 128
China
I want to write a (.c lib) for Lite_C and C ,and they can both use this lib.
Is it able to do?


development 3d game is interesting!
Re: write a (.c lib) for Lite_c and c? [Re: frankjiang] #409745
10/22/12 05:03
10/22/12 05:03
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Pretty straightforward, fire up your favourite IDE and create a new DLL with it.
To link the DLL at runtime in your Lite-C project, use LoadLibrary() and to resolve a symbol use GetProcAddress(). To link it with your normal C project... well, depends on your IDE and linker, but usually they should take care of it.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: write a (.c lib) for Lite_c and c? [Re: WretchedSid] #409762
10/22/12 07:35
10/22/12 07:35
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
That's for dynamically loading the dll.

To statically do that, for lite-c part, if it's a C dll you only need the header and say that the functions on that header is in your dll.
There was a macro sort of like API(function_name,dll_filename), you should search that too.

http://www.conitec.net/beta/litec_api.htm


3333333333

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