473,405 Members | 2,279 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,405 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 1701
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.