0
votes

I recently installed the CLR package for Visual C++ and am making my first GUI. For some reason System is not showing all of the options that it has in the past. There are red lines under everything after System::* with similar errors. Here is the start to my header file.

#pragma once


namespace Form1 {
using namespace System;
using namespace System::Windows;
using namespace System::ComponentModel;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;

While searching for a solution I found this thread, and followed the steps

Set Common Language RunTime Support to be "Common Language RunTime Support (/clr)" in 2 places in your project properties : Configuration Properties -> General Configuration Properties -> C/C++ -> General

But that was already the default. Any suggestions?

1
Is there any header to include for such thing?Antoine Morrier

1 Answers

3
votes

Try add these references by :

Go to Project > References > Common Properties > Framework and References

Click Add New References... button

Under Assemblies -> Frameworks check System."Your needs" and click ok.