Click to See Complete Forum and Search --> : .net and Direct X path
CodeMaker
Feb 7th, 2006, 03:06 AM
hi
I have installed DirectX also Visual Studio .NET.
But i dont know how to set the path for dot Net
i.e
Without setting the path i am not able to get Microsoft Properties like
using Microsoft.DirectX;
using Microsoft.DirectX.Direct3D;
The above properties wont come...
Please tell me how to link or set path between .net and DirectX
Regards
Deepak
Shuja Ali
Feb 7th, 2006, 03:17 AM
Have you added a reference to Microsoft DirectX. Open Project Menu and Click Add Reference in .NET ot COM tab you should see Microsoft DirectX or something similar to this. Double click on that and then click ok. Now Microsoft DirectX should appear in your references.
jmcilhinney
Feb 7th, 2006, 03:21 AM
This is a duplicate thread and the name is not exactly descriptive of the problem. They are both something you should avoid in future.
Kasracer
Feb 7th, 2006, 08:26 AM
You have to add the references to your project before you can use them.
Just right click on the References in the Solution Explorer and then click Add.
Kasracer
Feb 7th, 2006, 08:26 AM
I just answered your other thread and didn't see this one. Bah!
Hack
Feb 7th, 2006, 01:02 PM
Typically I will delete duplicate threads, but as both of them had replies, I've simply merged the two.
CodeMaker: Please do not double post.
Everyone else: If you spot duplicate posts and I'm not around, just send me a PM and I will take care of it. Thanks.
CodeMaker
Feb 7th, 2006, 10:20 PM
hi
Thank you for reply.
Actually i have downloaded code sample from
http://msdn.microsoft.com/coding4fun/gamedevelopment/beginning/default.aspx
[developing game using .net and directX]
while running this code sample i faced the following problem
1) Direct X reference [Which now works fine after your last reply.Thanks]
but following two more errors pending...
2) Unsafe code may only appear if compiling with /unsafe
3) The type or namespace name 'Framework' could not be found
(are you missing a using directive or an assembly reference?)
First one solved.
2nd and 3rd..i dont know which reference to be added.
Waiting for your kind reply..
Thank you
Have you added a reference to Microsoft DirectX. Open Project Menu and Click Add Reference in .NET ot COM tab you should see Microsoft DirectX or something similar to this. Double click on that and then click ok. Now Microsoft DirectX should appear in your references.
CodeMaker
Feb 7th, 2006, 10:23 PM
Hi...
Since i am new to forum i was bit confused...
Sorry for double post...
Thank you
Typically I will delete duplicate threads, but as both of them had replies, I've simply merged the two.
CodeMaker: Please do not double post.
Everyone else: If you spot duplicate posts and I'm not around, just send me a PM and I will take care of it. Thanks.
jmcilhinney
Feb 7th, 2006, 11:06 PM
2. You have to specify that unsafe code is allowed in the project properties, which adds the "/unsafe" switch to the compiler commandline.
3. Whatever assembly that "Framework" namespace or type is defined in has not been added as a reference to your project. A project can't know about every assembly by default. It knows about a few common ones but anything else you have to tell it about, which means adding a reference to yuor project.
CodeMaker
Feb 8th, 2006, 02:43 AM
Thanks for reply and help...
But 3rd problem still not solved.
I have added reference from "Add Reference"
i have added "Microsoft.Build.Framework"
still it says
"The type or namespace name 'Framework' could not be found (are you missing a using directive or an assembly reference?)"
I have searched in .NET Tab.
I could not find in COM Tab also..
Even I have added the Line
using Microsoft.Build.Framework;
May i know the problem..
Thank you
2. You have to specify that unsafe code is allowed in the project properties, which adds the "/unsafe" switch to the compiler commandline.
3. Whatever assembly that "Framework" namespace or type is defined in has not been added as a reference to your project. A project can't know about every assembly by default. It knows about a few common ones but anything else you have to tell it about, which means adding a reference to yuor project.
jmcilhinney
Feb 8th, 2006, 02:51 AM
Where did this code come from that uses this "Framework" identifier? I think you'll find that the Microsoft.Build.Framework namespace is for the use of the IDE, presumably for building projects. I doubt that it's something that the casual developer should be messing with.
CodeMaker
Feb 8th, 2006, 06:41 AM
I have got from below link
http://msdn.microsoft.com/coding4fun/gamedevelopment/beginning/default.aspx
Right side of the page there is option to download the code
Thank you
Where did this code come from that uses this "Framework" identifier? I think you'll find that the Microsoft.Build.Framework namespace is for the use of the IDE, presumably for building projects. I doubt that it's something that the casual developer should be messing with.
CodeMaker
Feb 9th, 2006, 07:41 AM
Hi
Hope you downloaded the code and checked.
Me still hanging in that problem..
Please reply..
Where did this code come from that uses this "Framework" identifier? I think you'll find that the Microsoft.Build.Framework namespace is for the use of the IDE, presumably for building projects. I doubt that it's something that the casual developer should be messing with.
Stimpy_77
Feb 26th, 2006, 04:32 AM
I am having the same problem, from the exact same MSDN article. Google isn't returning any results on this other than your question. I tend to believe that dxmutmisc.cs is apparently out-of-date with the current DX build and was overlooked by MS.
Stimpy_77
Feb 26th, 2006, 05:23 AM
OK, I've learned that I need to include *all* of the sample Utility Toolkit framework files, or Samples\Managed\Common\dxmut*.cs. However, it only worked if I used the .NET v1.1 DX assemblies. Using the single .NET v2 assembly, I still get compiler errors.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.