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

Managed C++/CLI

 
QuestionHow do I change background color and font color in the PowerPoint using Visual C++ MFC Pin
亢头997-Nov-04 22:59
亢头997-Nov-04 22:59 
GeneralRotating Polygons in fixed Angle Pin
AnsGe6-Nov-04 1:05
AnsGe6-Nov-04 1:05 
GeneralRe: Rotating Polygons in fixed Angle Pin
Christian Graus9-Nov-04 10:28
protectorChristian Graus9-Nov-04 10:28 
GeneralBMP Header Pin
alex5kov2-Nov-04 21:44
alex5kov2-Nov-04 21:44 
GeneralRe: BMP Header Pin
Kamyar Souri6-Nov-04 3:21
Kamyar Souri6-Nov-04 3:21 
Generala question: managed - unmanaged Pin
yoaz2-Nov-04 19:24
yoaz2-Nov-04 19:24 
GeneralWrapping C++ class w/MC++ Pin
BambooMoon2-Nov-04 11:41
BambooMoon2-Nov-04 11:41 
GeneralRe: Wrapping C++ class w/MC++ Pin
ursus zeta4-Nov-04 13:09
ursus zeta4-Nov-04 13:09 
Unfortunately, I don't use MFC in my coding projects, so my advice will be somewhat incomplete. We get this problem alot in Interop operations when passing data (often strings or structs) to native pre-.NET C++ functions in compiled DLLs.
The basic problem is the way the Interop marshaler processes the data; the default behavior has limited applicability with user-defined data structures. This is particularly a problem in COM, as many of the data structures are defined as types that have no compatible type in .NET.
The solution in .NET is to use attributes to control the marshaling behavior of the Interop when the default behavior is inappropriate, as in this case.
I suggest that you review the MarshalAs(UnmanagedType) attribute documentation over at MSDN. In all honesty, I don't what the correct usage would be, but, hopefully you won't have to write a custom marshal routine (because it's such a pain in the ass).
Try reading this: Deafult Behavior for Strings:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpcondefaultmarshalingforstrings.asp[^]
..or, this, the MarshalAs(UnmanagedType) Enumeration:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemruntimeinteropservicesunmanagedtypeclasstopic.asp[^]
Generalallocate string with specify length Pin
nina8021-Nov-04 12:44
nina8021-Nov-04 12:44 
GeneralManaged wrapper for a dll, with no source code Pin
Malendra1-Nov-04 0:03
Malendra1-Nov-04 0:03 
GeneralTree Pin
Raikou4930-Oct-04 12:50
Raikou4930-Oct-04 12:50 
GeneralRe: Tree Pin
Christian Graus31-Oct-04 9:02
protectorChristian Graus31-Oct-04 9:02 
GeneralCompilation Error: System::Xml::XmlDocument': placement arguments not allowed Pin
raed30-Oct-04 4:35
raed30-Oct-04 4:35 
GeneralRe: Compilation Error: System::Xml::XmlDocument': placement arguments not allowed Pin
raed30-Oct-04 4:37
raed30-Oct-04 4:37 
Generalgetting names and parameters of functions in compiled dlls Pin
fire.fox29-Oct-04 8:23
fire.fox29-Oct-04 8:23 
GeneralRe: getting names and parameters of functions in compiled dlls Pin
ursus zeta30-Oct-04 10:24
ursus zeta30-Oct-04 10:24 
Generalcalling a windows form from a regular mfc dialog Pin
BlackDice29-Oct-04 2:58
BlackDice29-Oct-04 2:58 
QuestionC slower than mex ??? Pin
colorbeads28-Oct-04 9:16
colorbeads28-Oct-04 9:16 
AnswerRe: C slower than mex ??? Pin
Anonymous31-Oct-04 21:43
Anonymous31-Oct-04 21:43 
GeneralAmbiguous Error Pin
Anonymous26-Oct-04 8:46
Anonymous26-Oct-04 8:46 
GeneralRe: Ambiguous Error Pin
Christian Graus26-Oct-04 8:53
protectorChristian Graus26-Oct-04 8:53 
GeneralRe: Ambiguous Error Pin
Anonymous26-Oct-04 8:59
Anonymous26-Oct-04 8:59 
GeneralRe: Ambiguous Error Pin
Christian Graus27-Oct-04 9:09
protectorChristian Graus27-Oct-04 9:09 
GeneralRe: Ambiguous Error Pin
George L. Jackson27-Oct-04 9:16
George L. Jackson27-Oct-04 9:16 
Generalunmanaged to managed code conversion Pin
Member 138330524-Oct-04 23:56
Member 138330524-Oct-04 23:56 

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.