C Board  

Go Back   C Board > General Programming Boards > C# Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 09-20-2006, 11:17 AM   #1
System Novice
 
siavoshkc's Avatar
 
Join Date: Jan 2006
Location: Tehran
Posts: 1,075
Question My options for Directx

What are my options for using Directx library in my app?

COM, .NET and native lib? Am I right?
__________________
Microsoft Visual Studio 2008 Professional (On Microsoft Windows XP SP2)

Learn the language before using it. (C++ Books and C Books)
Read the FAQ before making a problem.
Then make a Google and Forum search.

My code painter new version Version 0.97 DOWNLOAD NOW! (Let the pop up, pop!)

SiavoshKC
siavoshkc is offline   Reply With Quote
Old 09-20-2006, 12:05 PM   #2
Cat without Hat
 
CornedBee's Avatar
 
Join Date: Apr 2003
Posts: 8,492
No. The native lib is just an easier way to get at the COM objects. Effectively your options are COM and .Net.
__________________
All the buzzt!
CornedBee

"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
CornedBee is offline   Reply With Quote
Old 09-20-2006, 12:31 PM   #3
System Novice
 
siavoshkc's Avatar
 
Join Date: Jan 2006
Location: Tehran
Posts: 1,075
You mean native lib is a COM wrapper?
__________________
Microsoft Visual Studio 2008 Professional (On Microsoft Windows XP SP2)

Learn the language before using it. (C++ Books and C Books)
Read the FAQ before making a problem.
Then make a Google and Forum search.

My code painter new version Version 0.97 DOWNLOAD NOW! (Let the pop up, pop!)

SiavoshKC
siavoshkc is offline   Reply With Quote
Old 09-20-2006, 03:46 PM   #4
Cat without Hat
 
CornedBee's Avatar
 
Join Date: Apr 2003
Posts: 8,492
All the native DirectX libraries contain are a few functions that wrap the CoInitializeEx and CoCreateInstance calls.

Oh, and of course they contain the implementations of the COM objects. So effectively, COM and native lib are the same.
__________________
All the buzzt!
CornedBee

"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
CornedBee is offline   Reply With Quote
Old 09-20-2006, 04:07 PM   #5
System Novice
 
siavoshkc's Avatar
 
Join Date: Jan 2006
Location: Tehran
Posts: 1,075
.Net is a wrapper for COM? Or...?

[EDIT]

Anyway how should I use COM in a C# app?
__________________
Microsoft Visual Studio 2008 Professional (On Microsoft Windows XP SP2)

Learn the language before using it. (C++ Books and C Books)
Read the FAQ before making a problem.
Then make a Google and Forum search.

My code painter new version Version 0.97 DOWNLOAD NOW! (Let the pop up, pop!)

SiavoshKC

Last edited by siavoshkc; 09-20-2006 at 11:25 PM.
siavoshkc is offline   Reply With Quote
Old 09-21-2006, 01:03 AM   #6
Sweet
 
Join Date: Aug 2002
Location: Tucson, Arizona
Posts: 1,698
Add a reference to the com object in your project. You know you can select directx from a .net componet right? Or maybe I am confused by what you mean.
__________________
Woop?
prog-bman is offline   Reply With Quote
Old 09-21-2006, 01:43 AM   #7
System Novice
 
siavoshkc's Avatar
 
Join Date: Jan 2006
Location: Tehran
Posts: 1,075
Quote:
You know you can select directx from a .net componet right?
No I can't. Only new version supports .net.
__________________
Microsoft Visual Studio 2008 Professional (On Microsoft Windows XP SP2)

Learn the language before using it. (C++ Books and C Books)
Read the FAQ before making a problem.
Then make a Google and Forum search.

My code painter new version Version 0.97 DOWNLOAD NOW! (Let the pop up, pop!)

SiavoshKC
siavoshkc is offline   Reply With Quote
Old 09-22-2006, 01:18 AM   #8
Sweet
 
Join Date: Aug 2002
Location: Tucson, Arizona
Posts: 1,698
Ok then just add a COM reference to directx. You can use it by declaring the class(es) that you want to use from directx and just new them out. Now I can't tell you what classes etc cause well I am not a directx man but I have done a fair amount of COM + C# ness it is fairly easy to do.
This maybe?: http://www.c-sharpcorner.com/UploadF...6-8c0d3fa71f07
__________________
Woop?

Last edited by prog-bman; 09-22-2006 at 01:24 AM.
prog-bman is offline   Reply With Quote
Old 09-26-2006, 08:41 AM   #9
System Novice
 
siavoshkc's Avatar
 
Join Date: Jan 2006
Location: Tehran
Posts: 1,075
The link didn't opened.
__________________
Microsoft Visual Studio 2008 Professional (On Microsoft Windows XP SP2)

Learn the language before using it. (C++ Books and C Books)
Read the FAQ before making a problem.
Then make a Google and Forum search.

My code painter new version Version 0.97 DOWNLOAD NOW! (Let the pop up, pop!)

SiavoshKC
siavoshkc is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Doxygen failing Elysia General Discussions 19 04-16-2008 01:24 PM
What's the best way to handle many program options? stickmangumby C Programming 19 06-06-2007 04:06 PM
Explorer options Magos Windows Programming 1 04-02-2005 09:23 AM
Disabling the main frame menu options MPC_Engr Windows Programming 2 01-22-2003 09:04 AM
simulate Grep command in Unix using C laxmi C Programming 6 05-10-2002 04:10 PM


All times are GMT -6. The time now is 11:51 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22