I recently downloaded The FMODEx API. I was able to get it working in the command line environment, but when I went to use it in an OpenGL program I made. OpenGl could no longer load the texture files. This occured when I went to the project properties and added the working directory of the FMOD dll(Project->Properties->Debugging). I then traced it to the CreateFile function returning an invalid handle in one of the OpenGL files.
GLMain. cpp code:
pBytes = gltReadBMPBits("SUN.BMP",&nWidth,&nHeight);
Which then leads to this code in the OpenGL code file:
hFileHandle = CreateFile(szFileName,GENERIC_READ,FILE_SHARE_READ,
When I take the FMODEx.dll out out of the working directory it goes back to working fine.
Thanks in advance for any help or recommendations you will be able to provide
- don asked 8 years ago
actually the bmp file is in the project directory itself, and it loads fine when I just use OpenGL by itself. but when I right click on the project in the solution explorer in VS 2005 and add the directory of the FMODEx.dll to the debugging working directory. it stops loading the textures
Please login first to submit.