visual studio .net professional / C++

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • grahamo

    #1

    visual studio .net professional / C++

    Hi,

    I've got an eval version of the above product and am trying to build regular C++ applications. I am not sure if I am doing things correctly though.I would like to build regular C++ apps that will be portable. Therefore I don't want to use features like precompiled headers, windows specific features etc. When I create a new windows console app however, I see things like;

    int _tmain(int argc, _TCHAR* argv[])

    defined as the entry point. I would rather this be the regular C++

    int main(int argc, char* argv[])


    i.e. I would like to be able to build c++ apps the same way I did witht he old visual studio product. Am I correct in thinking I can do this with visual studio.net or do I need to download/install another product?

    thanks for any help.

    cheers

    Graham

  • Cowboy \(Gregory A. Beamer\) [MVP]

    #2
    Re: visual studio .net professional / C++

    You do not have to create managed applications in Visual Studio .NET when
    you use C++ as your language. You can use completely unmanaged code,
    depending on the project template you start with (or how much hacking you
    like to do). For Windows, you still have the ability to work with MFC and
    ATL application templates, although you can go even more generic than this.
    As long as you shy away from the .NET project templates, you have quite a
    bit of freedom with C++.

    --
    Gregory A. Beamer
    MVP; MCP: +I, SE, SD, DBA

    *************** *************** *************** ***
    Think Outside the Box!
    *************** *************** *************** ***
    "grahamo" <grahamo@discus sions.microsoft .com> wrote in message
    news:48DE0A56-7145-4919-B16C-BFE605206B97@mi crosoft.com...[color=blue]
    > Hi,
    >
    > I've got an eval version of the above product and am trying to build[/color]
    regular C++ applications. I am not sure if I am doing things correctly
    though.I would like to build regular C++ apps that will be portable.
    Therefore I don't want to use features like precompiled headers, windows
    specific features etc. When I create a new windows console app however, I
    see things like;[color=blue]
    >
    > int _tmain(int argc, _TCHAR* argv[])
    >
    > defined as the entry point. I would rather this be the regular C++
    >
    > int main(int argc, char* argv[])
    >
    >
    > i.e. I would like to be able to build c++ apps the same way I did witht he[/color]
    old visual studio product. Am I correct in thinking I can do this with
    visual studio.net or do I need to download/install another product?[color=blue]
    >
    > thanks for any help.
    >
    > cheers
    >
    > Graham
    >[/color]


    Comment

    • Andrew Faust

      #3
      Re: visual studio .net professional / C++


      "grahamo" <grahamo@discus sions.microsoft .com> wrote in message
      news:48DE0A56-7145-4919-B16C-BFE605206B97@mi crosoft.com...[color=blue]
      > Hi,
      >
      > I've got an eval version of the above product and am trying to[/color]
      build regular C++ applications. I am not sure if I am doing
      things correctly though.I would like to build regular C++ apps
      that will be portable. Therefore I don't want to use features
      like precompiled headers, windows specific features etc. When I
      create a new windows console app however, I see things like;[color=blue]
      >
      > int _tmain(int argc, _TCHAR* argv[])[/color]

      When you create the console app, under the project settings tell
      it that you want to have an empty project. If you do so the IDE
      won't add any windows specific files. You can then add a new .cpp
      file and create your main function by hand.
      [color=blue]
      > i.e. I would like to be able to build c++ apps the same way I[/color]
      did witht he old visual studio product. Am I correct in thinking
      I can do this with visual studio.net or do I need to
      download/install another product?

      Visual Studio.NET retains all the support for writing straight
      C++ code. In fact with .NET's version of C++ it is more ANSI
      compliant than previous versions of Visual Studio, meaning
      writing cross platform applications should be even easier.

      Andrew Faust


      Comment

      Working...