Joystick Sample von MS! Only Errors



  • Hallo Leute,

    ich muss irgendwie die "Position" meines Joysticks "bestimmen"... Habs mir eigentlich recht leich vorgestellt, aber C++ macht iwie daraus eine Weltumreisung 😃
    Habe mir das Sample von Microsoft (http://code.msdn.microsoft.com/windowsdesktop/DirectInput-Samples-8ac6f5e3) heruntergladen und direkt mal ausprobiert mit VS2012

    Es öffnet sich war ein kleines Fenster, aber da wird nur die Mausposition angezeigt... Im Debugfenster habe ich dafür Errors:

    'CustomFormat.exe' (Win32): Loaded 'C:\Users\MarcRF511\Desktop\C++\Debug\CustomFormat.exe'. Symbols loaded.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dinput8.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\lpk.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\usp10.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.18201_none_ec80f00e8593ece5\comctl32.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr120d.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\nvinit.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\coprocmanager\_etoured.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\coprocmanager\Nvd3d9wrap.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\setupapi.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\devobj.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\coprocmanager\nvdxgiwrap.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\uxtheme.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\hid.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmm.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\wintrust.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\crypt32.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msasn1.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Cannot find or open the PDB file.
    'CustomFormat.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ole32.dll'
    The thread 0x1790 has exited with code 0 (0x0).
    The program '[5612] CustomFormat.exe' has exited with code 0 (0x0).
    

    Das witzige an der ganzen Story ist, dass die DLL-Dateien im entsprechenden Verzeichnis existieren!

    Wo ist das Problem?

    Gruß Marc 🙂



  • Das ist kein Fehler. Diese PDBs sind die Dateien die du brauchst um die Windows-DLLs zu debuggen. Da du das nicht willst die Nachricht einfach ignorieren. 🙂

    Für mehr Infos schau mal auf Stackoverflow: Error Message : Cannot find or open the PDB file;



  • Cool! 🙂 Trotzdem bekomm ich net was ich eigentlich möchte 😞 Gibts ne ganz simple Art einfach die aktuelle Position des Joysticks zu bestimmen?? Alles was ich finde hat mir viel zu viel drumherum....



  • Trotzdem bekomm ich net was ich eigentlich möchte 😞

    Hmm... Vielleicht weil du das "CustomFormat"-Projekt debuggst statt dem "Joystick"-Projekt ? :p

    Alles was ich finde hat mir viel zu viel drumherum

    Tja, Joysticks zu nutzen ist kompliziert mit DirectInput 😕

    Ansonsten schau mal auf MSDN: Using Joysticks



  • M4RC schrieb:

    Gibts ne ganz simple Art einfach die aktuelle Position des Joysticks zu bestimmen??

    http://msdn.microsoft.com/en-us/library/ms709352.aspx



  • M4RC schrieb:

    Alles was ich finde hat mir viel zu viel drumherum....

    Kommt drauf an, was für dich "drum herum" bedeutet.

    Wenn du möglichst ohne externe Bibliotheken und nur unter einer Plattform die Joystick-Informationen brauchst, aber mit einem C-Interface, dann nimm die WinAPI. Wenn du aber eine möglichst simple und portable C++-Schnittstelle willst, kannst du dir auch mal SFML anschauen.


Anmelden zum Antworten