Archived

This topic is now archived and is closed to further replies.

C# Using and DirectX

This topic is 5669 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

hello. i cant figure out how to do this using Microsoft.DirectX; and then somewhere DirectDraw.Device DDraw = null; it says im missing a reference, but im not. i know i could go using Microsoft.DirectX.DirectDraw; but i want to use dinput too, all in the same class; why does this happen?

Share on other sites
you have to add a reference in your solution browser window... there should be a tab for references. you can then add the directx components that you need.

using "using" just acts as a shortcut to members of the classes, instead of having to type out the whole path.

Share on other sites
i guess i worded that wrong. i have the reference added, the error says "are you missing a using statement?". sorry for the confusion

Share on other sites
using DirectDraw = Microsoft.DirectX.DirectDraw;using DirectInput = Microsoft.DirectX.DirectInput;DirectDraw.Device DDraw = null;DirectInput.Device Keyboard = null; // or whatever...

[edited by - Smurfwow on February 8, 2003 11:27:17 PM]

1. 1
2. 2
3. 3
4. 4
frob
15
5. 5

• 16
• 12
• 20
• 12
• 16
• Forum Statistics

• Total Topics
632155
• Total Posts
3004484

×