Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6695631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:14:42+00:00 2026-05-26T06:14:42+00:00

I have a simple Win32 console (no vcl) app written in Borland C++ 5,

  • 0

I have a simple Win32 console (no vcl) app written in Borland C++ 5, now I want compile the same application in VS 2010. but I’m new using this IDE and I don’t know how run the code in VS. I tried choosing Win32 Console Application. but even i very simple app like this

#include <iostream.h>
#pragma hdrstop

#pragma argsused
int main(int argc, char* argv[])
{
    cout << "Hello" << endl;
    getchar();
    return 0;
}

does not compile in VS.

So, What kind of VS 2010 C++ Project I must choose to compile a simple Borland C++ 5 Console app? or I need modify my app in order to use VS C++?

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:14:42+00:00Added an answer on May 26, 2026 at 6:14 am

    <iostream.h> is deprecated, and VS10 does not support it, use <iostream> instead, and you’ll also need std::cout, std::endl , etc.. i.e.

    #include <iostream>    
    #pragma hdrstop
    
    // #pragma argsused // I don't believe this is valid in VS10
    
    int main(int argc, char* argv[])
    {
        std::cout << "Hello" << std::endl;
        std::cin.get();
        return 0;
    }
    

    Alternatively, if you don’t want to prefix your library uses with std::, you can put a using declaration at the top, after the headers:

    using namespace std;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple udp listener written in c++ using win32 when I compile
I have compiled a simple win32 app successfully with bc++ (2 lines excerpt only):
I have a very simple Win32 application that uses CAtlExeModuleT. The module simply creates
I have a requirement to modify a simple windows service written in win32 C
I have Visual Studio 2010 with SP1 installed. I want to create a simple
I have a simple win32 application that uses the createProcess method to call Qt
I have a small Win32 console application which is essentially a test harness. I
I have a basic Win32 console app that makes a call to a named
I have written a simple single threaded client server application in Visual C++ .
I have created a simple win 32 application..in which it has a textbox and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.