yeah, it's what at thought at first, but finally, nothing indicated he want to use MessageBox::Show() above all.
i think much that he doesn't really know what he does, and is a little lost with all the existing APIs. maybe he say somewhere on the internet that MessageBox::Show() existed, thinking that it would work in every situation. though, when he asked me what Managed C++ was, it became obvious that he was absolutely not aware of the difference between managed and unmanaged code, and lesser what mixed code could be...
Perhaps, it's so. Let him ask a clearer question on the VC++ forum if he wants to. Let this thread remain here, so people will know how to use MessageBox::Show in a mixed mode app. Helps to improve search results.
Yup! I'm absolutly confused!
I have no clue what so ever what I'm doing when it comes to GUI design with Visual Studio.
I've been taught how to do console type design using emacs and compiling it with gcc but I've never used visual studio b4.
I'm sorry I'm asking so pretty dumb questions, it's just that there's no simple getting started with gui book.
I'm still trying to figure out MFC vs. windows form. I know with the windows form you can add dialogs and controls. With MFC it gives you a project whether it's MDI or SDI you choose but you also have the option to change the base class to CFormVew and then you can play with the dialog that way. Other wise I don't know how else to add dialogs and controls to and MFC...
I seem to have a problem using the DataGrid/DataGridView within a MFC dialog (using the CWinFormsControl< > template).
I create a DataSet from a Xml file and then set it to the DataSource. I also set the DataMember to the appropriate table name, but nothing is displayed in the grid view. I tried other various approaches, but nothing seems to work.
I have no problem setting this up in WinForms - it just won't display in MFC. I know the data's there because I can actually step right into it from the DataGrid object - it just won't display - the ColumnCount is still 0.
What's the problem? Has anyone else experienced this? If so, has anyone found a way around this?
If this question is about "is it easy to use them", the answer is yes. As most C# controls are compiled into assemblies(DLLs), you should be able to use them in your C++ applications with no or little problems.
If your question is about copyright, consult with the author or CP staff about terms and conditions.
Hello everybody, I am a newcomer and I would like to ask:
What is the relation between MFC and C++/CLI?
At first I was interested in MFC but I figured out that programming with C++/CLI is a lot easier.Is it necessary to learn MFC to make a decent application?Can I use both MFC and C++/CLI to make a programm, or there are other C++/CLI libraries that I can use instead of MFC?
There really isn't any relation between the two. Depending on how you look at it, but MFC is a class library that wraps up Win32 API. Also, it is a Windows programming model that supports document-view architecture. On the other hand, C++/CLI is the CLI extension of C++; it is a language. The .NET Framework 2.0 built on C++/CLI has provided some libraries, but it doesn't have any mature architecture yet (as MFC does).
Is it necessary to learn MFC to make a decent application?
No, you can build decent applications without MFC.
Can I use both MFC and C++/CLI to make a programm,
To some degree, yes, but it usually creates unnecessary complexity.
or there are other C++/CLI libraries that I can use instead of MFC?
.NET Framework does have such libraries as GDI+, DirectX, etc. It also has primitive event model to help. However, .NET Framework lacks a Window programming model/architecture like MFC yet. At the current state, .NET has barely set up a generic programming model, but it evolves quickly. I expect to see more support from future versions of .NET.
If you look at the top of your program window, there is an icon, and the window title. I am trying to set that icon for my program, but I have not been able to find out how to do it. I have tried various solutions and they have not worked, so if anyone could point me in the right direction it would be most appreciated.
-- modified at 17:37 Thursday 8th June, 2006
 I have got the icon on the title bar of my program now working, but when I look at the program's .exe file, The icon which is displayed there has not changed. Does anyone know of a way to change that icon? Thanks [/edit]
-- modified at 11:12 Friday 9th June, 2006
[clarification] I am programming using managed c++.net and I am not programming using a windows form application [/clarification]
Last Visit: 11-Aug-20 9:10 Last Update: 11-Aug-20 9:10