Referencing Project

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
thejahooli
Chaos Rift Junior
Chaos Rift Junior
Posts: 265
Joined: Fri Feb 20, 2009 7:45 pm
Location: London, England

Referencing Project

Post 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.
I'll make your software hardware.
andrew
Chaos Rift Regular
Chaos Rift Regular
Posts: 121
Joined: Mon Dec 08, 2008 2:12 pm

Re: Referencing Project

Post 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.
User avatar
thejahooli
Chaos Rift Junior
Chaos Rift Junior
Posts: 265
Joined: Fri Feb 20, 2009 7:45 pm
Location: London, England

Re: Referencing Project

Post 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
I'll make your software hardware.
Post Reply