You'll need to create a new project but without any spaces in the path(s) to project files, source files, resource scripts etc. as Dev-Cpp doesn't like them.
You'll need to create a new project but without any spaces in the path(s) to project files, source files, resource scripts etc. as Dev-Cpp doesn't like them.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
It works now! Yah!
I had a & character in the project name and it was screwing it up. I would never have realized that was the problem if you hadn't said Dev-C++ didn't like spaces.
There were some other minor things that needed to be cleared up, such as my resource not liking me using my header with a bunch of definitions in it to define things so I had to make a new header file but no problems there.
There are two questions i have:
1. Though I can get it to work by commenting this out, by resource script says I have a problem with the line defining Style:
I must be missing something becuase I see nothing wrong.Code:#include "definitions.hpp" IDD_DLGJOIN DIALOG 260, 200, 188, 95 STYLE DS_MODALFRAME | WS_CAPTION | WS_VISIBLE CAPTION "Join a Game" FONT 8, "Courier New" BEGIN DEFPUSHBUTTON "OK", ID_DLGOK, 130, 10, 50, 14 END
Error message:
2. In most games today, they have their own styles when it comes to message boxes, dialogboxes, etc., so that when one pops up it is slightly transparent, has a different size, and different colors. Is this done through DialogBoxIndirect, when you create a template in the memory instead of using a resource file? Or is there some other easier way to do it?4 C:\Dev-Cpp\OpenGL\DayandNight\dialogdata.rc [Resource error] syntax error
C:\Dev-Cpp\OpenGL\DayandNight\Makefile.win [Build Error] [DayandNight_private.res] Error 1
Sic vis pacum para bellum. If you want peace, prepare for war.
1) Try "#include<windows.h>" if it's not already
2) >> Is this done through DialogBoxIndirect, when you create a template...
No. Here's a thread with a few buzz words for searching with.
http://cboard.cprogramming.com/showthread.php?t=55907
I'm sure other's have links to tutorials and such.
gg
Alright thanks everyone for your help.
Sic vis pacum para bellum. If you want peace, prepare for war.
What is wrong with this:
Or this:Code:PUSHBUTTON 16, 208, 48, 16, "Cancel", CANCEL
Sorry I thought I was done too...Code:EDITTEXT 16, 16, 240, 160, mstrservermsg, READONLY | MULITLINE
Last edited by Morgul; 05-30-2005 at 01:22 PM.
Sic vis pacum para bellum. If you want peace, prepare for war.
The syntax is wrong; check out msdn: resource definition statements.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
Thanks a lot, the site I was using was not up to date, I was having trouble finding a page that was current.
Thanks for everything everyone , I promise that was the last question.
Sic vis pacum para bellum. If you want peace, prepare for war.