• Advertisement

Archived

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

C# Using and DirectX

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

If you intended to correct an error in the post then please contact us.

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 this post


Link to post
Share on other sites
Advertisement
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 this post


Link to post
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 this post


Link to post
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]

Share this post


Link to post
Share on other sites

  • Advertisement