furinto

Members
  • Content count

    15
  • Joined

  • Last visited

Community Reputation

122 Neutral

About furinto

  • Rank
    Member
  1. I need to take an integer such as 1234 and add the digits of the integer. After declaring the integer, how do I use specific digits of it? For example, I have int x = 1234. I need int y to equal the sum of the digits, in this case, 10. Help? I'd really appreciate it. [Edited by - furinto on September 17, 2006 9:31:49 AM]
  2. I've got a MIDI file for my background music in my game which plays, but whenever I compile in Dev-C++, I get several warnings in my output. But the game and music still play. But when I tested my game on a different computer, the music didn't play, and i'm wondering if that has to do with the errors. Can anybody help me figure out what the problem is? Here's the log: Quote:Compiler: Default compiler Building Makefile: "C:\Documents and Settings\Owner\Desktop\Product\Makefile.win" Executing make... make.exe -f "C:\Documents and Settings\Owner\Desktop\Product\Makefile.win" all g++.exe -c Sprite.cpp -o Sprite.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" g++.exe -c GameEngine.cpp -o GameEngine.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" GameEngine.cpp: In member function `void GameEngine::PlayMIDISong(TCHAR*, BOOL)': GameEngine.cpp:359: warning: passing NULL used for non-pointer converting 1 of `MCIERROR mciSendCommandA(MCIDEVICEID, UINT, DWORD, DWORD)' GameEngine.cpp: In member function `void GameEngine::PauseMIDISong()': GameEngine.cpp:389: warning: passing NULL used for non-pointer converting 4 of `MCIERROR mciSendCommandA(MCIDEVICEID, UINT, DWORD, DWORD)' GameEngine.cpp: In member function `void GameEngine::CloseMIDIPlayer()': GameEngine.cpp:397: warning: passing NULL used for non-pointer converting 4 of `MCIERROR mciSendCommandA(MCIDEVICEID, UINT, DWORD, DWORD)' g++.exe -c Invasion.cpp -o Invasion.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" g++.exe -c Bitmap.cpp -o Bitmap.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" g++.exe -c aliensprite.cpp -o aliensprite.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" windres.exe -i Invasion_private.rc --input-format=rc -o Invasion_private.res -O coff --include-dir C:/DOCUME~1/Owner/Desktop/Product g++.exe Sprite.o GameEngine.o Invasion.o Bitmap.o aliensprite.o Invasion_private.res -o "Invasion.exe" -L"C:/Dev-Cpp/lib" -mwindows ../../../../Dev-Cpp/lib/libmsimg32.a ../../../../Dev-Cpp/lib/libwinmm.a Execution terminated Compilation successful And here's a screenshot of what it's talking about: --------- Thanks.
  3. I have the frame rate set to 30, so GameCycle() goes through 30 times each second.
  4. I have in my game some code to use an offscreen device context (buffer) to elimate bitmap flickering in my game as everything is redrawn each cycle. The code is taken from source code included with a book, and i've seen it work before. But for some reason, I still get flickering in the game i'm creating myself. These are delarations in my header file: HDC _hOffscreenDC; HBITMAP _hOffscreenBitmap; This is my GameCycle() function: void GameCycle() { if (!_bGameOver) { // Update the sprites _pGame->UpdateSprites(); // Obtain a device context for repainting the game HWND hWindow = _pGame->GetWindow(); HDC hDC = GetDC(hWindow); // Paint the game to the offscreen device context GamePaint(_hOffscreenDC); // Blit the offscreen bitmap to the game screen BitBlt(hDC, 0, 0, _pGame->GetWidth(), _pGame->GetHeight(), _hOffscreenDC, 0, 0, SRCCOPY); // Force a repaint to redraw the sprites InvalidateRect(_pGame->GetWindow(), NULL, FALSE); // Cleanup ReleaseDC(hWindow, hDC); } } Can anybody suggest what I should do if this isn't eliminating flickering? Also, I feel I should point out that I get no errors. It compiles and runs without a hitch. I just don't see the buffer working the way I guess I think it should.
  5. Icon data?

    Quote:Original post by cNoob hey if you just saved your icon from your paint program as filename.ico using paint or paintshop pro or adobe photoshop then it just saves as a bitmap with the ico extension so in you program your trying to load a bitmap not icon try using another icon or find a program that converts your bitmaps into icons then it shall work. good luck Hey, thanks. I grabbed a program and got it to work. Well, by "work" I mean it gets past the icons while compiling. Now I just get a ton of linker errors. Unrelated, though XD Thanks again
  6. Icon data?

    I'm getting an error when I try to compile my project that says my icon file specified in invasion.rc does not contain "icon data." What does this mean? I saved the image as an icon file, and it's the proper size. Any help? fyi "invasion" is just the name i'm using for the project :3
  7. I apologize if I posted this in the wrong place. Anyway, i'm currently researching schools to go to after I graduate from high school next year and i've got a question. So far all my reading and experience has told me the best way to go for college when it ocmes to getting a job in the game industry is Computer Science - degree in that will provide the programming and stuff that people look for. But what about a specific degree in game development? I'm looking at the Savannah College of Art & Design in GA as a possible candidate. From here you can see the courses they give and the degrees offered. How would you rate this compared to going to a different school and taking Computer Science? Any advice would be greatly appreciated.
  8. TransparentBlt() Win32 Function Help

    I hope this doesn't count as spam, but I discovered the solution to my problem, and i'm just here now to share it in case anybody else has the same problem in the future. :D Apparently, there was a discrepency between the code of the book and my compiler version... or something like that. Anyway, all I had to do was go into Dev-Cpp's include folder and open up windows.h. From there, I simply had to add the following code right after the first little chunk of codes that ends with #endif: #ifndef WINVER #define WINVER 0x0501 #else #if defined(_WIN32_WINNT) && (WINVER 0x0400) #error WINVER setting conflicts with _WIN32_WINNT setting #endif #endif Voila, I was able to compile perfectly with Dev-cpp, with no need to hastle with the (IMO) inferior VC++. :P
  9. TransparentBlt() Win32 Function Help

    windows.h is included in Bitmap.h, which is included in the .cpp file I pasted the error from. I've got the SDK installed. The book's C++ is fine. I can run the example program from the .exe on the book's CD without a hitch - but trying to compile and run the program from the provided source files just doesn't work. Here is the entire log with Dev-C++: Compiler: Default compiler Building Makefile: "C:\Documents and Settings\Owner\My Documents\Code\UFO\Makefile.win" Executing make... make.exe -f "C:\Documents and Settings\Owner\My Documents\Code\UFO\Makefile.win" all g++.exe -c Bitmap.cpp -o Bitmap.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/include/allegro" Bitmap.cpp: In member function `void Bitmap::Draw(HDC__*, int, int, BOOL, COLORREF)': Bitmap.cpp:225: error: `TransparentBlt' undeclared (first use this function) Bitmap.cpp:225: error: (Each undeclared identifier is reported only once for each function it appears in.) make.exe: *** [Bitmap.o] Error 1 Execution terminated Now here is the entire error log with the same project on VC++ Express 2005: 1>------ Build started: Project: UFO, Configuration: Debug Win32 ------ 1>Compiling... 1>Bitmap.cpp 1>c:\program files\microsoft visual studio 8\vc\include\winnt.h(3043) : warning C4103: 'c:\program files\microsoft visual studio 8\vc\include\winnt.h' : alignment changed after including header, may be due to missing #pragma pack(pop) 1>c:\program files\microsoft visual studio 8\vc\include\winnt.h(3335) : warning C4103: 'c:\program files\microsoft visual studio 8\vc\include\winnt.h' : alignment changed after including header, may be due to missing #pragma pack(pop) 1>c:\program files\microsoft visual studio 8\vc\include\winnt.h(3435) : warning C4068: unknown pragma 1>c:\program files\microsoft visual studio 8\vc\include\winnt.h(3440) : warning C4068: unknown pragma 1>c:\program files\microsoft visual studio 8\vc\include\windows.h(49) : fatal error C1083: Cannot open include file: 'wincon.h': No such file or directory 1>GameEngine.cpp 1>c:\program files\microsoft visual studio 8\vc\include\winnt.h(3043) : warning C4103: 'c:\program files\microsoft visual studio 8\vc\include\winnt.h' : alignment changed after including header, may be due to missing #pragma pack(pop) 1>c:\program files\microsoft visual studio 8\vc\include\winnt.h(3335) : warning C4103: 'c:\program files\microsoft visual studio 8\vc\include\winnt.h' : alignment changed after including header, may be due to missing #pragma pack(pop) 1>c:\program files\microsoft visual studio 8\vc\include\winnt.h(3435) : warning C4068: unknown pragma 1>c:\program files\microsoft visual studio 8\vc\include\winnt.h(3440) : warning C4068: unknown pragma 1>c:\program files\microsoft visual studio 8\vc\include\windows.h(49) : fatal error C1083: Cannot open include file: 'wincon.h': No such file or directory 1>UFO.cpp 1>c:\program files\microsoft visual studio 8\vc\include\winnt.h(3043) : warning C4103: 'c:\program files\microsoft visual studio 8\vc\include\winnt.h' : alignment changed after including header, may be due to missing #pragma pack(pop) 1>c:\program files\microsoft visual studio 8\vc\include\winnt.h(3335) : warning C4103: 'c:\program files\microsoft visual studio 8\vc\include\winnt.h' : alignment changed after including header, may be due to missing #pragma pack(pop) 1>c:\program files\microsoft visual studio 8\vc\include\winnt.h(3435) : warning C4068: unknown pragma 1>c:\program files\microsoft visual studio 8\vc\include\winnt.h(3440) : warning C4068: unknown pragma 1>c:\program files\microsoft visual studio 8\vc\include\windows.h(49) : fatal error C1083: Cannot open include file: 'wincon.h': No such file or directory 1>Generating Code... 1>Build log was saved at "file://c:\Documents and Settings\Owner\My Documents\Code\UFO\Debug\BuildLog.htm" 1>UFO - 3 error(s), 12 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  10. I'm trying to use the TransparentBlt() function to create a transparent color in a bitmap of my game, but i'm having some trouble. The book i'm reading says that I need to make sure my compiler is linked to a library file called msimg32.lib. The book offers instructions on how to do this linking with VCpp, but I use Dev-Cpp (why in a minute) and I can't quite seem to figure it out. This is the portion of the code giving me trouble: if (bTrans) TransparentBlt(hDC, x, y, GetWidth(), GetHeight(), hMemDC, 0, 0, GetWidth(), GetHeight(), crTransColor); else BitBlt(hDC, x, y, GetWidth(), GetHeight(), hMemDC, 0, 0, SRCCOPY); And this is the error: Bitmap.cpp:225: error: `TransparentBlt' undeclared (first use this function) Bitmap.cpp:225: error: (Each undeclared identifier is reported only once for each function it appears in.) make.exe: *** [Bitmap.o] Error 1 Execution terminated Just in case, if anybody else has read the same book to offer better advice, the book is SAMS Teach Yourself Game Programming in 24 Hours. I don't really care what your opinion on the book is - but this code is from Hour 6, and the program is the first UFO program dealing with mouse and keyboard input. I have tried opening the project with VCpp but that ends up being a lot worse. Even though i'm able to follow the book's instructions and include the proper .lib file, I get a ton more compiler erros - things about not being able to open winnt.h and bad pragmas and such. It's really terrible. FYI, It's VCpp Express 2005.
  11. I'm just wondering if it's possible to use Macromedia Flash with C++ code for graphics in a game. I really want to be able to program a simple 2D game, such as a classic clone (pong, space invaders, tetris) but i'm having a lot of trouble trying to learn this API stuff, and i'm especially having trouble trying to install Allegro. So I was just wondering if i'd be able to use Flash, because I know Flash lets you manage scripts.
  12. Installing Allegro - Dev-C++

    Any thoughts? :(?
  13. Installing Allegro - Dev-C++

    Well, the previous reply I made was a little dumb of me - disregard it xD However, I went through and uninstalled everything - allegro, dev-cpp, and mingw, and went through the directions in docs\build\mingw32.txt from scratch. The only thing I didn't do was downlaod the directx 7.0 sdk (dx70_mgw.zip at allegro's sourceforge site) because I already have the 9.0 SDK. I went through the steps in the command prompt: 1. "gcc -v" - worked 2. "fix" to set it up - worked 3. "make" - this time it actually did something, instead of giving me an error, it started compiling. I was happy because I though I finally fixed it - but towards the end of the compiling, it started showing all these "warning" and "error" messages, about 30 of them before stopping. I tried doing the next step, typing in "make install" and once again I get a bunch of errors and warnings. Something still isn't working, and I don't know what. I'm kind of new to the tags this particular forum uses, but i'll use a javascript tag to paste the message from the command prompt so that it doesn't make this post long. C:\Dev-Cpp\allegro>make Compiling Allegro for MinGW32, optimised. Please wait... gcc -DALLEGRO_SRC -Wall -Wno-unused -mcpu=pentium -O2 -funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -I. -I./include -o obj/mingw32/alleg /wddaccel.o -c src/win/wddaccel.c `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. In file included from src/win/wddaccel.c:[23]: src/win/wddraw.h:[29]:[22]: ddraw.h: No such file or directory In file included from src/win/wddaccel.c:[23]: src/win/wddraw.h:[38]: error: syntax error before "directdraw" src/win/wddraw.h:[38]: warning: type defaults to `int' in declaration of `directdr aw' src/win/wddraw.h:[38]: warning: data definition has no type or storage class src/win/wddraw.h:[39]: error: syntax error before "dd_prim_surface" src/win/wddraw.h:[39]: warning: type defaults to `int' in declaration of `dd_prim_ surface' src/win/wddraw.h:[39]: warning: data definition has no type or storage class src/win/wddraw.h:[40]: error: syntax error before "dd_clipper" src/win/wddraw.h:[40]: warning: type defaults to `int' in declaration of `dd_clipp er' src/win/wddraw.h:[40]: warning: data definition has no type or storage class src/win/wddraw.h:[41]: error: syntax error before "dd_palette" src/win/wddraw.h:[41]: warning: type defaults to `int' in declaration of `dd_palet te' src/win/wddraw.h:[41]: warning: data definition has no type or storage class src/win/wddraw.h:[42]: error: syntax error before "dd_caps" src/win/wddraw.h:[42]: warning: type defaults to `int' in declaration of `dd_caps' src/win/wddraw.h:[42]: warning: data definition has no type or storage class src/win/wddraw.h:[43]: error: syntax error before "dd_pixelformat" src/win/wddraw.h:[43]: warning: type defaults to `int' in declaration of `dd_pixel format' src/win/wddraw.h:[43]: warning: data definition has no type or storage class src/win/wddraw.h:[61]: error: syntax error before "surf" src/win/wddraw.h:[69]: error: syntax error before "surf" src/win/wddraw.h:[86]: error: syntax error before "surf" src/win/wddraw.h:[92]: error: syntax error before "LPDIRECTDRAWSURFACE2" src/win/wddraw.h:[92]: warning: no semicolon at end of struct or union src/win/wddraw.h:[97]: error: syntax error before '}' token src/win/wddraw.h:[97]: warning: type defaults to `int' in declaration of `BMP_EXTR A_INFO' src/win/wddraw.h:[97]: warning: data definition has no type or storage class src/win/wddraw.h:[124]: error: syntax error before "gfx_directx_create_surface" src/win/wddraw.h:[124]: error: syntax error before "LPDDPIXELFORMAT" src/win/wddraw.h:[124]: warning: type defaults to `int' in declaration of `gfx_dir ectx_create_surface' src/win/wddraw.h:[124]: warning: data definition has no type or storage class src/win/wddraw.h:[125]: error: syntax error before "surf" src/win/wddraw.h:[130]: error: syntax error before '*' token src/win/wddraw.h:[130]: warning: type defaults to `int' in declaration of `directx _bmp_list' src/win/wddraw.h:[130]: warning: data definition has no type or storage class src/win/wddaccel.c: In function `ddraw_blit_to_self': src/win/wddaccel.c:[65]: warning: implicit declaration of function `IDirectDrawSur face2_BltFast' src/win/wddaccel.c:[65]: error: syntax error before ')' token src/win/wddaccel.c:[66]: error: syntax error before ')' token src/win/wddaccel.c:[67]: error: `DDBLTFAST_WAIT' undeclared (first use in this fun ction) src/win/wddaccel.c:[67]: error: (Each undeclared identifier is reported only once src/win/wddaccel.c:[67]: error: for each function it appears in.) src/win/wddaccel.c: In function `ddraw_masked_blit': src/win/wddaccel.c:[100]: error: `DDCOLORKEY' undeclared (first use in this functi on) src/win/wddaccel.c:[100]: error: syntax error before "src_key" src/win/wddaccel.c: At top level: src/win/wddaccel.c:[109]: error: syntax error before "if" src/win/wddaccel.c:[116]: warning: type defaults to `int' in declaration of `sourc e_parent' src/win/wddaccel.c:[116]: error: conflicting types for 'source_parent' src/win/wddaccel.c:[107]: error: previous declaration of 'source_parent' was here src/win/wddaccel.c:[116]: error: `source' undeclared here (not in a function) src/win/wddaccel.c:[116]: warning: data definition has no type or storage class src/win/wddaccel.c:[117]: error: syntax error before "while" src/win/wddaccel.c:[120]: error: syntax error before '&' token src/win/wddaccel.c:[120]: warning: type defaults to `int' in declaration of `Enter CriticalSection' src/win/wddaccel.c:[120]: error: conflicting types for 'EnterCriticalSection' C:/Dev-Cpp/bin/../lib/gcc/mingw32/[3].[4].[2]/../../../../include/winbase.h:[1241]: erro r: previous declaration of 'EnterCriticalSection' was here src/win/wddaccel.c:[120]: error: conflicting types for 'EnterCriticalSection' C:/Dev-Cpp/bin/../lib/gcc/mingw32/[3].[4].[2]/../../../../include/winbase.h:[1241]: erro r: previous declaration of 'EnterCriticalSection' was here src/win/wddaccel.c:[120]: warning: data definition has no type or storage class src/win/wddaccel.c:[120]: error: syntax error before '++' token src/win/wddaccel.c:[121]: warning: type defaults to `int' in declaration of `gfx_d irectx_release_lock' src/win/wddaccel.c:[121]: warning: parameter names (without types) in function dec laration src/win/wddaccel.c:[121]: error: conflicting types for 'gfx_directx_release_lock' src/win/wddraw.h:[108]: error: previous declaration of 'gfx_directx_release_lock' was here src/win/wddaccel.c:[121]: error: conflicting types for 'gfx_directx_release_lock' src/win/wddraw.h:[108]: error: previous declaration of 'gfx_directx_release_lock' was here src/win/wddaccel.c:[121]: warning: data definition has no type or storage class src/win/wddaccel.c:[122]: warning: type defaults to `int' in declaration of `gfx_d irectx_release_lock' src/win/wddaccel.c:[122]: warning: parameter names (without types) in function dec laration src/win/wddaccel.c:[122]: warning: data definition has no type or storage class src/win/wddaccel.c:[124]: error: syntax error before '(' token src/win/wddaccel.c:[124]: error: syntax error before '->' token src/win/wddaccel.c:[127]: warning: type defaults to `int' in declaration of `hr' src/win/wddaccel.c:[127]: error: conflicting types for 'hr' src/win/wddaccel.c:[105]: error: previous declaration of 'hr' was here src/win/wddaccel.c:[127]: warning: implicit declaration of function `IDirectDrawSu rface2_Blt' src/win/wddaccel.c:[127]: error: syntax error before ')' token src/win/wddaccel.c:[127]: error: `dest_rect' undeclared here (not in a function) src/win/wddaccel.c:[128]: error: syntax error before ')' token src/win/wddaccel.c:[128]: error: invalid type argument of `->' src/win/wddaccel.c:[128]: error: `source_rect' undeclared here (not in a function) src/win/wddaccel.c:[129]: error: `DDBLT_KEYSRC' undeclared here (not in a function ) src/win/wddaccel.c:[129]: error: `DDBLT_WAIT' undeclared here (not in a function) src/win/wddaccel.c:[129]: error: initializer element is not constant src/win/wddaccel.c:[129]: warning: data definition has no type or storage class src/win/wddaccel.c:[130]: error: syntax error before '&' token src/win/wddaccel.c:[130]: warning: type defaults to `int' in declaration of `Leave CriticalSection' src/win/wddaccel.c:[130]: error: conflicting types for 'LeaveCriticalSection' C:/Dev-Cpp/bin/../lib/gcc/mingw32/[3].[4].[2]/../../../../include/winbase.h:[1635]: erro r: previous declaration of 'LeaveCriticalSection' was here src/win/wddaccel.c:[130]: error: conflicting types for 'LeaveCriticalSection' C:/Dev-Cpp/bin/../lib/gcc/mingw32/[3].[4].[2]/../../../../include/winbase.h:[1635]: erro r: previous declaration of 'LeaveCriticalSection' was here src/win/wddaccel.c:[130]: warning: data definition has no type or storage class src/win/wddaccel.c:[130]: error: syntax error before '--' token src/win/wddaccel.c: In function `ddraw_clear_to_color': src/win/wddaccel.c:[208]: error: `DDBLTFX' undeclared (first use in this function) src/win/wddaccel.c:[208]: error: syntax error before "blt_fx" src/win/wddaccel.c:[217]: error: `blt_fx' undeclared (first use in this function) src/win/wddaccel.c:[224]: error: syntax error before ')' token src/win/wddaccel.c:[226]: error: `DDBLT_COLORFILL' undeclared (first use in this f unction) src/win/wddaccel.c: In function `ddraw_rectfill': src/win/wddaccel.c:[246]: error: `DDBLTFX' undeclared (first use in this function) src/win/wddaccel.c:[246]: error: syntax error before "blt_fx" src/win/wddaccel.c:[297]: error: `blt_fx' undeclared (first use in this function) src/win/wddaccel.c:[304]: error: syntax error before ')' token src/win/wddaccel.c:[306]: error: `DDBLT_COLORFILL' undeclared (first use in this f unction) src/win/wddaccel.c: In function `ddraw_hline': src/win/wddaccel.c:[326]: error: `DDBLTFX' undeclared (first use in this function) src/win/wddaccel.c:[326]: error: syntax error before "blt_fx" src/win/wddaccel.c:[365]: error: `blt_fx' undeclared (first use in this function) src/win/wddaccel.c:[372]: error: syntax error before ')' token src/win/wddaccel.c:[374]: error: `DDBLT_COLORFILL' undeclared (first use in this f unction) src/win/wddaccel.c: In function `ddraw_vline': src/win/wddaccel.c:[393]: error: `DDBLTFX' undeclared (first use in this function) src/win/wddaccel.c:[393]: error: syntax error before "blt_fx" src/win/wddaccel.c:[432]: error: `blt_fx' undeclared (first use in this function) src/win/wddaccel.c:[439]: error: syntax error before ')' token src/win/wddaccel.c:[441]: error: `DDBLT_COLORFILL' undeclared (first use in this f unction) src/win/wddaccel.c: In function `enable_acceleration': src/win/wddaccel.c:[467]: error: request for member `dwCaps' in something not a st ructure or union src/win/wddaccel.c:[467]: error: `DDCAPS_BLT' undeclared (first use in this functi on) src/win/wddaccel.c:[478]: error: request for member `dwCaps' in something not a st ructure or union src/win/wddaccel.c:[478]: error: `DDCAPS_BLTCOLORFILL' undeclared (first use in th is function) src/win/wddaccel.c:[488]: error: request for member `dwCaps' in something not a st ructure or union src/win/wddaccel.c:[488]: error: `DDCAPS_COLORKEY' undeclared (first use in this f unction) src/win/wddaccel.c:[489]: error: request for member `dwCKeyCaps' in something not a structure or union src/win/wddaccel.c:[489]: error: `DDCKEYCAPS_SRCBLT' undeclared (first use in this function) src/win/wddaccel.c: In function `enable_triple_buffering': src/win/wddaccel.c:[509]: warning: implicit declaration of function `IDirectDrawSu rface2_GetFlipStatus' src/win/wddaccel.c:[509]: error: syntax error before ')' token src/win/wddaccel.c:[509]: error: `DDGFS_ISFLIPDONE' undeclared (first use in this function) src/win/wddaccel.c:[510]: error: `DD_OK' undeclared (first use in this function) src/win/wddaccel.c:[510]: error: `DDERR_WASSTILLDRAWING' undeclared (first use in this function) make: *** [obj/mingw32/alleg/wddaccel.o] Error [1]
  14. Installing Allegro - Dev-C++

    I'm not sure if my version of Dev-C++ came with MinGW, because it was on a CD that came with my Beginning C++ Game Programming book.
  15. I know there are things all over the internet about this, and i'm sure this comes up a lot on these forums, but it's my first time and I need help. I'm trying to set up Allegro for use with my Dev-C++ compiler. I've been all over the http://www.allegro.cc, sourceforge.net/project/screenshots.php?group_id=2435, and http://www.mingw.org/ pages time and time again. I try to follow the steps, but the instructions for what to download next are so confusing. I think that pages have changed and files have moved since the writing of the instructions. I think i've managed to get some progress. Here's what i've done: Since the links on http://www.allegro.cc/files/install-devcpp.html at step 2 under "Step by Step" are screwy and the directions are confusing, I found on http://prdownloads.sourceforge.net/mingw a download for "MinGW 5.0.0", which I took to be the latest full download for MinGW. After downloading this, I went into the DOS Prompt step of testing the installation and compiling Allegro. Here is what I see: http://img.photobucket.com/albums/v497/furinto/prompt.jpg I get an error... and I don't know what's wrong or how to fix it. So! My question here is this. Can anybody give me an up-to-date, step-by-step guide to installing Allegro (and/or MinGW) for Dev-C++? It's just that I feel like out-of-date instructions and links are what's confusing me.