Thanks guys, I actually found an easier way to do it, hand't thought it could. It's something like this:
std::wstring(buffer, buffer + sizeof(buffer) - 1);
And buffer is a pointer to a string.
Search found 52 matches
- June 7th, 2015, 10:04 am
- Forum: Everything
- Topic: Personal Framework
- Replies: 11
- Views: 4374
- June 1st, 2015, 7:20 pm
- Forum: Everything
- Topic: Personal Framework
- Replies: 11
- Views: 4374
Re: Personal Framework
Updated my framework a little, soon going to add a little app to see how this thing works.
Untill then, does anybody know how to create a wstring from a char* ? I really need this lease
Untill then, does anybody know how to create a wstring from a char* ? I really need this lease
- June 1st, 2015, 10:25 am
- Forum: Everything
- Topic: reverse the y increasing to increase from bottom to top
- Replies: 6
- Views: 2381
Re: reverse the y increasing to increase from bottom to top
Yea, thought about that later.
There are a few things that have to be changed, but i don't know any other way.
There are a few things that have to be changed, but i don't know any other way.
- June 1st, 2015, 7:55 am
- Forum: Everything
- Topic: reverse the y increasing to increase from bottom to top
- Replies: 6
- Views: 2381
Re: reverse the y increasing to increase from bottom to top
Well, i think it could work if you change putpixel and getpixel functions so as instead of putting the pixel at y*screenwidth + x it would place them at (screenheight - y)*screenwidth + x.
Not sure if it works just like that, may need screenheight-1-y, but you could find out
Not sure if it works just like that, may need screenheight-1-y, but you could find out
- June 1st, 2015, 7:36 am
- Forum: Everything
- Topic: Keyboard problem
- Replies: 6
- Views: 3460
Keyboard problem
Hello guys I have a problem with my keyboard: the numbers above the letters, letter p and backspace don't work. I read about it and it seems to be a problem in the manufacturing of the laptop, but i can't send it to be repaired untill the end of the month. The question is, do you know any program wh...
- May 28th, 2015, 4:24 pm
- Forum: Everything
- Topic: Personal Framework
- Replies: 11
- Views: 4374
Re: Personal Framework
Thanks albinopapa, it was sure a constructive post. The reason why I added so many functions for the buttons is the flexibility, thinking about what you could posibbly need so as to have it the easiest way. There are 2 functions already declared that do nothing and can be used if you don't want the ...
- May 27th, 2015, 5:59 pm
- Forum: Everything
- Topic: Personal Framework
- Replies: 11
- Views: 4374
Personal Framework
Hello again guys! I decided to start making a new game, but i found myself in a deep need of buttons, text boxes and other stuff that would make the project really hard to make. Therefore, i started making my own framework, based on what chili did and a few things from myself, which would allow me t...
- May 27th, 2015, 4:16 pm
- Forum: Everything
- Topic: Memory
- Replies: 3
- Views: 2031
Re: Memory
It looks cool, especially for beginner series. The beams are really interesting, wouldn't have managed to make them like that
- May 27th, 2015, 4:06 pm
- Forum: Everything
- Topic: Beginner Lesson 12 AI Ghost Cursor Move Problem
- Replies: 10
- Views: 4475
Re: Beginner Lesson 12 AI Ghost Cursor Move Problem
Well, if you managed to do that, all you need is a pause section, where all you do is skip getting the next move for a number of frames. It's not hard if you use a bool to decide whether to get the next move or skip the move for that frame. Also, try drawing the cursor outside the place where you mo...
- May 21st, 2015, 12:58 pm
- Forum: Everything
- Topic: Lesson 8 Crap
- Replies: 23
- Views: 28939
Re: Lesson 8 Crap
Sorry to hear that your laptop is not so good, mine is pretty new and still has lag when i use unreal. Also, it takes up a lot of space and needs vs 2013 to run. There is another thing from unreal, i think it's called unreal tournament, where gamers, programmers and other game developers work togeth...