CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2012
    Location
    Cochin, India
    Posts
    8

    Question Visual C++ and Dev C++

    Hi!!
    Im new in windows programming. Someone please tell me whats the main difference between programming in visual c++ to that in dev c++. I compiled a simple windows program that pop ups a dialog box, in both dev c++ and visual c++. The output of visual c++ was perfect. When I run the program in dev c++, the dialog box came with a console window. Is this the difference? Please help.. Thanks in advance
    ashik thomas

  2. #2
    Join Date
    May 2009
    Posts
    2,413

    Re: Visual C++ and Dev C++

    Quote Originally Posted by ashikthomas View Post
    Hi!!
    Im new in windows programming. Someone please tell me whats the main difference between programming in visual c++ to that in dev c++. I compiled a simple windows program that pop ups a dialog box, in both dev c++ and visual c++. The output of visual c++ was perfect. When I run the program in dev c++, the dialog box came with a console window. Is this the difference? Please help.. Thanks in advance
    ashik thomas
    Both are so called IDEs (Integrated Development Environments). Visual C++ is targeted towards Windows developments and Dev C++ supports Windows developments. In principle you should be able to use any of these and arrive at a Windows application with exactly the same look & feel (other parameters such as speed and size may vary somewhat because the IDEs use different compilers).

    The difference you report most likely is just a question of usage. With the right settings you should be able to arrive at the same result on both IDEs.

    There is one thing though. Dev C++ doesn't seem to be actively developed anymore. So in my opinion it's better to use Visual C++ (or find an alternative other than Dev C++).

  3. #3
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,633

    Re: Visual C++ and Dev C++

    Quote Originally Posted by ashikthomas View Post
    Hi!!
    Im new in windows programming. Someone please tell me whats the main difference between programming in visual c++ to that in dev c++. I compiled a simple windows program that pop ups a dialog box, in both dev c++ and visual c++. The output of visual c++ was perfect. When I run the program in dev c++, the dialog box came with a console window. Is this the difference?
    There is no difference in programming, I believe. As the issue's root cause most probably and very likely is project setup. If you setup your project to build console exe, the console is invariably created. Please inspect your DevC++ project settings.
    Best regards,
    Igor

  4. #4
    Join Date
    Jan 2012
    Location
    Cochin, India
    Posts
    8

    Resolved solved!!

    thanks a lot

    Where i went wrong was actually i copied the 12 line code to a new FILE->NEW->Source and compiled it instead of starting a new Windows Application Project. That was why I got the console window displayed along with the output.

    thanks
    ashikthomas

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured