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

Managed C++/CLI

 
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 
I'm assuming that you are new to .NET. The syntax can be confusing when you first begin, because it is quite different from the familiar Win32.
In re-reading your original post, I noticed that you defined the SimpleForm constructor outside the class definition; you should move that into the class definition. You can view sample Winforms code that accompanies your .NET Framework install (or download the latest from the MSDN site), it's very helpful, and will show you the standard approach.
If you use the old Win32 and MFC header files in your application, you must also have the corresponding LIB files available to the compiler's search path (this is not the default setting for the Visual C++ .NET compiler when an application is compiled with the /clr switch). It's better, though, to use the System.Runtime.InteropServices [DllImport] attribute with the system DLL (user32.dll) as a parameter to import just the functions you need for your project.
Interop can be confusing initially, you might want to read up on the concepts involved:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconconsumingunmanageddllfunctions.asp[^]
Also, there is good sample code on Interop (or PlatformInvoke) included with your .NET Framework SDK.
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 
GeneralRe: 3 occurences of error C2039 Pin
toxcct5-Jun-05 3:33
toxcct5-Jun-05 3:33 
GeneralRe: 3 occurences of error C2039 Pin
joseph19506-Jun-05 2:52
joseph19506-Jun-05 2:52 
GeneralRe: 3 occurences of error C2039 Pin
toxcct6-Jun-05 2:57
toxcct6-Jun-05 2:57 
GeneralRe: 3 occurences of error C2039 Pin
joseph19506-Jun-05 7:38
joseph19506-Jun-05 7:38 
Generalremoving variable Pin
joseph19503-Jun-05 2:56
joseph19503-Jun-05 2:56 
GeneralRe: removing variable Pin
toxcct3-Jun-05 3:33
toxcct3-Jun-05 3:33 
GeneralRe: removing variable Pin
joseph19503-Jun-05 4:15
joseph19503-Jun-05 4:15 
GeneralLabel Text problems Pin
Hmmkk2-Jun-05 8:34
Hmmkk2-Jun-05 8:34 
GeneralRe: Label Text problems Pin
Christian Graus2-Jun-05 10:02
protectorChristian Graus2-Jun-05 10:02 
GeneralRe: Label Text problems Pin
Hmmkk2-Jun-05 10:25
Hmmkk2-Jun-05 10:25 
GeneralRe: Label Text problems Pin
Christian Graus2-Jun-05 10:30
protectorChristian Graus2-Jun-05 10:30 
GeneralRe: Label Text problems Pin
Hmmkk2-Jun-05 10:38
Hmmkk2-Jun-05 10:38 
GeneralRe: Label Text problems Pin
Christian Graus2-Jun-05 10:46
protectorChristian Graus2-Jun-05 10:46 
GeneralRe: Label Text problems Pin
Hmmkk2-Jun-05 10:48
Hmmkk2-Jun-05 10:48 

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.