Search found 16 matches
- July 22nd, 2014, 4:34 pm
- Forum: Everything
- Topic: GetOpenFileName() strange problem
- Replies: 9
- Views: 3249
Re: GetOpenFileName() strange problem
Thank you so much Luis, this problem was pestering for like a week now.
- July 19th, 2014, 2:40 pm
- Forum: Everything
- Topic: GetOpenFileName() strange problem
- Replies: 9
- Views: 3249
Re: GetOpenFileName() strange problem
When you launch the game select the PLAY option, then go to the Tilemaps folder and select New_Tilemap.txt. When you will be in the game you will be able to build buildings by pressing left mouse button on GRASS tiles. The problem is that the buildings in question will not be drawn properly because ...
- July 19th, 2014, 8:33 am
- Forum: Everything
- Topic: GetOpenFileName() strange problem
- Replies: 9
- Views: 3249
Re: GetOpenFileName() strange problem
Thanks for the response, but using GetOpenFileNameA still doesn't work for me. OPENFILENAMEA ofn; char szFileName[MAX_PATH] = ""; ZeroMemory(&ofn, sizeof(ofn)); ofn.lStructSize = sizeof(ofn); ofn.hwndOwner = *hWnd; ofn.lpstrFilter = "Text Files (*.txt)\0*.txt\0All Files (*.*)\0*.*\0"; ofn.lpstrFile ...
- July 18th, 2014, 4:56 pm
- Forum: Everything
- Topic: GetOpenFileName() strange problem
- Replies: 9
- Views: 3249
GetOpenFileName() strange problem
Hello forum! I'am having a strange problem with loading files. When I load a tilemap in PLAY section, all the tiles within a tilemap works, but after that all other loaded surfaces get corrupted. Therefore, when you press left mouse button on a grass tile instead of a building surface you get a mess...
- July 14th, 2014, 2:31 pm
- Forum: Everything
- Topic: Problems with functions
- Replies: 4
- Views: 2209
Re: Problems with functions
Thanks for the answers. Such a stupid mistake, was always told not to copy and paste code, so this happened.
- July 14th, 2014, 9:14 am
- Forum: Everything
- Topic: Problems with functions
- Replies: 4
- Views: 2209
Problems with functions
Hello forum, I have started to build an editor for my tilemaps, but I am now having a quite nasty problem. When I try to change a tile within the editor I am getting an access violation error. When debugging I have noticed that the tile ChangeTile function pointer to a surface is undefined even thou...
- April 30th, 2014, 4:30 pm
- Forum: Everything
- Topic: Tutorial Sneak Peak and Benchmark
- Replies: 19
- Views: 6820
Re: Tutorial Sneak Peak and Benchmark
I tried to run it, but it says that the version of the program is not compatible with the version of my windows system.
I have a 32 bit windows system.
I have a 32 bit windows system.
- April 7th, 2014, 4:19 pm
- Forum: Everything
- Topic: My introduction & my first directx code (fractal)
- Replies: 22
- Views: 8069
Re: My introduction & my first directx code (fractal)
I have spent more time watching this than I would like to admit.
- March 22nd, 2014, 10:28 am
- Forum: Everything
- Topic: Problem with wstrings
- Replies: 3
- Views: 1862
Re: Problem with wstrings
Thanks for the help!
- March 21st, 2014, 9:12 pm
- Forum: Everything
- Topic: Problem with wstrings
- Replies: 3
- Views: 1862
Problem with wstrings
Hello forum, while screwing with tiles i came across quite a wierd problem. I want to pass a name of a file to a surface object, so the problem is that I can only do so in quotation marks, but I actually want to do that with a pointer what does not let me to make a long string. TexturedTile::Texture...