≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Load IrrKlang.dll dynamically
Posted by:
(you are not logged in)
Enter the missing letter in: "Internat?onal"
(you are not logged in)
Text:
[quote][b]pascal22[/b] wrote: I use C++ Builder XE3 and the IrrKlang.lib does not work with it. the conversion tool coff2omf has fail. finally i try to load dynamically the dll : declaration of the fonction : [code]typedef ISoundEngine* IRRKLANGCALLCONV (*tcreateIrrKlangDevice)(E_SOUND_OUTPUT_DRIVER, int, const char*, const char*); //enum irrklang::E_SOUND_OUTPUT_DRIVER [/code] dll loading : [code]fcreateIrrKlangDevice = (tcreateIrrKlangDevice)GetProcAddress(DllHandle, "?createIrrKlangDevice@irrklang@@YAPAVISoundEngine@1@W4E_SOUND_OUTPUT_DRIVER@1@HPBD1@Z"); //irrklang::createIrrKlangDevice [/code] getting the interface engine and use it: [code]ISoundEngine* engine = NULL; engine=fcreateIrrKlangDevice(ESOD_AUTO_DETECT,ESEO_DEFAULT_OPTIONS,0,IRR_KLANG_VERSION); AnsiString Drv=engine->getDriverName(); engine->play2D("getout.ogg", true);[/code] everything looks OK but it doesn't work.I think that the fcreateIrrKlangDevice function returns a false pointer. do you see a solution to my problem. Thanks in advance.[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact