Solved

how to use class from other project

Posted on 2004-03-30
2
173 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MSVCR80.dll crash 2 134
Quicksort a dynamic deque 33 66
Eclipse IDE - Cannot copy/paste from console output 8 132
max float value 3 26
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++.

863 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

23 Experts available now in Live!

Get 1:1 Help Now