Page 1 of 1

Intermediate Lesson 1 Error [ SOLVED]

Posted: April 27th, 2015, 12:23 am
by DcoltGaming
Hi guys,

I have once again run into some more errors, this time with windows.h. I can't seem to work out what is causing the issues to load. I have checked all the lines that were changed when the class was added, but I can't seem to fix it.

Anyone have any ideas?

Thanks.

Re: Intermediate Lesson 1 Error

Posted: April 27th, 2015, 1:12 am
by Chexxor
DcoltGaming wrote:Anyone have any ideas?
Try removing the long-char prefix from the strings in windows.cpp, that means taking away the "L" from L"Chili Direc..." at the two places intellisense puts a red line under them

BTW, are you using VS2013 by any chance? I get some errors from the Timer constructor that may be caused by a VS bug

Re: Intermediate Lesson 1 Error

Posted: April 27th, 2015, 1:49 am
by cameron
Think he may be using 2014, cant even open with vs13.

Re: Intermediate Lesson 1 Error

Posted: April 27th, 2015, 11:51 am
by DcoltGaming
Hi Cameron, No I am using 2015 :)

Re: Intermediate Lesson 1 Error

Posted: April 27th, 2015, 1:07 pm
by DcoltGaming
Thanks Chexxor, that fixed it

Re: Intermediate Lesson 1 Error

Posted: April 27th, 2015, 1:42 pm
by Chexxor
DcoltGaming wrote:Thanks Chexxor, that fixed it
Awesome! I didn't have too much faith in my own solution tbh... :P

Re: Intermediate Lesson 1 Error [ SOLVED]

Posted: April 27th, 2015, 3:00 pm
by chili
Hmmm, why did you think to remove the long-char prefix from the strings in windows.cpp Chexxor?

Re: Intermediate Lesson 1 Error [ SOLVED]

Posted: April 27th, 2015, 7:43 pm
by Chexxor
chili wrote:Hmmm, why did you think to remove the long-char prefix from the strings in windows.cpp Chexxor?
I think it was partly due to intellisense, but I also made a google search for the error I got and it seemed like the right thing to do at the moment, I can't recall more specifics about what I was thinking other than the error being about some c-type casting.

Re: Intermediate Lesson 1 Error [ SOLVED]

Posted: April 27th, 2015, 8:19 pm
by cameron
Proj properties probably were changed from unicode to multibyte. And ah 2015, any new features from 13?