?
Solved

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

Posted on 2003-03-07
4
Medium Priority
?
170 Views
Last Modified: 2013-11-20
How can i access .NET namespaces in Visual C++?

Thanks in advance
0
Comment
Question by:faad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Expert Comment

by:FrostBite
ID: 8089940
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
 

Accepted Solution

by:
modulo earned 0 total points
ID: 11812411
PAQed - no points refunded (of 25)

modulo
Community Support Moderator
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question