Solved

how to use class from other project

Posted on 2004-03-30
2
172 Views
Last Modified: 2010-04-01
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
Comment
Question by:leork2004
2 Comments
 
LVL 86

Assisted Solution

by:jkr
jkr earned 250 total points
ID: 10715114
>>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
 
LVL 14

Accepted Solution

by:
wayside earned 250 total points
ID: 10715118
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

760 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now