473,233 Members | 1,376 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,233 software developers and data experts.

compilling a c++ program

Hello,
I wish to do the simplest thing in Visual Studio.net. I wish to
compile a "hello world" C++ program. I just installed .net and have
experience as a programmer but the framework is so large and abstract
I am having trouble getting started. Can anyone help? Thank you. Joe
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Jul 21 '05 #1
5 1127
Within Help, Index - type in compiler or "cl.exe" - should give you what you
need to know and more.

--
Star Fleet Admiral Q @ your service!
"Google is your Friend!"
www.google.com

***********************************************

"boksi" <jo*****@kmmnet-dot-com.no-spam.invalid> wrote in message
news:42********@127.0.0.1...
Hello,
I wish to do the simplest thing in Visual Studio.net. I wish to
compile a "hello world" C++ program. I just installed .net and have
experience as a programmer but the framework is so large and abstract
I am having trouble getting started. Can anyone help? Thank you. Joe
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Jul 21 '05 #2
Joe... The wizard builds a hello world program for you if select new
Project --> Visual C++ Project --> Console Application. The string
appears and the console closes. To stop the console add a call to
Console::ReadLine().

#include "stdafx.h"

#using <mscorlib.dll>

using namespace System;

int _tmain()
{
// TODO: Please replace the sample code below with your own.
Console::WriteLine(S"Hello World");
Console::ReadLine(); //<-- add this
return 0;
}

http://msdn.microsoft.com/library/de...rl=/library/en
us/cptutorials/html/hello_world_in_managed_extensions_for_c__.asp

Regards,
Jeff
I wish to do the simplest thing in Visual Studio.net. I wish to compile
a "hello world" C++ program. I just installed .net and have experience
as a programmer but the framework is so large and abstract I am having
trouble getting started. Can anyone help? Thank you. Joe

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #3
Hello, Thank you both for your reply. The help d.exe explains a lot.
But, Jeff, when I tried to follow your direction I found no console
application in the C++ projects. I did find a console application in
the C# projects. I am groping, sorry, what am I doing wrong? Joe
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Jul 21 '05 #4
Bobski... Perhaps I am using a different version. I have VS Pro 2003.
You should be able to create an empty project, add a new item a C++
class file and just paste in the code I posted.

Regards,
Jeff
But, Jeff, when I tried to follow your direction I found no console
application in the C++ projects.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #5
Hi Jeff,
Thank you for your reply. I will follow your direction. Joe
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Jul 21 '05 #6

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

Similar topics

22
by: edgrsprj | last post by:
PROPOSED EARTHQUAKE FORECASTING COMPUTER PROGRAM DEVELOPMENT EFFORT Posted July 11, 2005 My main earthquake forecasting Web page is: http://www.freewebz.com/eq-forecasting/Data.html ...
0
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
11
by: christopher diggins | last post by:
I am wondering if any can point me to any open-source library with program objects for C++ like there is in Java? I would like to be able to write things like MyProgram1 >> MyProgram2 >>...
1
by: Eric Whittaker | last post by:
hi all, im trying to write my first c++ program. a success, but i can't get the window to stay open after user enters input. it just automatically closes. right now the end of my program looks...
3
by: bissatch | last post by:
Hi I am considering compilling a list of XHTML complient websites that can be fully accessable using a handheld device that relies on standard coding. Does anybody know if such a directory...
5
by: boksi | last post by:
Hello, I wish to do the simplest thing in Visual Studio.net. I wish to compile a "hello world" C++ program. I just installed .net and have experience as a programmer but the framework is so large...
6
by: pkochanek | last post by:
Hi, my program is using both allegro.h and windows.h, but during compilling it i'm getting a lot of errors like "conflicts with previous declaration typedef struct BITMAP BITMAP". Problem is...
9
by: Hemal | last post by:
Hi All, I need to know the memory required by a c program. Is there any tool/utility which can give me the memory usage in terms of DATA segment, TEXT segment, BSS segment etc. I am working...
7
by: ibtc209 | last post by:
I just started programming in C, and I need some help with this problem. Your program will read the information about one MiniPoker hand, namely the rank and suit of the handís first card, and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.