I put #include "CGame.h" into the CGameState.cpp, same error.
Any other ideas?
-Peter
Search found 23 matches
- Tue Sep 21, 2004 8:03 pm
- Forum: Beginners Help
- Topic: Pointer not working?!
- Replies: 6
- Views: 408
- Sun Sep 19, 2004 3:36 pm
- Forum: Beginners Help
- Topic: Pointer not working?!
- Replies: 6
- Views: 408
I put in a forward declaration of CGame ( e.g. class CGame; ) in the CGameState.h file, so that it knows that a class named CGame exists. It doesn't need to know how it work or anything, it just needs to know it exists. So I just have a pointer of CGame type, which should work. I cannot include CGam...
- Sun Sep 19, 2004 1:56 pm
- Forum: Beginners Help
- Topic: Pointer not working?!
- Replies: 6
- Views: 408
Pointer not working?!
I'm trying to call a function in the CGame class to change the game state, and is says the function is undeclared. I changed the function being called just to do a test, and it still says it's undeclared. The pointer is clearly of the CGame type. Here's the exact error message: C:\Documents and Sett...
- Sat Sep 18, 2004 2:02 am
- Forum: Beginners Help
- Topic: Program crashes at driver->getTexture()
- Replies: 2
- Views: 358
Ahh, your button suggestion fixed the increase in memory usage problem. But I still don't understand why I can't load the texture, I want to load the textures once, so I don't have to do this GS_driver->draw2DImage( GS_driver->getTexture( blah ), blah ); which works perfectly fine. What could possib...
- Thu Sep 16, 2004 10:56 pm
- Forum: Beginners Help
- Topic: Program crashes at driver->getTexture()
- Replies: 2
- Views: 358
Program crashes at driver->getTexture()
I've got the BMP file in the correct place, and the GS_driver pointer IS initialized correctly before the function call because I checked, so what could be causing the crash? Oh, and the program also increases in memory usage like 3kb every 2 seconds for some reason. How can I solve this problem? Th...
- Fri Sep 10, 2004 10:44 pm
- Forum: Beginners Help
- Topic: Programming crashing after loading texture!
- Replies: 1
- Views: 181
Programming crashing after loading texture!
Sorry. Me again. I think there's something wrong with my actual computer, cause the code compiles on another guy's machine flawlessly. It loaded the bmp and displayed it perfectly. However, the code is crashing on the driver->getTexture() line for me. I'd like for a few people to try to compile the ...
- Fri Sep 10, 2004 7:52 pm
- Forum: Beginners Help
- Topic: createDevice() crashing program!
- Replies: 8
- Views: 914
- Fri Sep 10, 2004 2:22 am
- Forum: Beginners Help
- Topic: createDevice() crashing program!
- Replies: 8
- Views: 914
- Wed Sep 08, 2004 9:42 pm
- Forum: Beginners Help
- Topic: createDevice() crashing program!
- Replies: 8
- Views: 914
When I do that, I get this compile-time error: C:\Documents and Settings\Owner\Desktop\POLISH PONG\CGame.cpp In member function `void CGame::CGame_Init()': 26 C:\Documents and Settings\Owner\Desktop\POLISH PONG\CGame.cpp cannot convert `CMyEventRec**' to `irr::IEventReceiver*' for argument `6' to `i...
- Wed Sep 08, 2004 7:32 pm
- Forum: Beginners Help
- Topic: createDevice() crashing program!
- Replies: 8
- Views: 914
createDevice() crashing program!
Segmenation fault at the createDevice() function. Apparently my event receiver isn't good enough for it ;) CGame.h #ifndef CGame_H_ #define CGame_H_ //Include Irrlicht header file and use its namespaces #include <irrlicht.h> using namespace irr; using namespace core; using namespace scene; using nam...
- Mon Sep 06, 2004 11:33 pm
- Forum: Beginners Help
- Topic: Strange run-time crash. Need help :(
- Replies: 7
- Views: 669
The problem is in the event receiver. If I change event receiver argument in the createDevice() function to 0, instead of my class that I've made, it works fine (except I don't have an event receiver ). But that still doesn't explain why it works for another guy, but not me. Here's the relevant sour...
- Mon Sep 06, 2004 9:28 pm
- Forum: Beginners Help
- Topic: Strange run-time crash. Need help :(
- Replies: 7
- Views: 669
- Mon Sep 06, 2004 8:40 pm
- Forum: Beginners Help
- Topic: Strange run-time crash. Need help :(
- Replies: 7
- Views: 669
------------------ System Information ------------------ Time of this report: 9/6/2004, 16:39:28 Machine name: PETER Operating System: Windows XP Home Edition (5.1, Build 2600) Service Pack 2 (2600.xpsp_sp2_rtm.040803-2158) Language: English (Regional Setting: English) System Manufacturer: HP Pavili...
- Mon Sep 06, 2004 8:26 pm
- Forum: Beginners Help
- Topic: Strange run-time crash. Need help :(
- Replies: 7
- Views: 669
- Sun Sep 05, 2004 12:04 am
- Forum: Off-topic
- Topic: Who is everybody?
- Replies: 358
- Views: 497870