CDialog in C++.Net
-
Hi, Can I use CDialog in C++.Net? First of all, I'm totally brand new in c++.net. I just started using Managed Extension C++. But I want to change my old C++ project to C++.Net Application. I dont' really know how to move from Regular C++ to C++.Net. I was using VS.Net and writing the code. So I created new C++.Net project. (by going to New Project, Visual C++ Project, and .Net Folder and create an empty project.) After that, I add new resource, Dialog. Then I create the class for that dialog, but it didnt' get created. I was doing the same way as I usually do in Regular C++ with VS.Net. Insert new Dialog, double click on the dialog, enter the class name, click ok. That's all what I did and why didnt' the class get created? It is C++.Net doesnt' allow to add resource Dialog but Form?
-
Hi, Can I use CDialog in C++.Net? First of all, I'm totally brand new in c++.net. I just started using Managed Extension C++. But I want to change my old C++ project to C++.Net Application. I dont' really know how to move from Regular C++ to C++.Net. I was using VS.Net and writing the code. So I created new C++.Net project. (by going to New Project, Visual C++ Project, and .Net Folder and create an empty project.) After that, I add new resource, Dialog. Then I create the class for that dialog, but it didnt' get created. I was doing the same way as I usually do in Regular C++ with VS.Net. Insert new Dialog, double click on the dialog, enter the class name, click ok. That's all what I did and why didnt' the class get created? It is C++.Net doesnt' allow to add resource Dialog but Form?
no you cant. The event handler is totally different (the way it is coded). Managed code is different than native C++ code. I suggest buying a Visual C++ .Net book. Microsoft Press has one for cheap and im sure your local book store has tons. It will take you a little bit to get used to the .net framework, but once you do it is very good. Although you will still find yourself going back to native code from time to time.
-
no you cant. The event handler is totally different (the way it is coded). Managed code is different than native C++ code. I suggest buying a Visual C++ .Net book. Microsoft Press has one for cheap and im sure your local book store has tons. It will take you a little bit to get used to the .net framework, but once you do it is very good. Although you will still find yourself going back to native code from time to time.
C++ in .NET is realy good than C++ 6, Create your project using class MFC Application wizard. Once you create a Dialog Application, go into your Resouce tab pane and select dialog folder. Right click your dialog folder and click on Insert Dialog. Then you can see your new dialog form. After then Right click on your Dialog Window and click on Add Class option. Then you will come to a form specify your base class as CDialog and give a class name So thats it. Any thing you want submit to me thanks for giving opertunity to help you from venura VENURA GOONATILLAKE, SRI LANKA