Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CDialog in C++.Net

CDialog in C++.Net

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpvisual-studiotutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pnpfriend
    wrote on last edited by
    #1

    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?

    S 1 Reply Last reply
    0
    • P pnpfriend

      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?

      S Offline
      S Offline
      Signal 9
      wrote on last edited by
      #2

      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.

      V 1 Reply Last reply
      0
      • S Signal 9

        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.

        V Offline
        V Offline
        venura c p w goonatillake
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups