Support Board
Date/Time: Tue, 04 Mar 2025 07:40:11 +0000
Post From: Importing and using a DLL
[2021-11-27 06:27:41] |
KylieV1618 - Posts: 67 |
Im trying to import a sound library and use it. I don't know much C++, so this might be really basic. But I have HINSTANCE SDL = LoadLibrary("SDL2_mixer.dll"); // Load file Mix_Chunk *sample; I get.. 'Mix_Chunk' was not declared in this scope
If I do SDL.Mix_Chunk = *sample, I get... request for member 'Mix_Chunk' in 'SDL', which is of pointer type 'HINSTANCE' {aka 'HINSTANCE__*'} (maybe you meant to use '->' ?)
Does this mean to use it I have to do something more? Like SDL.Mix_Chunk. Or SDL->Mix_Chunk. Ive tried both and neither work. How do I get access to the Mix_Chunk that is inside SDL2_mixer.dll? Date Time Of Last Edit: 2021-11-27 06:29:18
|