Home  |  FAQ  |  About  |  Contact  |  View Source   
 
SEARCH:
 
BROWSE:
    My Hood
Edit My Info
View Events
Read Tutorials
Training Modules
View Presentations
Download Tools
Scan News
Get Jobs
Message Forums
School Forums
Member Directory
   
CONTRIBUTE:
    Sign me up!
Post an Event
Submit Tutorials
Upload Tools
Link News
Post Jobs
   
   
Home >  Messages >  .NET Framework >  Direct X and .NET
Add to MyHood

Author
Subject:  Direct X and .NET  

Subscribe to this thread

J  J

11/30/2001 12:33:37 PM Not rated

Is there going to be a version of Direct X for the .NET framework?


[Top]  [Bottom]  [Listen]  [Edit]  [Reply

Andrew  Ma

11/30/2001 1:40:38 PM Not rated

Look at Eli Allen's post in this thread: http://www.devhood.com/messages/message_view-2.aspx?thread_id=600

"You can use C# to write a full DX application. I know the guy at MS who wrote the demo since he came from our school :) (just never cared to program DX)

only page I saw so far is:


You will probably need to wait till the next version of DX before its really usable in a .net language but then if a wrapper has too much overhead then the CLR does too so..."



[Top]  [Bottom]  [Listen]  [Edit]  [Reply

J  J

11/30/2001 2:07:21 PM Not rated

so you basically still have to write a c++ com wrapper? and can't really write the whole thing in c# yet?


[Top]  [Bottom]  [Listen]  [Edit]  [Reply

Andrew  Ma

11/30/2001 2:12:37 PM Not rated

As far as I know... that's right.... you can't write straight C# code for DirectX ....... yet.....



[Top]  [Bottom]  [Listen]  [Edit]  [Reply

J  J

11/30/2001 2:37:32 PM Avg. Rating: 1 by 1 Users

I checked out that second link you posted...pretty cool site thanks a lot


[Top]  [Bottom]  [Listen]  [Edit]  [Reply

Ted  G

11/30/2001 11:40:40 PM Not rated

you actually don't need to write a C++ wrapper for any of the directX stuff. You can just import a reference to the Visual Basic DirectX 8 Type Libraries and use it exactly as you would have in VB 6. You still have an interop wrapper, but it's nothing you have to spend your time writing.



[Top]  [Bottom]  [Listen]  [Edit]  [Reply

J  J

12/1/2001 12:06:23 AM Not rated

so to write a game in C# using direct x, you can use a reference to the vb direct x 8 type libraries?


[Top]  [Bottom]  [Listen]  [Edit]  [Reply

Ryan  Fosnaugh

12/7/2001 9:03:42 PM Not rated

Sort of. You need to convert the dx8vb.dll to a RCW or a Runtime Callable Wrapper. Basically the dx8vb.dll uses the old COM standard for exposing interfaces and it needs a wrapper so that .Net programs can access it. There is a program that comes with .Net that generates this wrapper component. tlbimp.exe (which stands for type library importer)

Ex.
tlbimp dx8vb.dll

This will create a file - DxVBLibA.dll which is the file you should reference in your C# direct-x project.

It is still complicated to use, but will do the job.



[Top]  [Bottom]  [Listen]  [Edit]  [Reply

Ryan  Fosnaugh

12/9/2001 1:42:09 AM Not rated

Just a follow up to my last post. I did some checking and found that visual studio will take care of making the RCW for the dx8vb.dll file. If you add the dll to your project references (as Ted suggested above) visual studio will make a RCW dll with the exact same name in your project directory. This can be confusing because it may be hard to determine which dll to distribute, but it will work none the less.


[Top]  [Bottom]  [Listen]  [Edit]  [Reply

Chris  Roberts

12/14/2001 12:29:18 AM Avg. Rating: 1 by 1 Users

Interesting, thanks for the info!



[Top]  [Bottom]  [Listen]  [Edit]  [Reply

Denis  Pitcher

2/17/2002 4:08:03 PM Not rated

Those solutions are great for applications only requiring the support of the VB directx...
but what about supporting things like directshow?

I've had a hard time finding any good documentation on how to implement or convert directshow into C#... could anyone provide me with information or resources for accomplishing this?


[Top]  [Bottom]  [Listen]  [Edit]  [Reply

Brandon  Bloom

4/18/2002 10:33:50 PM Not rated

Actually I am on the DirectX9 beta team. Although nothing has been released to us yet, we have been told that DirectX 9 will have full support for the .NET platform. So as far as I know, yes you will be able to code DirectX applications in C# and even be able to use it in web development.



[Top]  [Bottom]  [Listen]  [Edit]  [Reply

asad  ladha

5/8/2002 12:45:10 PM Not rated

now that's cool. :)
directx games in a web page would help create cool sites/online games.


[Top]  [Bottom]  [Listen]  [Edit]  [Reply

Don  Miller

9/12/2002 6:50:10 PM Not rated

That's true, but some of the interfaces don't seem to work right (or I just haven't figured it out yet!). I'm using DirectSound8 to play .wav files from a buffer. Works great in VB6 (as one would expect) but I'm having trouble using the DxVBLibA.CreateSoundBuffer function--there seems to be a difference between the types. The message "Value of type 'DxVBLibA.DirectSoundSecondaryBuffer8' cannot be converted to '1-dimensional array of DxVBLibA.DirectSoundSecondaryBuffer8'". The .Net code was actually imported from a working VB6 project, so I'm pretty sure there's an Interop wrapper problem... Any Comments?



[Top]  [Bottom]  [Listen]  [Edit]  [Reply

Danial  Sherif

12/11/2002 5:04:26 AM Not rated

u can use the old directX liberaris with .Net
i made a small sample with Direct3D with C#
i'am a bigennner
cantact me and we will learn to-gether
i can send u the sample
if cantacted
plz confirm


[Top]  [Bottom]  [Listen]  [Edit]  [Reply

Soceror  .

12/11/2002 3:58:41 PM Not rated

Sorry that i've been out of market too long. but is openGL going to be supported on .net?

john carmac is still working hard... we'll see how that turns out



[Top]  [Bottom]  [Listen]  [Edit]  [Reply

Paul  Bastide

12/12/2002 8:13:42 AM Not rated

People have already done an opensource version of it for .NET

http://csgl.sourceforge.net/



[Top]  [Bottom]  [Listen]  [Edit]  [Reply

Paul  Messier

10/9/2004 7:53:42 PM Not rated

Would you mind sending me something to get started with. Like a rotating cube. I would eventually like to write a web page, that has 3d models which can be dragged around the page( like a 3d animated icon on a desktop). If this is even possible.

Thanks.






[Top]  [Bottom]  [Listen]  [Edit]  [Reply

| | Last

Subscribe to this thread
Copyright © 2001 DevHood® All Rights Reserved