What are my options for using Directx library in my app?
COM, .NET and native lib? Am I right?
Printable View
What are my options for using Directx library in my app?
COM, .NET and native lib? Am I right?
No. The native lib is just an easier way to get at the COM objects. Effectively your options are COM and .Net.
You mean native lib is a COM wrapper?
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.
.Net is a wrapper for COM? Or...?
[EDIT]
Anyway how should I use COM in a C# app?
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.
No I can't. Only new version supports .net.Quote:
You know you can select directx from a .net componet right?
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
The link didn't opened.