• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 181
  • Last Modified:

How can i access .NET namespaces in Visual C++?

How can i access .NET namespaces in Visual C++?

Thanks in advance
0
faad
Asked:
faad
1 Solution
 
FrostBiteCommented:
You have to include the file containing the namespace you would like to include.  For example, to use System and System.Windows.Forms consider this:

#include <mscorlib.dll>

//Required winforms dlls
#using "System.dll"
#using "System.Windows.Forms.dll"
#using "System.Drawing.dll"

//namespaces
using namespace System;
using namespace System::Windows::Forms;
using namespace System::Drawing;


////////////////////////////////////////////////////

hth,
Andrew
0
 
moduloCommented:
PAQed - no points refunded (of 25)

modulo
Community Support Moderator
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now