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

Managed C++/CLI

 
GeneralRe: Calling managed c++ dll from MFC app Pin
Roopa Krishnappa13-Jun-05 2:36
Roopa Krishnappa13-Jun-05 2:36 
Generalsorry Pin
ursus zeta14-Jun-05 12:15
ursus zeta14-Jun-05 12:15 
Generaldeclaration of classes Pin
prat789-Jun-05 2:29
prat789-Jun-05 2:29 
GeneralRe: declaration of classes Pin
Christian Graus13-Jun-05 12:26
protectorChristian Graus13-Jun-05 12:26 
GeneralRe: declaration of classes Pin
toxcct13-Jun-05 20:19
toxcct13-Jun-05 20:19 
GeneralConverting managed class pointers to unmanaged void pointers and back. Pin
Bill Langlais7-Jun-05 17:54
Bill Langlais7-Jun-05 17:54 
GeneralRe: Converting managed class pointers to unmanaged void pointers and back. Pin
Bill Langlais8-Jun-05 1:54
Bill Langlais8-Jun-05 1:54 
GeneralManaged + Unmanaged C++ dll. Pin
rkvs7-Jun-05 16:36
rkvs7-Jun-05 16:36 
Hi,

I have a dll that is using mixed mode. I followed these steps to create the
project:
1. Created a managed C++ class library.
2. Added methods and code that uses unmanaged MFC (CString).
3. Compiled.
4. Added this dll as a reference in some C# project.
5. Used the managed classes that were coded in the dll.

Everything was normal until i tried to fix the linker warning:
LINK : warning LNK4243: DLL containing objects compiled with /clr is not linked with /NOENTRY; image may not run correctly

This link says how to fix the linker warning:
http://msdn.microsoft.com/library/d...tomixedmode.asp

Please check the steps given under the section:
"To convert the managed DLL to mixed mode"

After doing whatever was mentioned in that section, when I access a
method in the dll that uses CString, I get an exception in one mfc file.
Details of the exception:
-------------------------------
File : f:\vs70builds\3077\vc\MFCATL\ship\atlmfc\include\cstringt.h
Line : 1088
Expression : AtlIsValidString( psz )
... and blah blah.


Can anyone help me in fixing the linker warning as well as the exception ?
Thanks in advance.
-Raj.
Generalquestion re. portability of an MFC app Pin
joseph19506-Jun-05 10:26
joseph19506-Jun-05 10:26 
GeneralRe: question re. portability of an MFC app Pin
joseph19506-Jun-05 10:27
joseph19506-Jun-05 10:27 
GeneralRe: question re. portability of an MFC app Pin
Christian Graus6-Jun-05 12:41
protectorChristian Graus6-Jun-05 12:41 
GeneralRe: question re. portability of an MFC app Pin
joseph19507-Jun-05 4:54
joseph19507-Jun-05 4:54 
GeneralRe: question re. portability of an MFC app Pin
Christian Graus7-Jun-05 12:04
protectorChristian Graus7-Jun-05 12:04 
GeneralRe: question re. portability of an MFC app Pin
toxcct6-Jun-05 20:20
toxcct6-Jun-05 20:20 
GeneralRe: question re. portability of an MFC app Pin
joseph19507-Jun-05 4:54
joseph19507-Jun-05 4:54 
GeneralRe: question re. portability of an MFC app Pin
joseph19507-Jun-05 9:02
joseph19507-Jun-05 9:02 
GeneralRe: question re. portability of an MFC app Pin
Christian Graus7-Jun-05 12:01
protectorChristian Graus7-Jun-05 12:01 
GeneralDrawing simple shapes and controlling them Pin
Hmmkk5-Jun-05 1:23
Hmmkk5-Jun-05 1:23 
GeneralRe: Drawing simple shapes and controlling them Pin
Hmmkk5-Jun-05 2:15
Hmmkk5-Jun-05 2:15 
GeneralFrom, "Windows Forms Programming in C#" Pin
ursus zeta5-Jun-05 10:50
ursus zeta5-Jun-05 10:50 
GeneralRe: From, "Windows Forms Programming in C#" Pin
Hmmkk6-Jun-05 11:01
Hmmkk6-Jun-05 11:01 
Generalconfusing Pin
ursus zeta7-Jun-05 8:16
ursus zeta7-Jun-05 8:16 
GeneralRe: confusing Pin
Hmmkk7-Jun-05 11:43
Hmmkk7-Jun-05 11:43 
Generaltoo much info Pin
ursus zeta10-Jun-05 10:50
ursus zeta10-Jun-05 10:50 
General3 occurences of error C2039 Pin
joseph19503-Jun-05 4:36
joseph19503-Jun-05 4:36 

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.