visual studio .net professional / C++

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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 said:
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?
 
grahamo said:
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[])

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.
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?

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
 
Back
Top