Jump to content

  • Log In with Google      Sign In   
  • Create Account

DoctorGlow

Member Since 17 Jan 2010
Offline Last Active Today, 05:42 PM

Posts I've Made

In Topic: Would you try a language if all you had to do was install a Visual Studio ext...

17 September 2016 - 11:54 AM

It's no fun having to restart a huge solution with tens of projects, losing all the tabs you had open
I use 2013 and 2015 and both of them preserve tabs when I restart.

In Topic: Game works when built in the IDE, but crashes when I run it from the .exe file.

16 September 2016 - 09:25 PM

All those crazy segfaults, only because of image convertion done wrong by DevIL.

 

There you go again, blaming tools <_<


In Topic: Game Programmer - Portfolio Feedback

13 September 2016 - 07:40 PM

+1 Josh Petrie about the 3d screenshosts.


In Topic: C++ what is in string after std::istreambuf_iterator< char >(sourceFi...

17 August 2016 - 05:37 PM

Your function: char * loadFromFile(char * file)

 

returns char pointer which points to local variable s (std::string). That s variable goes out of scope at the end of your function, hence you get garbage. C++ is already hard language and adding usage of raw char to it is asking for trouble. Do yourself a favor and use std::string instead of char *.

 

Some reading to get you started at http://en.cppreference.com/w/cpp/language/scope


In Topic: Directxtex; Unresolved External, Lib Needed?

10 August 2016 - 12:43 PM

You could just create a separate project as static lib for those files yourself.


PARTNERS