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

Managed C++/CLI

 
QuestionCompiling Unmanaged code in Managed c++ Pin
alias4720-Aug-06 21:27
alias4720-Aug-06 21:27 
AnswerRe: Compiling Unmanaged code in Managed c++ Pin
Christian Graus20-Aug-06 21:54
protectorChristian Graus20-Aug-06 21:54 
GeneralRe: Compiling Unmanaged code in Managed c++ Pin
alias4721-Aug-06 1:03
alias4721-Aug-06 1:03 
GeneralRe: Compiling Unmanaged code in Managed c++ Pin
Nish Nishant21-Aug-06 1:08
sitebuilderNish Nishant21-Aug-06 1:08 
GeneralRe: Compiling Unmanaged code in Managed c++ Pin
Christian Graus21-Aug-06 1:21
protectorChristian Graus21-Aug-06 1:21 
GeneralRe: Compiling Unmanaged code in Managed c++ Pin
alias4721-Aug-06 15:06
alias4721-Aug-06 15:06 
GeneralRe: Compiling Unmanaged code in Managed c++ Pin
Jun Du23-Aug-06 5:12
Jun Du23-Aug-06 5:12 
GeneralRe: Compiling Unmanaged code in Managed c++ Pin
alias4723-Aug-06 20:27
alias4723-Aug-06 20:27 
I *really* need someone to help me out.. I am wasting heaps of time trying to access this unmanaged c++ DLL from C#. It is a showstopper.

Let me check my understanding on a few issues:
IJW: Does IJW mean "Just compile unmanaged c++ code in VS2005" and then reference the unmanaged DLL in C#. If so, this does not work.
COM: How can I tell that the unmanaged c++ DLL is not COM-based? (Apart fromn the message I receive when trying to reference the DLL from C#)
PInvoke: When using this from C# to the c++ DLL, I receive a message about corrupt memory. Is this because the type of the argument is incorrect? In c++ the type is IDispatch. In C# I am passing an object type. In fact it is an Excel.Application type which is being cast to object that I am passing. Will this PInvoke technique possibly work if I pass a different type?

The article http://www.codeproject.com/useritems/usingcppdll.asp seems comprehensive, but I wonder whether I need to do any/all of this.

The unmanaged c++ DLL works prefectly currently with Excel. I guess that is because excel is itself unmanaged? Is the approach found http://groups.google.com/group/microsoft.public.dotnet.languages.vc/browse_thread/thread/8c538b0e1bbf020b/cac8b5f6bb7932ef%23cac8b5f6bb7932ef
too simplistic?

Surely there is an app in vs2005 that autogenerates the managed wrapper? Surely? Like http://www.codeproject.com/dotnet/NativeWrapper.asp

Regards
alias47
GeneralRe: Compiling Unmanaged code in Managed c++ Pin
Jun Du24-Aug-06 3:59
Jun Du24-Aug-06 3:59 
GeneralRe: Compiling Unmanaged code in Managed c++ Pin
Nish Nishant24-Aug-06 10:46
sitebuilderNish Nishant24-Aug-06 10:46 
GeneralRe: Compiling Unmanaged code in Managed c++ Pin
Jun Du24-Aug-06 12:17
Jun Du24-Aug-06 12:17 
GeneralRe: Compiling Unmanaged code in Managed c++ Pin
Nish Nishant24-Aug-06 13:10
sitebuilderNish Nishant24-Aug-06 13:10 
GeneralRe: Compiling Unmanaged code in Managed c++ Pin
Nish Nishant24-Aug-06 10:44
sitebuilderNish Nishant24-Aug-06 10:44 
GeneralRe: Compiling Unmanaged code in Managed c++ Pin
alias4722-Aug-06 14:03
alias4722-Aug-06 14:03 
GeneralRe: Compiling Unmanaged code in Managed c++ Pin
Nish Nishant24-Aug-06 10:45
sitebuilderNish Nishant24-Aug-06 10:45 
QuestionInstalling Managed C++ Pin
alias4720-Aug-06 20:45
alias4720-Aug-06 20:45 
AnswerRe: Installing Managed C++ Pin
Christian Graus20-Aug-06 20:48
protectorChristian Graus20-Aug-06 20:48 
GeneralRe: Installing Managed C++ Pin
alias4720-Aug-06 21:29
alias4720-Aug-06 21:29 
GeneralRe: Installing Managed C++ Pin
Christian Graus20-Aug-06 21:52
protectorChristian Graus20-Aug-06 21:52 
GeneralRe: Installing Managed C++ Pin
Nish Nishant21-Aug-06 1:07
sitebuilderNish Nishant21-Aug-06 1:07 
GeneralRe: Installing Managed C++ Pin
Christian Graus21-Aug-06 1:21
protectorChristian Graus21-Aug-06 1:21 
GeneralRe: Installing Managed C++ Pin
Nish Nishant21-Aug-06 1:30
sitebuilderNish Nishant21-Aug-06 1:30 
QuestionNative classes in managed assemblies Pin
Xpnctoc17-Aug-06 15:38
Xpnctoc17-Aug-06 15:38 
AnswerRe: Native classes in managed assemblies Pin
Nish Nishant17-Aug-06 15:47
sitebuilderNish Nishant17-Aug-06 15:47 
GeneralRe: Native classes in managed assemblies [modified] Pin
Xpnctoc17-Aug-06 16:22
Xpnctoc17-Aug-06 16:22 

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.