how to use class from other project

I have created Activex control Project and also included another project in that.
     In activex control Project I have included the header file from the other Project and declared a pointer  to a class object which is class from  other project
when I intialize that varible the linking error occured as
"error LNK2001: unresolved external symbol "public: __thiscall VSocket::VSocket(void)" (??0VSocketSystem@@QAE@XZ)"

Pls Tell me how to use class from other project
its urgent

   
 
leork2004Asked:
Who is Participating?
 
waysideConnect With a Mentor Commented:
You have to tell your project to link in the code from the other project. Go to the project properties and on the linker->input tab in the dependencies field add the .lib for the other project.
0
 
jkrConnect With a Mentor Commented:
>>Tell me how to use class from other project

You need to either

- add the source code for the class to your new project

- separate the code that has to be shared in a DLL or static lib
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.