Jump to content

  • Log In with Google      Sign In   
  • Create Account

VanillaSnake

Member Since 27 Mar 2006
Offline Last Active Yesterday, 09:03 PM

Posts I've Made

In Topic: How to set a namespace properly in this case?

Yesterday, 09:05 PM

I'll keep that in mind, now that I moved to a static lib I just got rid of the namespaces all together, so the only place I have the name of the game is actually just in the file title, nowhere in code. But thanks, your structure is working out just fine for me.


In Topic: How to set a namespace properly in this case?

Yesterday, 11:06 AM

Thank you all for your help. I was under the impression that the code needs to be settled to export it, but I just moved everything over to a library and it works beautifully. Thanks )) By the way I copied SOL's project structure, hope he doesn't mind  :P


In Topic: Virtual functions are not called from a static library

Yesterday, 11:01 AM

Ok got it working, it turns out I the visibility was turned off for some reason, so it wasn't calling draw. Hehe sorry.


In Topic: Virtual functions are not called from a static library

30 May 2016 - 08:40 PM

Moving code into a lib shouldn't affect your virtual functions at all. Try setting a breakpoint right before your Draw function gets called, and step into the call to see what happens / where it goes (in visual studio, F9 to set a breakpoint, F10 for "step over", F11 for "step into").

 

Right before, fine it hits it. Break point inside the Draw function misses.


In Topic: How to set a namespace properly in this case?

30 May 2016 - 12:18 PM

 

A static lib I could build of course, but my core code does change once in a while. That would be something I do once I have everything really stable.

 

 

 
That's fine; just create a .vxcproj that builds the static library and include that project in your solution as well. You may find this guide on MSDN useful for getting set up.

 

 

 

I don't want to create a library yet since my code is still changing, but I do plan on doing that once it settles. I just wanted to know how to reference the base code. It's ok I'm looking it up right now though. Thank you for pointing me in the right direction.

 

edit: Sorry, I could not find any guides on how to do that. I found a thread on stackoverflow, people just say use "Add Existing Item"? Is that the only way? That would be really long a tedious, I have about 5 core files. It really wouldn't make sense for me to change from my current situation. I thought you meant there was a way to pick a .vcxproj file as a whole for reference.


PARTNERS