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

Managed C++/CLI

 
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 
GeneralRe: Compiling Unmanaged code in Managed c++ Pin
Jun Du24-Aug-06 3:59
Jun Du24-Aug-06 3:59 
alias47 wrote:
IJW: Does IJW mean "Just compile unmanaged c++ code in VS2005" and then reference the unmanaged DLL in C#.


The first half is correct. IJW only compiles unmanaged code and leave it in the unmanaged context. It won't make it callable by managed code, meaning you can't add unmanaged DLLs as references to managed projects.

alias47 wrote:
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#)


Your header and source files should indicate COM interfaces and their implementations. If your modules has implemented IDispatch, then the module is a COM-based. Check this site for how to PInvoke COM in managed C++.

alias47 wrote:
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?


Probably because the first two issues have not been resolved properly.




Best,
Jun

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 
GeneralRe: Native classes in managed assemblies [modified] Pin
Nish Nishant18-Aug-06 1:48
sitebuilderNish Nishant18-Aug-06 1:48 

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.