🔒 Locked
DirectInput
Advertisement
Original Post
Hi!
i want to use directinput, but it doesn''t seem to work. everytime i call ''directinputcreate'' the compiler gives me a linker error:
unresolved external ''directinputcreatea'' referenced from blablabla
i really wonder why this message shows up. it only shows up on the ''directinputcreate'' and ''directinputcreateex''.
how would the code look if i used cocreateinstance?
Thanks!
Yes, I included the header and the libs, but it doesn''t work. I already implemented DirectDraw and it works fine...
That''s the problem I''m having. When I first wrote the DirectDraw routine. I included the ''ddraw.h'', the ''ddraw.lib'' and the ''dxguid.lib''. I wrote the routines in a dxdraw.cpp
Then I started working on the DirectInput routines. I started the same way as with ddraw, but...
That''s the problem I''m having. When I first wrote the DirectDraw routine. I included the ''ddraw.h'', the ''ddraw.lib'' and the ''dxguid.lib''. I wrote the routines in a dxdraw.cpp
Then I started working on the DirectInput routines. I started the same way as with ddraw, but...
Which compiler are you using?
Please state the nature of the debugging emergency.
Please state the nature of the debugging emergency.
Saisoft - directinputcreate does take some parameters, but that''s not the point. you see, I''ve come to the point where I typed in the example in the SDK and it still won''t work.
furby - I use BCB5.0 Enterprise Edition and yes, I use the Borland libs (I''ve been checking on that about a thousand times) ;-)
But, I''ve been investigating on that problem: Every time I recompile the whole thing (not only the editet parts) I get the following error:
Error processing module
It''s another linker error, and the bad thing is that it seems to be the dinput.lib...
Now, when I recompile only the editet parts I get the ''unresolved external...'' (see above).
I just don''t get it. :-(
furby - I use BCB5.0 Enterprise Edition and yes, I use the Borland libs (I''ve been checking on that about a thousand times) ;-)
But, I''ve been investigating on that problem: Every time I recompile the whole thing (not only the editet parts) I get the following error:
Error processing module
It''s another linker error, and the bad thing is that it seems to be the dinput.lib...
Now, when I recompile only the editet parts I get the ''unresolved external...'' (see above).
I just don''t get it. :-(
Ah, the wonders of DInput.lib. The Microsoft version AND the new ''borland'' version libs have a error in them that makes BCB - VERSION 5 ONLY!! - complain of an ''error processing module''. What you must do, is to implib DInput.dll, then dump the cdfi_*** constants into a file for reading. I struggled with this problem before, luckily I had version 3 that allowed me to access the M$ version of Dinput.lib and dump the data. I can give you it if you like w/ the function to read it. And, an implib''ed dinput.lib, so everything will work.
------------------------------
BCB DX Library - RAD C++ Game development for BCB
------------------------------
BCB DX Library - RAD C++ Game development for BCB
run Implib to make an import library of dinput.dll in c:\windows\system. Then put this library with all your other libs and delete your old one. Unfortunately you will no longer have c_dfDIKeyboard and the rest so you will need to link in dxextra.lib which is in your main lib directory.
Please state the nature of the debugging emergency.
Please state the nature of the debugging emergency.
Furby: Thank you!!!! I knew that I didn''t need those files ... 

BTW... what does it matter -- here comes DX8.
Updates Updates. What''s going to happen to my 2d code ....
------------------------------
BCB DX Library - RAD C++ Game development for BCB
BTW... what does it matter -- here comes DX8.
------------------------------
BCB DX Library - RAD C++ Game development for BCB
Why would anything happen to your 2D code if you don''t use anything new?
Thanks,
Etnu
Sometimes I think I know what I really don''t, but then again usually I do know what I don''t, but just don''t realize it, maybe its because I am so young, but then again it could be because I am insane.
Thanks,
Etnu
Sometimes I think I know what I really don''t, but then again usually I do know what I don''t, but just don''t realize it, maybe its because I am so young, but then again it could be because I am insane.
quote:
Why would anything happen to your 2D code if you don''t use anything new?
Well, because I want to use the new D3D stuff, and so I can''t use the 2d Blt etc... so I have to update the code... right?
------------------------------
BCB DX Library - RAD C++ Game development for BCB
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement