Click here to Skip to main content
15,917,641 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: VC++.NET2003 - Error C2146 Compiler Conformance Pin
Nick_Kisialiou10-Apr-05 13:43
Nick_Kisialiou10-Apr-05 13:43 
GeneralRe: VC++.NET2003 - Error C2146 Compiler Conformance Pin
JSadleir10-Apr-05 13:53
JSadleir10-Apr-05 13:53 
Generallinking error Pin
Member 16179999-Apr-05 5:46
Member 16179999-Apr-05 5:46 
GeneralRe: linking error Pin
ursus zeta10-Apr-05 11:14
ursus zeta10-Apr-05 11:14 
GeneralRe: linking error Pin
Member 161799912-Apr-05 4:49
Member 161799912-Apr-05 4:49 
GeneralRe: linking error Pin
ursus zeta14-Apr-05 10:29
ursus zeta14-Apr-05 10:29 
GeneralRe: linking error Pin
Member 161799914-Apr-05 14:30
Member 161799914-Apr-05 14:30 
GeneralCopy of MSFN post Pin
ursus zeta19-Apr-05 9:58
ursus zeta19-Apr-05 9:58 
Just in case you didn't get this on MSFN,...
Hi eligeti vinod,
It's me, ursus zeta, from CodeProject. I googled your Link error code and discovered that you've posted all over the Internet. And I can't seem to get into the CodeProject for some reason,...
Anyway, after rereading your C++ command Line and Linker options, I noticed that you used the "/clr" switch, making your DirectShow filter DLL a managed .NET DLL.
I don't know if you are aware of it, but, the DirectShow object libriaries are 'unmanaged' COM libraries; .NET and COM types are NOT compatible. I assumed you were aware of this when I responded to your original post.
When using COM components in .NET applications, the correct technique is to use System.Runtime.Interop which manages the data exchange between the two entities. The COM Interop creates wrappers for all COM types so that they are usable in a .NET environment.
In your case, I think that you want to create an application that is unmanaged (by the Common Language Runtime); in other words, a Win32 application.
Review the Samples that accompany the C++ DirectShow SDK, and you will see that they do not use the /clr switch.

This is from the DirectShow FAQ at the MSDN site:

Will DirectShow ever be accessible through managed code?

There are no current plans to implement a "Managed DirectShow" platform. You can use COM interop to create DirectShow client applications in managed code, but creating filters that depend on the Common Language Runtime (CLR) is not recommended for performance reasons.

GeneralRe: Copy of MSFN post Pin
Member 161799926-Apr-05 9:55
Member 161799926-Apr-05 9:55 
QuestionHow to use non .NET DLLs in .NET environment? Pin
Khang Nguyen8-Apr-05 5:29
Khang Nguyen8-Apr-05 5:29 
AnswerRe: How to use non .NET DLLs in .NET environment? Pin
ursus zeta10-Apr-05 10:22
ursus zeta10-Apr-05 10:22 
AnswerRe: How to use non .NET DLLs in .NET environment? Pin
Paul Ingles21-Apr-05 2:36
Paul Ingles21-Apr-05 2:36 
GeneralRe: How to use non .NET DLLs in .NET environment? Pin
Khang Nguyen21-Apr-05 5:57
Khang Nguyen21-Apr-05 5:57 
GeneralLocation of dependent assemblies Pin
mav.northwind8-Apr-05 2:31
mav.northwind8-Apr-05 2:31 
GeneralRe: Location of dependent assemblies Pin
mav.northwind14-Apr-05 20:53
mav.northwind14-Apr-05 20:53 
GeneralHelp me! Pin
Member 18628467-Apr-05 0:46
Member 18628467-Apr-05 0:46 
GeneralRe: Help me! Pin
Christian Graus7-Apr-05 13:19
protectorChristian Graus7-Apr-05 13:19 
GeneralMFC Pin
Member 18625147-Apr-05 0:03
Member 18625147-Apr-05 0:03 
GeneralRe: MFC Pin
Christian Graus7-Apr-05 13:24
protectorChristian Graus7-Apr-05 13:24 
Generalinherited overloaded operators Pin
Aaron Sulwer30-Mar-05 13:33
Aaron Sulwer30-Mar-05 13:33 
GeneralRe: inherited overloaded operators Pin
Christian Graus30-Mar-05 14:36
protectorChristian Graus30-Mar-05 14:36 
GeneralRe: inherited overloaded operators Pin
Aaron Sulwer30-Mar-05 16:08
Aaron Sulwer30-Mar-05 16:08 
GeneralRe: inherited overloaded operators Pin
TigerNinja_5-Apr-05 9:02
TigerNinja_5-Apr-05 9:02 
GeneralSimple chat programs Pin
Melnx30-Mar-05 10:43
Melnx30-Mar-05 10:43 
GeneralRe: Simple chat programs Pin
Christian Graus30-Mar-05 12:00
protectorChristian Graus30-Mar-05 12:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.