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

Managed C++/CLI

 
GeneralRe: string formatting to show hex values Pin
richiemac17-May-05 4:09
richiemac17-May-05 4:09 
GeneralRe: string formatting to show hex values Pin
Saksida Bojan17-May-05 5:01
Saksida Bojan17-May-05 5:01 
GeneralRe: string formatting to show hex values Pin
richiemac18-May-05 0:04
richiemac18-May-05 0:04 
QuestionHow to use unmanaged char arrays as class member? Pin
Thomas Freudenberg12-May-05 3:59
Thomas Freudenberg12-May-05 3:59 
GeneralManaged wrapper and inheritance Pin
Johan de Koning12-May-05 0:00
Johan de Koning12-May-05 0:00 
GeneralNullReferenceException in MC++ Pin
Member 19685839-May-05 11:52
Member 19685839-May-05 11:52 
GeneralRe: NullReferenceException in MC++ Pin
Anonymous10-May-05 10:05
Anonymous10-May-05 10:05 
GeneralExcellent Question Pin
ursus zeta10-May-05 10:33
ursus zeta10-May-05 10:33 
Interop is what turns most coders away from Managed C++ .NET. It's complicated and in the case of existing COM and C++ libraries, with lots of User Defined Types (that are often NOT compatible with the Common Language Runtime) involves some extensive marshalling and data manipulation to get things to work adequately.
When you say the code works fine in a console application, does that mean a console app that does NOT have the /clr switch added to the command line? Console apps can be either managed or unmanaged.
When using a native C++ function in a managed application, you must import it using the [DllImport] attribute (which lives in System::Runtime::InteropServices, and you must include this namespace in your code or use fully qualified names).
You might want read this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconconsumingunmanageddllfunctions.asp[^]
GeneralRe: Excellent Question Pin
Gurminder_G10-May-05 11:14
sussGurminder_G10-May-05 11:14 
GeneralRe: Excellent Question Pin
ursus zeta12-May-05 9:30
ursus zeta12-May-05 9:30 
GeneralToolboxItem attribute problem Pin
tomand9-May-05 0:17
tomand9-May-05 0:17 
Generalmanaged c++ Pin
_tasleem8-May-05 9:47
_tasleem8-May-05 9:47 
GeneralRe: managed c++ Pin
Christian Graus8-May-05 14:11
protectorChristian Graus8-May-05 14:11 
Generalmystring object help Pin
user3166-May-05 19:24
user3166-May-05 19:24 
GeneralRe: mystring object help Pin
user3166-May-05 19:36
user3166-May-05 19:36 
GeneralPassword Code Pin
Derdog1016-May-05 16:37
Derdog1016-May-05 16:37 
GeneralRe: Password Code Pin
Christian Graus8-May-05 14:13
protectorChristian Graus8-May-05 14:13 
GeneralProtect a file by group Pin
sloaken6-May-05 15:37
sloaken6-May-05 15:37 
GeneralIs there a way to print a String using mc++ Pin
Lagwagon565-May-05 7:25
Lagwagon565-May-05 7:25 
GeneralRe: Is there a way to print a String using mc++ Pin
Christian Graus8-May-05 14:14
protectorChristian Graus8-May-05 14:14 
GeneralC++ Problem Pin
Dohan CRPathirana4-May-05 21:38
sussDohan CRPathirana4-May-05 21:38 
GeneralRe: C++ Problem Pin
ushani5-May-05 18:24
ushani5-May-05 18:24 
GeneralInterop::Excel Pin
Delver4-May-05 9:24
Delver4-May-05 9:24 
GeneralCalling an excutable from C++ Pin
HTisGood1-May-05 0:02
sussHTisGood1-May-05 0:02 
GeneralProcess Pin
ursus zeta1-May-05 10:50
ursus zeta1-May-05 10:50 

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.