What are my options for using Directx library in my app?
COM, .NET and native lib? Am I right?
What are my options for using Directx library in my app?
COM, .NET and native lib? Am I right?
Learn C++ (C++ Books, C Books, FAQ, Forum Search)
Code painter latest version on sourceforge DOWNLOAD NOW!
Download FSB Data Integrity Tester.
Siavosh K C
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
You mean native lib is a COM wrapper?
Learn C++ (C++ Books, C Books, FAQ, Forum Search)
Code painter latest version on sourceforge DOWNLOAD NOW!
Download FSB Data Integrity Tester.
Siavosh K C
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
.Net is a wrapper for COM? Or...?
[EDIT]
Anyway how should I use COM in a C# app?
Last edited by siavoshkc; 09-20-2006 at 11:25 PM.
Learn C++ (C++ Books, C Books, FAQ, Forum Search)
Code painter latest version on sourceforge DOWNLOAD NOW!
Download FSB Data Integrity Tester.
Siavosh K C
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?
No I can't. Only new version supports .net.You know you can select directx from a .net componet right?
Learn C++ (C++ Books, C Books, FAQ, Forum Search)
Code painter latest version on sourceforge DOWNLOAD NOW!
Download FSB Data Integrity Tester.
Siavosh K C
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
Last edited by prog-bman; 09-22-2006 at 01:24 AM.
Woop?
The link didn't opened.
Learn C++ (C++ Books, C Books, FAQ, Forum Search)
Code painter latest version on sourceforge DOWNLOAD NOW!
Download FSB Data Integrity Tester.
Siavosh K C