• Advertisement
Sign in to follow this  

DirectInput error

This topic is 4608 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
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
Are you linking with "dxguid.lib"? You should do this when using DirectInput but it doesn't really say so in the doc's, as I recall...

Share this post


Link to post
Share on other sites
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
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
Sign in to follow this  

  • Advertisement