Solved

how to use class from other project

Posted on 2004-03-30
2
177 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

696 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