PDA

View Full Version : Problems with the tetris tutorial


sean_brum
03-09-2006, 11:17 AM
hi,

i am fairly new to c++ anyway so i do appollogise if the answer is really ovious.
i ran through the tetris tutorial fine until i went to compile it . i had the following error message:

Linking...
bitmapobject.obj : error LNK2001: unresolved external symbol "public: void __thiscall BitMapObject::Destroy(void)" (?Destroy@BitMapObject@@QAEXXZ)
Debug/ctetris.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

I am useing windows VS c++ 6

Any help would be appreciated .

Thanks

Reedbeta
03-09-2006, 11:51 AM
The link error means the Destroy() function in the BitMapObject class has not been defined. The source code for that function is on page 2 of the tutorial, make sure it's correct in your project.

sean_brum
03-09-2006, 12:00 PM
i will check this

thanks

edit:i missed part of the destroy function but now it is complete

thanks agen

sean_brum
03-09-2006, 12:43 PM
another question please .... how can you speed up the game? or why is the game slow?

thanks

geon
03-09-2006, 04:19 PM
Buy a faster computer?

Seriously, there should be some kind of timer somewhere. Look around for it. Maby in the main game loop?

It would be easier to answer if you supplied an URL to the tutorial...

Reedbeta
03-09-2006, 05:12 PM
He's referring to the one on triplebuffer (http://triplebuffer.devmaster.net/articles/tetris_in_an_hour/).