![]() |
| | #1 |
| System Novice Join Date: Jan 2006 Location: Tehran
Posts: 1,075
| 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 | |
| | #2 |
| Cat without Hat 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 | |
| | #3 |
| System Novice 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 | |
| | #4 |
| Cat without Hat 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 | |
| | #5 |
| System Novice 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 | |
| | #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 | |
| | #7 | |
| System Novice Join Date: Jan 2006 Location: Tehran
Posts: 1,075
| Quote:
__________________ 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 | |
| | #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 | |
| | #9 |
| System Novice 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 | |
![]() |
| Thread Tools | |
| Display Modes | |
|
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 |