Page 1 of 1

Referencing Project

Posted: Sun Oct 11, 2009 1:57 pm
by thejahooli
How can you reference a separate project so that you can use that projects classes within another project. I want to have my game engine separate from the game i'm making and I need to be able to access the engine's code.

I am using C++ and Visual Studio.

Re: Referencing Project

Posted: Sun Oct 11, 2009 2:44 pm
by andrew
What you want to do is build a library.
http://stackoverflow.com/questions/9270 ... e-to-start

If you've never built a library before you might try to build an easy one like zlib or something.

Now that you know what to look for you should be able to find a tutorial to actually show you how to do it.

Re: Referencing Project

Posted: Sun Oct 11, 2009 4:35 pm
by thejahooli
Thanks. All I needed was a push in the right direction so I can probably research it myself. For anyone interested I found what looks like (I haven't read it fully yet) a good guide on the microsoft website http://msdn.microsoft.com/en-us/library ... S.80).aspx