Displaying 1 result from an estimated 1 matches for "hovopen".
Did you mean:
ovopen
2002 Feb 12
2
problem with Vorbis DLL's
...s properly
by linking in the static libraries, but when I try to load them dynamically
(which I really need to do), I get an access violation when calling ov_open.
The code looks something like this...
typedef int (*OVOPEN)(FILE*,OggVorbis_File*,char*,long);
HMODULE hVorbisFile;
OVOPEN hOvOpen;
hVorbisFile = LoadLibrary(_T("Vorbisfile.DLL"));
hOvOpen = (OVOPEN)GetProcAddress(hVorbisFile, _T("ov_open"));
printf(filename, "music\\Track%02d.OGG", track_number);
vorbis_fd = fopen(filename, _T("rb"));
_setmode( _fileno( vorbis_fd ), _O_BINARY );
if ((...