Lỗi không có win32 console application visual studio 2023 năm 2024

I'm afraid you didn't install Desktop development with C++ correctly. Please follow the steps below to install Desktop development with C++.

1. You need to check it in your Start first. Click the Visual Studio Installer in your Start.

2.Then the installation window will pop up. Click the Modify to install Desktop development with C++.

3.Make sure the options in the picture are selected.

4.After clicking the "Modify" button at the bottom right, it will install Desktop development with C++. After the installation, the C++ console App will appear .

If there are any questions,please feel free to ask me.

Best regards,

Minxin Yu

If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Hãy nâng cấp lên Microsoft Edge để tận dụng các tính năng mới nhất, bản cập nhật bảo mật và hỗ trợ kỹ thuật.

Console apps in .NET

  • Bài viết
  • 09/15/2021

Trong bài viết này

.NET applications can use the System.Console class to read characters from and write characters to the console. Data from the console is read from the standard input stream, data to the console is written to the standard output stream, and error data to the console is written to the standard error output stream. These streams are automatically associated with the console when the application starts and are presented as the In, Out, and Error properties, respectively.

The value of the Console.In property is a System.IO.TextReader object, whereas the values of the Console.Out and Console.Error properties are System.IO.TextWriter objects. You can associate these properties with streams that do not represent the console, making it possible for you to point the stream to a different location for input or output. For example, you can redirect the output to a file by setting the Console.Out property to a System.IO.StreamWriter, which encapsulates a System.IO.FileStream by means of the Console.SetOut method. The Console.In and Console.Out properties do not need to refer to the same stream.

Note

For more information about building console applications, including examples in C#, Visual Basic, and C++, see the documentation for the Console class.

If the console does not exist, for example, in a Windows Forms application, output written to the standard output stream will not be visible, because there is no console to write the information to. Writing information to an inaccessible console does not cause an exception to be raised. [You can always change the application type to Console Application, for example, in the project property pages in Visual Studio].

The System.Console class has methods that can read individual characters or entire lines from the console. Other methods convert data and format strings, and then write the formatted strings to the console. For more information on formatting strings, see Formatting types.

Tip

Console applications lack a message pump that starts by default. Therefore, console calls to Microsoft Win32 timers might fail.

Sau một thời gian nghiên cứu quyển Beginning Game Programming thì e bắt đầu công việc của mình là viết 1 vài đoạn code đơn giản dựa theo quyển sách đó. Hôm nay, mồng 3 tết em mỡ VS 2012 lên thì mới biết là e tạo project Win32Project không được, tiếp theo e tạo thử Win32ConsoleApplication thì vẫn không được. Sau đó e nghĩ ra cách là Repair xem thế nào, thì kết quả vẫn là không tạo được.

Mọi người giúp e với, tại sao không thể tạo được Project ạ?

  • Phạm Văn Quý
  • Join Date: Aug 2011
  • Posts: 131

    Comment

  • Lê Tấn Vũ Khanh
  • Join Date: Aug 2012
  • Posts: 283

    không báo lỗi gì cả, mà e New Project > Win32ConsoleApplication hoặc Win32Project xong thì không có hiện lên cái bảng gì hết, cứ start page hoài thế à

    Comment

  • Lê Trung Nhật
  • Join Date: Aug 2012
  • Posts: 77

    Mình cũng từng bị giống bạn . Sửa cả tuần ko đc nên phải cài lại HĐH hoàn toàn

    Bây giờ thì chưa gặp lại lỗi đó nữa . Dù mình thử refresh hay recovery cũng ko đc '__'

    Comment

  • Phạm Văn Quý
  • Join Date: Aug 2011
  • Posts: 131

    Originally posted by 12520191 không báo lỗi gì cả, mà e New Project > Win32ConsoleApplication hoặc Win32Project xong thì không có hiện lên cái bảng gì hết, cứ start page hoài thế à Thử cài lại xem. A toàn chơi chiêu đó.

    Comment

  • Lê Tấn Vũ Khanh
  • Join Date: Aug 2012
  • Posts: 283

    Comment

  • Lê Tấn Vũ Khanh
  • Join Date: Aug 2012
  • Posts: 283

    hehe, tình hình là sau khi e cài lại khi tạo project thì vẫn ko đc, no để ở dòng dưới là project creation failed. hjx, phải làm thế nào

    Comment

  • Phạm Văn Quý
  • Join Date: Aug 2011
  • Posts: 131

    Originally posted by 12520191 hehe, tình hình là sau khi e cài lại khi tạo project thì vẫn ko đc, no để ở dòng dưới là project creation failed. hjx, phải làm thế nào Bạn đã xóa hết config của nó chưa?

    Comment

  • Lâm Thanh Cường
  • Join Date: May 2011
  • Posts: 100 Lỗi này lúc trước mình cũng gặp đối với phiên bản Visual Studio 2008 cài trên Windows 7 x64. Nó có thông báo là tạo project không thành công dưới thanh status bar. Đã đọc và thử rất nhiều cách mà vẫn không tạo được project. Tuy nhiên nếu bạn tạo một project từ máy khác rồi copy qua thì hoàn toàn có thể build được. :love:

Chủ Đề