PC Review


Reply
Thread Tools Rate Thread

compilling a c++ program

 
 
boksi
Guest
Posts: n/a
 
      1st Mar 2005
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
 
Reply With Quote
 
 
 
 
Admiral Q
Guest
Posts: n/a
 
      2nd Mar 2005
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" <(E-Mail Removed)> wrote in message
news:4224e074_2@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



 
Reply With Quote
 
Jeff Louie
Guest
Posts: n/a
 
      2nd Mar 2005
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!
 
Reply With Quote
 
boksi
Guest
Posts: n/a
 
      2nd Mar 2005
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
 
Reply With Quote
 
Jeff Louie
Guest
Posts: n/a
 
      3rd Mar 2005
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!
 
Reply With Quote
 
boksi
Guest
Posts: n/a
 
      3rd Mar 2005
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Uninstalled Program, but Program Name Remains in Program & Featur kuyarog Windows Vista General Discussion 3 2nd Dec 2007 12:26 AM
Compilling a DLL in VB6 to Common Files =?Utf-8?B?QW1ub24gUmFwb3BvcnQ=?= Windows Vista Administration 8 13th Sep 2006 08:48 AM
Help. I am creating a Program for college, in which the Program will read a Folder and create a HTML page. Paul Microsoft VB .NET 5 15th Jul 2005 03:04 AM
"fatal error CS0042" occur while compilling project David zhu Microsoft ASP .NET 1 19th Aug 2004 10:46 AM
my program won't work on computer without framework, dow do i make a program that runs on every windows 2k/xp system ? bart Microsoft C# .NET 11 26th Jan 2004 05:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:03 PM.