Visual C++ .NET/Statement/using

Материал из .Net Framework эксперт
Перейти к: навигация, поиск

using directive

<source lang="csharp">

  1. include "stdafx.h"
  2. using "System.Windows.Forms.dll"

using namespace System::Windows::Forms; int main() {

  MessageBox::Show("Hello World!");

}

 </source>


using dll

<source lang="csharp">

  1. include "stdafx.h"
  2. using "System.Windows.Forms.dll"

int main() {

  System::Windows::Forms::MessageBox::Show("Hello World!");

}

 </source>