Walkthrough: Deploying a Visual C++ Application to an Application-local Folder
Describes how to deploy a Visual C++ application by copying files to its folder.
Prerequisites
A computer that has Visual Studio installed.
Another computer that doesn't have the Visual C++ libraries.
To deploy an application to an application-local folder
Create and build an MFC application by following the steps in Walkthrough: Deploying a Visual C++ Application By Using a Setup Project.
Copy the appropriate MFC and C Run-Time (CRT) library files from the Visual Studio installation directory in the \VC\redist\version folder, and then paste them in the \Release\ folder of your MFC project. For more information about other files that you might have to copy, see Determining Which DLLs to Redistribute.
Run the MFC application on a second computer that doesn't have the Visual C++ libraries.
Copy the contents of the \Release\ folder and paste them in the application folder on the second computer.
Run the application on the second computer.
The application runs successfully because the Visual C++ libraries are available in the application-local folder.
See also
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho