Results 1 to 4 of 4

Thread: DirectInputCreate fails

  1. #1

    DirectInputCreate fails

    var m_pDI:IDirectInput;

    DirectInputCreate(HInstance, DIRECTINPUT_VERSION, m_pDI, nil);

    fails with
    DIRECTINPUT_VERSION = $0800;

    while it succeeds with
    DIRECTINPUT_VERSION = $0500;
    (or $0700)


    I am using Clooties latest Headers with DX9. What's going wrong...?

    Carsten

  2. #2

    DirectInputCreate fails

    Use DirectInputCreate or DirectInputCreateEx only for <=DirectInput7. For DirectInput8/9, use DirectInput8Create.
    [size=10px][ Join us in #pgd on irc.freenode.net ] [ Sign the Petition for a Software Patent Free Europe ][/size]

  3. #3

    DirectInputCreate fails

    I hit exactly the same problem

    I recompiled an emulator I wrote 2 years ago that used DirectX 7 and now it won't run after compile??

    The only differences are that I am using the DX9 headers and have DX9 installed on XP. Can I not use DX7 interfaces with DX9? Or is there a problem with the headers?
    http://www.c5software.co.uk (site is being developed at the moment)

  4. #4

    DirectInputCreate fails

    If you are using Clootie's DirectX 9 headers, you need add:
    [pascal]{$DEFINE DIRECTX7}[/pascal]
    to the top of the DirectInput.pas file to make it use DirectX 7 definitions.
    [size=10px][ Join us in #pgd on irc.freenode.net ] [ Sign the Petition for a Software Patent Free Europe ][/size]

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •