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

Managed C++/CLI

 
AnswerRe: How to display Exception after the Form is loaded Pin
Nish Nishant25-Aug-06 2:59
sitebuilderNish Nishant25-Aug-06 2:59 
GeneralRe: How to display Exception after the Form is loaded Pin
mmhu26-Aug-06 13:26
mmhu26-Aug-06 13:26 
QuestionSetting toolbox tab programatically Pin
Edward Diener24-Aug-06 2:22
Edward Diener24-Aug-06 2:22 
QuestionInvisible text in Messagebox [modified] Pin
dawei.code23-Aug-06 0:02
dawei.code23-Aug-06 0:02 
AnswerRe: Invisible text in Messagebox Pin
Nish Nishant24-Aug-06 11:22
sitebuilderNish Nishant24-Aug-06 11:22 
GeneralRe: Invisible text in Messagebox Pin
dawei.code25-Aug-06 2:04
dawei.code25-Aug-06 2:04 
QuestionNon-managed (unsafe) code impersonation Pin
Ray Cassick22-Aug-06 9:00
Ray Cassick22-Aug-06 9:00 
AnswerRe: Non-managed (unsafe) code impersonation Pin
Nish Nishant23-Aug-06 6:45
sitebuilderNish Nishant23-Aug-06 6:45 
QuestionHow to pass a SortedList from C# to MC++ [modified] Pin
AbinThomas21-Aug-06 0:29
AbinThomas21-Aug-06 0:29 
AnswerRe: How to pass a SortedList from C# to MC++ Pin
Jun Du23-Aug-06 5:16
Jun Du23-Aug-06 5:16 
GeneralRe: How to pass a SortedList from C# to MC++ Pin
AbinThomas23-Aug-06 18:38
AbinThomas23-Aug-06 18:38 
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 

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.