![Very Happy :D](./images/smilies/icon_biggrin.gif)
Good Job guys, I like this
![Wink ;)](./images/smilies/icon_wink.gif)
Moderators: CEGUI MVP, CEGUI Team
Code: Select all
--- Sample_TreeDemo.cpp.bak 2007-07-11 11:59:19.000000000 +0200
+++ Sample_TreeDemo.cpp 2007-07-11 12:02:48.000000000 +0200
@@ -11,7 +11,7 @@
#include "windows.h"
#include <mmsystem.h>
#include <time.h>
-
+#endif
const unsigned int TreeDemoSample::TreeID = 1;
const unsigned int TreeDemoSample::EditBoxID = 2;
@@ -40,7 +40,7 @@
// int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,int nCmdShow)
// #else
int main(int argc, char *argv[])
-#endif
+// #endif
{
// This is a basic start-up for the sample application which is
// object orientated in nature, so we just need an instance of
@@ -54,11 +54,11 @@
int randInt(int low, int high)
{
int num;
- DWORD range;
+ size_t range;
range = high - low + 1;
if (range > RAND_MAX)
- num = (int)(((DWORD)rand() * (DWORD)rand()) % range);
+ num = (int)(((size_t)rand() * (size_t)rand()) % range);
else
num = (rand()) % range;
Return to “Offtopic Discussion”
Users browsing this forum: No registered users and 2 guests