473,326 Members | 2,110 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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

Jul 21 '05 #1
3 1698
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" <gr*****@discussions.microsoft.com> wrote in message
news:48**********************************@microsof t.com...
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

Jul 21 '05 #2
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" <gr*****@discussions.microsoft.com> wrote in message
news:48**********************************@microsof t.com...
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

Jul 21 '05 #3

"grahamo" <gr*****@discussions.microsoft.com> wrote in message
news:48**********************************@microsof t.com...
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
Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Greg B | last post by:
Created a simple Win32 application (using Visual Studio wizard)... Am using Visual Studio (Enterprise Edition) 6.0, as well as Service Pack 5. At the start of 'WinMain' function, added the...
1
by: Daniel A. Thomas | last post by:
License required Maybe you don't have this but have one of the products that qualifies for the upgrade such as ... Visual Studio .NET 2003 Professional Visual Studio .NET 2003 Professional...
4
by: wASP | last post by:
Hi, I am contemplating the purchase of Microsoft Visual Studio .NET, and I've noticed that the prices range anywhere from $200 to $600 USD:...
4
by: Ben Kim | last post by:
Hello all, I have VS 2005 and SQL 2005 installed on my machine. However the "Getting Started" area of the Start Page shows SQL information instead of Visual Studio information when I start up...
18
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
8
by: WT | last post by:
Is it normal that Visual Studio sets the PreInit handler for a Page from the OnInit code ? No chance to fire it as OnPreInit is run befor OnInit. ??? CS
1
by: Dr T | last post by:
Hi! I downloaded MS Visual Web Developer 2005 Express Edition, MS .NET Framework SDK v2.0, and MS SQL Server 2005. Subsequently, I bought MS Visual Studio 2005 Professional Edition. 1) Are...
5
by: shapper | last post by:
Hello, Does anyone knows what is the difference between Microsoft Visual Studio 2008 Team Foundation Server and Microsoft Visual Studio 2008 Professional? Thanks, Miguel
3
harshadd
by: harshadd | last post by:
Visual Studio .NET Professional 2003 Can any 1 give me details of "Visual Studio .NET Professional 2003" this products contents? I mean if I have purchased "Visual Studio .NET Professional 2003"...
2
by: Cramer | last post by:
So, what is the relationship between Visual Studio and Visual Web Developer. I find a lot of documentation on MSDN that presents Visual Web Developer as it's own stand-alone product (which I'd...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.