Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 182
  • Last Modified:

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

   
 
0
leork2004
Asked:
leork2004
2 Solutions
 
jkrCommented:
>>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
 
waysideCommented:
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

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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