Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 05 Nov 2013
Offline Last Active Today, 04:24 AM

Topics I've Started

Questions regarding how did you manage school

28 November 2015 - 12:19 PM

So, I am from India and I am studying in a government school. Anyone from India knows that when they hear *government schools*, it's a synonym for schools with 3rd class teachers, 3rd class management and outdated teaching techniques. So, that's why all of the students go for so called "tuitions" but they're shit too anyway. I don't understand anything in chemistry there and I am planning to leave that class. I need your help. Can you please share your experience on how did you learn stuff while you were in school? Did you go to tuitions (or extra classes) ? When did you learn stuff? Did you use the internet for learning? What do (or did) you do when you don't (or didn't) understand stuff? 

No idea about this warning in VS2015

19 November 2015 - 08:57 AM

I was trying to compile a Universal DirectX 12 app, it failed with an error saying Windows SDK ( is missing. I installed Windows SDK separately and the error went away and everything was perfect. But I was not able to create Universal C# apps (It said missing some framework SDK, .NET Core, v5.0). So I downloaded Visual Studio Tools for Windows (http://download.microsoft.com/download/6/F/C/6FC19DBF-C223-41D0-835A-BD2155BC950D/VSToolsForWindows1E.exe) and let it do its stuff. After that, everything worked but this warning started appearing on every Universal Windows App

Severity Code Description Project File Line
Warning Warning : DEP0810 : This app references Microsoft.VCLibs.140.00.Debug, version 14.0.22929.0, found in your SDK, but you have a higher version of Microsoft.VCLibs.140.00.Debug installed on the target machine, 14.0.23019.0. If you continue to run this application, it will run against the currently installed version, Microsoft.VCLibs.140.00.Debug, version 14.0.23019.0. Consider updating your SDK to match the version of Microsoft.VCLibs.140.00.Debug that is installed. 
How do I get rid of this?

New Call of Duty getting modding and mapping tools

10 November 2015 - 12:19 AM



I think this is the first Call of Duty in the franchise to do that. Still I don't know if they will allow selling mods or assets.

Confusion with smart pointers

19 October 2015 - 01:08 PM

So, I read that you cannot have two std::unique_ptr point to same object. If you want to do that, you need to use std::move and that'll transfer ownership of it. So, I tried to do that with this code.

int main()
std::unique_ptr<Random> SP(new Random());
printf("SP : %X\n", SP.get());
std::unique_ptr<Random> SP2(std::move(SP));
printf("SP : %X\n", SP.get());
printf("SP2 : %X\n", SP.get());
return 0;
and got this output:
Previously, SP was pointing to some address (A6A748) and now it points to 0 because it has transferred it's ownership to SP2 (So I assume it's nullptr?)
But the confusion I get is that this now points to nullptr (that is what I think) yet I am able to call SP->SomeFunc();.
Shouldn't I get an error because now SP doesn't point to anything cause it has moved it's ownership to SP2 ?
Here's the code for Random class if you're wondering what SP->SomeFunc() and SP2->SomeFunc() do

class Random
void SomeFunc();
void Random::SomeFunc()
printf("SomeFunc() called (Address: %X)\n", this);
printf("Constructor called!\n");
printf("Destructor called!\n");