I have several projects for a single application. I want to access from project A to some class in project B. How do I do that? How do I let the code know the paths etc?
How to access to a different project in VS2003?
Collapse
X
-
HI..
if i understand your question you have more than 1 method, if you have muliple projects use same classes you can
1.create separated "Dynamic Link Library" DLL File and your classes will be COM Classes and you can use it anywhere.
2.just include same sources .cpp files and headers .h files with all projects that use these classes.
Best Regards -
Use AHMEDYO choice #2.
Any time you add a source file to a Visual Studio project, the file is not copied or duplicated. Therefore, bith projects will use the same source file.
This is a poor man's library but it will work for small projects and classroom assignments. For industrial code, follow AHMEDYO choice #1.Comment
Comment