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

Managed C++/CLI

 
GeneralRe: global managed string array Pin
led mike31-Mar-08 5:31
led mike31-Mar-08 5:31 
GeneralRe: global managed string array Pin
Ri Qen-Sin1-Apr-08 8:37
Ri Qen-Sin1-Apr-08 8:37 
GeneralRe: global managed string array Pin
ptr2void24-Mar-08 18:57
ptr2void24-Mar-08 18:57 
GeneralArray conversion.. Pin
ptr2void23-Mar-08 23:34
ptr2void23-Mar-08 23:34 
GeneralRe: Array conversion.. Pin
Mark Salsbery24-Mar-08 6:43
Mark Salsbery24-Mar-08 6:43 
GeneralCannot marshal class array in function Pin
Member 457893921-Mar-08 12:58
Member 457893921-Mar-08 12:58 
GeneralRe: Cannot marshal class array in function [modified] Pin
Mark Salsbery21-Mar-08 14:01
Mark Salsbery21-Mar-08 14:01 
GeneralConverting an unmanaged EXE to DLL in C++ Pin
Manny Roxas21-Mar-08 5:39
Manny Roxas21-Mar-08 5:39 
Hello,

I have an unmanaged console application (.exe) that I would like to convert to DLL so I can link it with my managed windows app using Visual Studio 2005 C++ Express. I worked with Visual C++ and MFC before but this is my first time to use .NET and Windows form in C++. I created a multi-project solution with my Windows GUI projet and console application project. Here's what I did:

1. I changed the console application Configuration Type property from "Application (.exe)" to "Dynamic DLL (.dll)".
2. I added the following code in my managed Windows GUI:

[DllImportAttribute("ConsoleApp.dll", CharSet=CharSet::Auto)]
int MyStrCmp( char *strA, char *strB );

3. Then I call the MyStrCmp() function from my Windows GUI.
4. I add reference to the ConsoleApp.dll.
5. It compiled and linked. But when I ran it, I got the error message " Unable to find an entry point named 'MyStrCmp' in DLL 'ConsoleApp.dll'.

There must be more changes needed to the console application than just changing the property from EXE to DLL and adding as reference. Please help.

Thanks,

Manny
GeneralRe: Converting an unmanaged EXE to DLL in C++ Pin
led mike21-Mar-08 5:45
led mike21-Mar-08 5:45 
GeneralManaged exceptions.. Pin
ptr2void20-Mar-08 21:06
ptr2void20-Mar-08 21:06 
GeneralRe: Managed exceptions.. Pin
Mark Salsbery21-Mar-08 6:44
Mark Salsbery21-Mar-08 6:44 
GeneralEmbedded Resources in C++/CLI Pin
Oddball19-Mar-08 12:22
Oddball19-Mar-08 12:22 
GeneralRe: Embedded Resources in C++/CLI Pin
led mike20-Mar-08 4:33
led mike20-Mar-08 4:33 
GeneralRe: Embedded Resources in C++/CLI Pin
Oddball21-Mar-08 10:45
Oddball21-Mar-08 10:45 
GeneralRe: Embedded Resources in C++/CLI Pin
Mark Salsbery21-Mar-08 11:01
Mark Salsbery21-Mar-08 11:01 
GeneralRe: Embedded Resources in C++/CLI Pin
Oddball24-Mar-08 4:11
Oddball24-Mar-08 4:11 
GeneralRe: Embedded Resources in C++/CLI Pin
[d3m0n]1-Dec-08 5:33
[d3m0n]1-Dec-08 5:33 
GeneralRe: Embedded Resources in C++/CLI Pin
Oddball1-Dec-08 5:43
Oddball1-Dec-08 5:43 
GeneralReading a File Pin
newkid19-Mar-08 10:53
newkid19-Mar-08 10:53 
GeneralRe: Reading a File Pin
Mark Salsbery19-Mar-08 12:00
Mark Salsbery19-Mar-08 12:00 
GeneralType Cast from cli::array<unsigned char=""> to unsigned char*</unsigned> Pin
ChemmieBro19-Mar-08 2:33
ChemmieBro19-Mar-08 2:33 
GeneralRe: Type Cast from cli::array to unsigned char* Pin
led mike19-Mar-08 4:46
led mike19-Mar-08 4:46 
GeneralRe: Type Cast from cli::array to unsigned char* Pin
Mark Salsbery19-Mar-08 8:44
Mark Salsbery19-Mar-08 8:44 
GeneralContains methode in Visual c++ NET 2005 Pin
mikobi18-Mar-08 22:20
mikobi18-Mar-08 22:20 
GeneralRe: Contains methode in Visual c++ NET 2005 Pin
led mike19-Mar-08 4:45
led mike19-Mar-08 4:45 

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.