Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
0 registered members (), 1,012 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
making dll functions available in LiteC #333207
07/14/10 18:59
07/14/10 18:59
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline OP
Expert
Germanunkol  Offline OP
Expert

Joined: Jun 2006
Posts: 2,640
Earth
Hi,
We want to use OpenAl as our sound library, for multiple reasons. We can't wait for A8 and are not planning on upgrading to it atm.

The OpenAl SDK comes with multiple .h files, but including them doesn't seem to work in LiteC, since it's c++ code.

How do I access the functions in the OpenAL dll?
Do I need to write my own dll to make them available to LiteC? if so, where do I start? I'm having trouble even reading them into a c++ project, much less getting them out to LiteC in the right form.

I've been browsing the internet all afternoon... I guess what I need is to know the chain from the function in the openAL32.dll to my LiteC program... then I'd have at least something to start on.

Thankful for any help...


~"I never let school interfere with my education"~
-Mark Twain
Re: making dll functions available in LiteC [Re: Germanunkol] #333209
07/14/10 19:37
07/14/10 19:37
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
LoadLibrary and GetProcAddress is everything you need.

(Of course you need to write the function prototypes and structs for yourself) Oh and btw, OpenAL isn't written in C++ wink


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: making dll functions available in LiteC [Re: WretchedSid] #333270
07/15/10 11:10
07/15/10 11:10
Joined: May 2009
Posts: 445
Peine, Germany
Razoron Offline
Senior Member
Razoron  Offline
Senior Member

Joined: May 2009
Posts: 445
Peine, Germany
You can create a plugin and link the library files.

Re: making dll functions available in LiteC [Re: Razoron] #344273
10/15/10 20:11
10/15/10 20:11
Joined: Dec 2006
Posts: 1,086
Queensland - Australia
Nidhogg Offline
Serious User
Nidhogg  Offline
Serious User

Joined: Dec 2006
Posts: 1,086
Queensland - Australia
OpenAL is around 75% complete in Gamestudio according to the forecast page.


Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus

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