Autor Beitrag
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Di 07.10.03 15:16 
Hallo!

Ich habe Probleme, Directinput zu initialisieren. Die Verwendung von DirectInput8Create(Application.Handle,DIRECTINPUT_VERSION,IID_IDirectInput8,FDirectInput,NIL);
schlägt immer mit DIERR_INVALIDPARAM fehl.

Ich habe es auch schon über den Umweg CoCreateInstance & Initialize probiert. Erstellen kann ich das Direct_Input-Interface, initialisieren geht dann aber nicht:
FDirectInput.Initialize(Application.Handle,DIRECTINPUT_VERSION);
liefert ebenfalls wieder DIERR_INVALIDPARAM.

Was mache ich falsch?

Ich benutze die Headers von Delphi-Jedi.org respektive (clootie.narod.ru), installiert ist DirectX9.

Cu,
Udontknow
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Di 07.10.03 15:52 
huhu...

versuch mal...

ausblenden Delphi-Quelltext
1:
DirectInput8Create(HInstance ,DIRECTINPUT_VERSION,IID_IDirectInput8,FDirectInput,NIL);					

...sieht aber sonst gut aus :wink:

PS: warum nutzt du die doofen clötie-header ...die crazy-header sind doch viel übersichtlicher etc. -> www.crazyentertainment.net

_________________
mfg.
mâximôv


Zuletzt bearbeitet von maximus am Di 07.10.03 15:57, insgesamt 1-mal bearbeitet
Udontknow Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Di 07.10.03 15:57 
Arghhh!!!!!!!!!!!!! :eyecrazy: :shock: :autsch:

Es klappt! Ich krieg einen Schreikrampf! Argfggff!

Danke, Maximus! :)

Was ist eigentlich der Unterschied zwischen hinstance und Application.Handle? Offensichtlich ist da ja ein Unterschied...

Da hätte ich ja lange überlegen können...

Zu den Quellen:

Nun, ich dachte irgendwie, der würde das nun machen, und auf crazyentertainment gäbe es nur noch die alten Quellen. Was ist denn besser an denen?

Cu, :)
Udontknow
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Di 07.10.03 16:00 
*gg* ..KA is halt son spezielles modul-handel ??

schön das es funzt :D

_________________
mfg.
mâximôv