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

Managed C++/CLI

 
GeneralRe: Managed and Unmanaged Pin
Kannan Kalyanaraman18-Mar-03 22:10
Kannan Kalyanaraman18-Mar-03 22:10 
GeneralRe: Managed and Unmanaged Pin
ManagedCode19-Mar-03 18:35
ManagedCode19-Mar-03 18:35 
GeneralRe: Managed and Unmanaged Pin
Kannan Kalyanaraman19-Mar-03 20:03
Kannan Kalyanaraman19-Mar-03 20:03 
QuestionPredefined bitmaps for toolbars ? Pin
Maximilien17-Mar-03 14:49
Maximilien17-Mar-03 14:49 
AnswerRe: Predefined bitmaps for toolbars ? Pin
Heath Stewart17-Mar-03 17:02
protectorHeath Stewart17-Mar-03 17:02 
GeneralRe: Predefined bitmaps for toolbars ? Pin
Maximilien18-Mar-03 11:55
Maximilien18-Mar-03 11:55 
GeneralRe: Predefined bitmaps for toolbars ? Pin
Heath Stewart18-Mar-03 17:03
protectorHeath Stewart18-Mar-03 17:03 
GeneralC# DLL in VC++ Pin
Baatezu14-Mar-03 19:38
Baatezu14-Mar-03 19:38 
I'm trying to use a form I created in C# in a VC++ program I am creating. (Descriptive subject, no?) I have the C# compiling into a DLL and ... well that's about as far as I can get. I've done some reseach in the MSDN, and it shows how to use console classes, but nothing about how to use a form created in C#. I don't have the code on this computer, but the method I found I was trying last was using the following code (Close as I can 'member)

#using <mscordb.dll>//However main CLR dll is spelled.
#using "MyCSharpDLL.dll"
using namespace MyCSForm;//I tried it with and without this
//line and it didn't work either way, so I show it.

That's about where I get to. I also try to create an object of the class in the name space using either

MyForm Form1;
OR
MyCSForm::MyForm Form1;

Depending on if I use the "using namespace MyCSForm;" line or not.
I have also tried to using a slightly more complex method, one that is used to load functions from a DLL. I use that method to pull things out of a C++ dll that uses dllexport to say what comes out. That method can load the C# DLL but I can't figure out what I would be trying to load from it. Tried and failed to do the form, and main and even the namespace. None worked. At least I don't know how to get them to work.

Any help would be appreciated and if you have question I will answer them to the best of my abilities. And if I am going all wrong on how to load a DLL made in C# into C++, please point me in the right direction. Smile | :) Thanks.

Note: I'm sorry if I seem to be flooding the forum, but I'm not sure which of the three (Visual C++, Managed C++, C#) I am posting this in would be the best place for it. Since it deals with all three of them, I believe.

Thank you again for any help.

The wisest of the wise may err. - Aeschylus

I'm at home right now.
GeneralRe: C# DLL in VC++ Pin
Paul Selormey14-Mar-03 23:46
Paul Selormey14-Mar-03 23:46 
GeneralRe: C# DLL in VC++ Pin
Baatezu15-Mar-03 8:34
Baatezu15-Mar-03 8:34 
GeneralRe: C# DLL in VC++ Pin
Paul Selormey15-Mar-03 16:41
Paul Selormey15-Mar-03 16:41 
Generalresx-files in VC++.net 2002 Pin
VizOne13-Mar-03 9:33
VizOne13-Mar-03 9:33 
GeneralRe: resx-files in VC++.net 2002 Pin
Paul Selormey15-Mar-03 16:54
Paul Selormey15-Mar-03 16:54 
GeneralRe: resx-files in VC++.net 2002 Pin
VizOne16-Mar-03 1:57
VizOne16-Mar-03 1:57 
QuestionManaged C++ starting unmanaged threads? Pin
dlfarney12-Mar-03 6:04
dlfarney12-Mar-03 6:04 
AnswerRe: Managed C++ starting unmanaged threads? Pin
Paul Selormey13-Mar-03 1:23
Paul Selormey13-Mar-03 1:23 
GeneralRe: Managed C++ starting unmanaged threads? Pin
dlfarney13-Mar-03 2:38
dlfarney13-Mar-03 2:38 
GeneralRe: Managed C++ starting unmanaged threads? Pin
Paul Selormey13-Mar-03 3:19
Paul Selormey13-Mar-03 3:19 
GeneralRe: off-topic Remoting Pin
Joao Vaz13-Mar-03 6:26
Joao Vaz13-Mar-03 6:26 
GeneralRe: off-topic Remoting Pin
Paul Selormey13-Mar-03 13:17
Paul Selormey13-Mar-03 13:17 
QuestionHow is an application's window turned into icon? Pin
Nguyen Huynh Hung7-Mar-03 18:18
Nguyen Huynh Hung7-Mar-03 18:18 
AnswerRe: How is an application's window turned into icon? Pin
Paul Selormey9-Mar-03 17:10
Paul Selormey9-Mar-03 17:10 
GeneralRe: How is an application's window turned into icon? Pin
Nish Nishant15-Mar-03 8:57
sitebuilderNish Nishant15-Mar-03 8:57 
GeneralRe: How is an application's window turned into icon? Pin
Paul Selormey15-Mar-03 16:59
Paul Selormey15-Mar-03 16:59 
GeneralRe: error c2872... : ambiguous symbol Pin
Paul Selormey9-Mar-03 17:12
Paul Selormey9-Mar-03 17:12 

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.