Click here to Skip to main content
16,004,833 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CTrl+Alt+Del Pin
Dominik Reichl15-Mar-03 2:29
Dominik Reichl15-Mar-03 2:29 
GeneralRe: CTrl+Alt+Del Pin
Mike Nordell15-Mar-03 3:12
Mike Nordell15-Mar-03 3:12 
GeneralRe: CTrl+Alt+Del Pin
Chris Losinger15-Mar-03 8:24
professionalChris Losinger15-Mar-03 8:24 
GeneralMDI child frame text Pin
djordj14-Mar-03 21:32
djordj14-Mar-03 21:32 
GeneralRe: MDI child frame text Pin
Neville Franks15-Mar-03 0:28
Neville Franks15-Mar-03 0:28 
GeneralGetting mouse key status Pin
dan_rohan200314-Mar-03 19:54
sussdan_rohan200314-Mar-03 19:54 
GeneralRe: Getting mouse key status Pin
Neville Franks15-Mar-03 0:38
Neville Franks15-Mar-03 0:38 
GeneralC# DLL in VC++ Pin
Baatezu14-Mar-03 19:40
Baatezu14-Mar-03 19:40 
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
GeneralMBCS Vs Unicode Pin
M. Adam Xang14-Mar-03 18:33
sussM. Adam Xang14-Mar-03 18:33 
GeneralRe: MBCS Vs Unicode Pin
Michael Dunn14-Mar-03 18:39
sitebuilderMichael Dunn14-Mar-03 18:39 
QuestionRetrieving user's privilege level? Pin
Abin14-Mar-03 17:36
Abin14-Mar-03 17:36 
AnswerRe: Retrieving user's privilege level? Pin
Nish Nishant15-Mar-03 3:35
sitebuilderNish Nishant15-Mar-03 3:35 
GeneralRe: Retrieving user's privilege level? Pin
Abin15-Mar-03 4:22
Abin15-Mar-03 4:22 
GeneralRe: Retrieving user's privilege level? Pin
Nish Nishant15-Mar-03 4:33
sitebuilderNish Nishant15-Mar-03 4:33 
GeneralRe: Retrieving user's privilege level? Pin
Abin15-Mar-03 15:35
Abin15-Mar-03 15:35 
GeneralRe: Retrieving user's privilege level? Pin
Nish Nishant15-Mar-03 15:54
sitebuilderNish Nishant15-Mar-03 15:54 
GeneralRe: Retrieving user's privilege level? Pin
Abin15-Mar-03 16:27
Abin15-Mar-03 16:27 
GeneralRe: Retrieving user's privilege level? Pin
Nish Nishant15-Mar-03 16:39
sitebuilderNish Nishant15-Mar-03 16:39 
AnswerRe: Retrieving user's privilege level? Pin
Brian Shifrin15-Mar-03 3:51
Brian Shifrin15-Mar-03 3:51 
GeneralBoot discs Pin
Dirso14-Mar-03 16:50
Dirso14-Mar-03 16:50 
GeneralRe: Boot discs Pin
Mike Nordell15-Mar-03 3:18
Mike Nordell15-Mar-03 3:18 
GeneralRe: Boot discs Pin
Dirso15-Mar-03 5:33
Dirso15-Mar-03 5:33 
GeneralPreliminary Research Question. Pin
73Zeppelin14-Mar-03 14:19
73Zeppelin14-Mar-03 14:19 
GeneralRe: Preliminary Research Question. Pin
Michael Dunn14-Mar-03 15:45
sitebuilderMichael Dunn14-Mar-03 15:45 
GeneralRe: Preliminary Research Question. Pin
73Zeppelin14-Mar-03 15:59
73Zeppelin14-Mar-03 15:59 

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.