Hallo,
Om de een of andere reden krijg ik DirectX (zowel Direct3D, DirectSound als DirectInput) niet aan de praat in Visual C# 2008. Simpelweg een nieuw project aangemaakt en netjes de Microsoft.DirectX en Microsoft.DirectX.DirectSound references toegevoegd.. dit is m'n code:
exception:
iig alvast bedankt
,Mnstrspeed
Om de een of andere reden krijg ik DirectX (zowel Direct3D, DirectSound als DirectInput) niet aan de praat in Visual C# 2008. Simpelweg een nieuw project aangemaakt en netjes de Microsoft.DirectX en Microsoft.DirectX.DirectSound references toegevoegd.. dit is m'n code:
C#:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| using System; using Microsoft.DirectX; using Microsoft.DirectX.DirectSound; namespace DirectSoundTest { static class Program { [STAThread] static void Main(string[] args) { try { Device device = new Device(); // hier gaat het al fout =_= } catch (Exception ex) { Console.WriteLine(ex.Message); // hier komt hij niet eens, krijg direct een exception in visual studio zelf } Console.WriteLine("Press a key to continue.."); Console.ReadKey(); } } } |
exception:
Wat heb ik al geprobeerd?BadImageFormatException was unhandled
is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
- DirectX opnieuw installeren
- Online documentatie doorspitten
- Eindeloos Google'en
iig alvast bedankt
,Mnstrspeed
Ehhh wat?