473,406 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Whats more suited to d3d C# C++

I recently picked up a Managed Direct 3d book and the examples are in c++.
I've always used C# and wonder if c++ is more suited to Direct 3D
programming. Of course I know they both access the same framework so I'm
thinking their is no difference. But, it seems all examples either on the
net or in books are always in c++, Is this because of tradition seeing that
before c#, c++ was the better alternative? Or am I safe to just convert the
code and move on with c#

--
Ron Vecchi

Nov 15 '05 #1
4 1423
well Ron,

most executive services are written in C# and stuff like directX still have
its api's to the pre .Net era....
for that reason yes you would have most sample's in c++ but to create an
equivalent example in C# shouldnt be that big a deal... except for
pointers... maybe you should settle for ref whenever you see a pointer

hope this helps

--
Regards,

HD

"Ron Vecchi" <rv*****@xilehdvecchi.com> wrote in message
news:OC**************@TK2MSFTNGP10.phx.gbl...
I recently picked up a Managed Direct 3d book and the examples are in c++.
I've always used C# and wonder if c++ is more suited to Direct 3D
programming. Of course I know they both access the same framework so I'm
thinking their is no difference. But, it seems all examples either on the
net or in books are always in c++, Is this because of tradition seeing that before c#, c++ was the better alternative? Or am I safe to just convert the code and move on with c#

--
Ron Vecchi

Nov 15 '05 #2
The DirectX framework isn't really part of the .NET framework, nor is it
written to IL. It is native COM, and designed specifically for C++.
The Managed DX framework is really a wrapper for .NET languages like C# and
VB.NET to allow them access to the DirectX framework.
If you are using C++, there is no reason to use the managed wrappers, which
leads me to question the material in that book. MSDN has some good resouces
and samples for the Managed DX framework. If you download the managed DX
framework SDK, you should get the material you need.

-Rob Teixeira [MVP]

"Ron Vecchi" <rv*****@xilehdvecchi.com> wrote in message
news:OC**************@TK2MSFTNGP10.phx.gbl...
I recently picked up a Managed Direct 3d book and the examples are in c++.
I've always used C# and wonder if c++ is more suited to Direct 3D
programming. Of course I know they both access the same framework so I'm
thinking their is no difference. But, it seems all examples either on the
net or in books are always in c++, Is this because of tradition seeing that before c#, c++ was the better alternative? Or am I safe to just convert the code and move on with c#

--
Ron Vecchi

Nov 15 '05 #3
There is a very small performance hit working through the managed wrapers in
C# or VB but if you're comfortable with C# and you like the hassle free
programming of the managed system stick with C#.

--
Bob Powell [MVP]
C#, System.Drawing

The November edition of Well Formed is now available.
Learn how to create Shell Extensions in managed code.
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Read my Blog at http://bobpowelldotnet.blogspot.com

"Ron Vecchi" <rv*****@xilehdvecchi.com> wrote in message
news:OC**************@TK2MSFTNGP10.phx.gbl...
I recently picked up a Managed Direct 3d book and the examples are in c++.
I've always used C# and wonder if c++ is more suited to Direct 3D
programming. Of course I know they both access the same framework so I'm
thinking their is no difference. But, it seems all examples either on the
net or in books are always in c++, Is this because of tradition seeing that before c#, c++ was the better alternative? Or am I safe to just convert the code and move on with c#

--
Ron Vecchi

Nov 15 '05 #4
If you are comfortable with C# then Manafed DirectX is the way to go. For a
minimal performance hit you get a much cleaner interface to the DirectX API.

--

Lynn Harrison
SHAMELESS PLUG - Introduction to 3D Game Engine Design (C# & DX9)
www.forums.Apress.com

"Ron Vecchi" <rv*****@xilehdvecchi.com> wrote in message
news:OC**************@TK2MSFTNGP10.phx.gbl...
I recently picked up a Managed Direct 3d book and the examples are in c++.
I've always used C# and wonder if c++ is more suited to Direct 3D
programming. Of course I know they both access the same framework so I'm
thinking their is no difference. But, it seems all examples either on the
net or in books are always in c++, Is this because of tradition seeing that before c#, c++ was the better alternative? Or am I safe to just convert the code and move on with c#

--
Ron Vecchi

Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Nick | last post by:
In ASP you can create a variable that is accessible by all scripts in an application. Is this possible in PHP? Storing a multi-dimensional array in memory has much greater performance benefits...
9
by: cricketunes | last post by:
Hi folks, this one's had me stumped! $conn=ora_logon("cricketunes@pickles","j8j3kf"); if ($conn != TRUE) die("Unable to connect to oracle, exiting...\n"); $cursor = ora_open($conn); if...
4
by: John Smith | last post by:
I already know C/C++ programming and now wish to learn Python to do scripting for some games that are coming out. What book would you recommend. I am thinking Teach Your Self Python in 24 Hours...
15
by: Simon Harvey | last post by:
Hi everyone, I am fairly new to learning about xsl and xml, but one thing I have noticed is that anyone offering a tutorial or lesson on it seems to think that its the most incredible invention...
1
by: ds | last post by:
hello, i want to know the difference between vb.net and asp.net in intranet application. to bulid a intranet application which is best suited,vb.net or asp.net. i want to know the performance...
4
by: David Lozzi | last post by:
OK simple question. Whats the default value for an string() array? sub LoadStuff(byval one as integer, byval two as string, optional byval three() as string = ??) Its driving me nuts! ...
4
by: sophie | last post by:
Whats going on here: Read in a number as a string: scanf("%s", &number); number = 12345, for arguements sake Print it like this its fine:
7
by: Mike Barnard | last post by:
It's a simple test... VERY SIMPLE. But... In an external stlyesheet some attributes don't show. With the same styles cut and pasted to the test internally it works as expected. Anyone tell...
7
by: Paulo | last post by:
Hi, what is diference between: File -New Web Site and File -New Project -VB/C# -Web Application ?????? VS 2005
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.