Sign in to follow this  
Harryu

DirectInput error

Recommended Posts

Harryu    174
I'm trying to make a small program with DirectX. It compiles cleanly, but when I try to run it, I get an error saying: The procedure entry point c_dfDIJoystick could not be located in the dynamic link library dinput.dll. I'm using Dev-Cpp, which I have attempted to set up for DirectX 9. Any help would be greatly appreciated.

Share this post


Link to post
Share on other sites
jollyjeffers    1570
Quote:
Original post by Harryu
The procedure entry point c_dfDIJoystick could not be located in the dynamic link library dinput.dll.

Presumably c_dfDIJoystick is NOT part of your code? is it even called by yours?

Quote:
Original post by Harryu
I'm using Dev-Cpp, which I have attempted to set up for DirectX 9.

I don't have the readme to hand, but I'm not sure if Dev-Cpp is officially supported by the SDK. I suppose it is possible you're snagging on that?

Can you compile any/all of the DirectX sample code?

DirectX Development Using DevCpp might be of interest to you?

hth
Jack

Share this post


Link to post
Share on other sites
Harryu    174
I do use the code when setting the data format for the input device

DataFormat = (DIDATAFORMAT*)&c_dfDIJoystick;

and then soon afterwards

if(FAILED(m_pDIDevice->SetDataFormat(DataFormat)))
return FALSE;

Share this post


Link to post
Share on other sites
Harryu    174
Im already linking that.

I have tried reinstalling the DX9 SDK, but that doesn't help.

I found that even if I remove the c_dfDIJoystick code, I still get the error.

Share this post


Link to post
Share on other sites
Twon    145
Hi, I think that you will find that c_dfDIJoystick is a global variable declare internally to Direct Input and made global through an "exter" command. By the sound of your error message
Quote:
The procedure entry point c_dfDIJoystick could not be located in the dynamic link library dinput.dll.
Dev-Cpp seems to be miss interpreting c_dfDIJoystick as a procedure and not a variable. Have you converted the libraries to the ".a" format required by Dev-Cpp as suggested in the article highlighted by jollyjeffers?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this