Click here to Skip to main content
16,006,709 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Using CString in MC++ project Pin
igor196028-Aug-03 13:45
igor196028-Aug-03 13:45 
GeneralUsing CString in MC++ project Pin
Katamneni26-Aug-03 20:52
Katamneni26-Aug-03 20:52 
GeneralWindows Forms and .NET controls in MFC application Pin
Member 45183026-Aug-03 20:15
Member 45183026-Aug-03 20:15 
GeneralGetting Subclassed Components to display in form view Pin
Gomac25-Aug-03 12:22
Gomac25-Aug-03 12:22 
GeneralUsing Delete In MC++ Pin
Gomac25-Aug-03 12:13
Gomac25-Aug-03 12:13 
GeneralRe: Using Delete In MC++ Pin
Tom Archer25-Aug-03 12:17
Tom Archer25-Aug-03 12:17 
GeneralUse MessageBox in Windows Forms Pin
RafMar25-Aug-03 5:10
RafMar25-Aug-03 5:10 
GeneralRe: Use MessageBox in Windows Forms Pin
Tom Archer25-Aug-03 12:24
Tom Archer25-Aug-03 12:24 
If you're trying to use the MessageBox class in a mixed mode app you'll run into compiler error because the WinUser.h file contains a #define that maps the MessageBox name to either the MessageBoxA (marshals the passed string to ANSI) or MessageBoxW (marshals the passed string to wide character format, or Unicode) function based on the project's defined character set option. If this is the case you have two options:

1) If you'll never use the Win32 MessageBox function, simply #undef it in the stdafx.h file.
<br />
#undef MessageBox<br />


2) If you only want to #undef the MessageBox within a given context, you can do the following:
<br />
#pragma push_macro("MessageBox")<br />
#undef MessageBox<br />
// your code<br />
#pragma pop_macro("MessageBox")<br />


If you're writing a purely managed application, I don't think it's an issue but I never write managed only C++ apps so I'm not sure.


Cheers,
Tom Archer
Inside C#,
Extending MFC Applications with the .NET Framework
It's better to listen to others than to speak, because I already know what I'm going to say anyway. - friend of Jörgen Sigvardsson
GeneralRe: Use MessageBox in Windows Forms Pin
RafMar25-Aug-03 20:23
RafMar25-Aug-03 20:23 
GeneralCCW and namespace Pin
devvvy25-Aug-03 0:16
devvvy25-Aug-03 0:16 
GeneralRe: CCW and namespace Pin
Nick Parker26-Aug-03 1:22
protectorNick Parker26-Aug-03 1:22 
GeneralRe: CCW and namespace Pin
devvvy26-Aug-03 4:15
devvvy26-Aug-03 4:15 
GeneralRe: CCW and namespace Pin
Anthony_Yio26-Aug-03 1:36
Anthony_Yio26-Aug-03 1:36 
Generalconvert this C# declaration to MC++ Pin
devvvy23-Aug-03 17:35
devvvy23-Aug-03 17:35 
GeneralRe: convert this C# declaration to MC++ Pin
Tom Archer24-Aug-03 3:21
Tom Archer24-Aug-03 3:21 
GeneralRe: convert this C# declaration to MC++ Pin
devvvy24-Aug-03 6:27
devvvy24-Aug-03 6:27 
GeneralRe: convert this C# declaration to MC++ Pin
J. Dunlap24-Aug-03 10:07
J. Dunlap24-Aug-03 10:07 
GeneralRe: convert this C# declaration to MC++ Pin
devvvy25-Aug-03 0:05
devvvy25-Aug-03 0:05 
GeneralRe: convert this C# declaration to MC++ Pin
Tom Archer25-Aug-03 12:27
Tom Archer25-Aug-03 12:27 
GeneralRe: convert this C# declaration to MC++ Pin
devvvy25-Aug-03 0:07
devvvy25-Aug-03 0:07 
GeneralATL server and RCW Pin
devvvy23-Aug-03 7:18
devvvy23-Aug-03 7:18 
GeneralA very challenging problem Pin
gaurav_verma723-Aug-03 2:37
gaurav_verma723-Aug-03 2:37 
GeneralRe: A very challenging problem Pin
leppie23-Aug-03 8:50
leppie23-Aug-03 8:50 
GeneralRe: A very challenging problem Pin
Tom Archer25-Aug-03 15:05
Tom Archer25-Aug-03 15:05 
GeneralRe: A very challenging problem Pin
leppie26-Aug-03 7:08
leppie26-Aug-03 7:08 

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.