views:

300

answers:

2

Hi

i have created a vc++ console application i need to add .net assembly references.

but when i do the following as project right click->properties->Common Properties->references->add references

then i am getting the window as

addrefernce(title)

tabbed window project name and project directory and have empty list

i am unable to find com and .net assemblies. how to resolve this issue.

Thanks in advance

A: 

since u would like to use .net assemblies in c++ it is managed code.so first in project

properties select the oprion common language runtime support and then include mscorlib.dll in

the c++ file. now go to project properties->right click->add refernce-> now it wil shows all

.net libraries for u.

Cute