# How to use C++ with .NET framework (C++/CLI)
###### tags: `C/C++`
:::info
If you want to use C++ on .NET framework, you can follow the steps in this article.
:::
[ToC]
## :memo: Where do I start?
### Step 1: Prerequisite Tools
- [x] Visual studio IDE
### Step 2: Create a new CLR project
:::info
If don't find CLR project, it might be some c++ cli extension do not install.
:::
### Step 3: Add New Item
>Select `CLR - Windows Form`
### Step 4: Setting project properties
- Configuration Properties > Linker > System
>**SubSystem** select `WINDOWS(/SUBSYSTEM:WINDOWS)`
- Configuration Properties > Linker > Advanced
>**Entry Point** type `main`
### Step 5: Open .cpp file and paste it in
```C++=1
using namespace System;
using namespace System::Windows::Forms;
[STAThread]
void main(array<String^>^ args) {
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
// Project1 is project name
// MyForm is Form.h name
Project1::MyForm form;
Application::Run(% form);
}
```
### Step 6: Unload and reload project will find it work!
---
## Reference
- Youtube ➜ [c++ empty CLR Windows Form visual studio 2017 RC](https://www.youtube.com/watch?v=urhbIfR9Beo)