[C++] Create a screenshot
nice
but what is SBMPHeader?
edit: ah sry now i know. its just my compiler sasys that SBMPHeader is not declared.
but what is SBMPHeader?
edit: ah sry now i know. its just my compiler sasys that SBMPHeader is not declared.
Last edited by Halan on Tue Jul 25, 2006 6:41 pm, edited 1 time in total.
My Blog: http://www.freakybytes.org
yeah hybrid implent it espacially the image-writers
well ive got a problem. if i do it this way
it stops compiling and says
it crashes at runtime (as expected)
any ideas?
well ive got a problem. if i do it this way
Code: Select all
CImageWriterBMP Writer;
Writer->writeImage(file, image);
if i do it this waybase operand of `->' has non-pointer type `CImageWriterBMP'
Code: Select all
CImageWriterBMP* Writer;
Writer->writeImage(file, image);
any ideas?
My Blog: http://www.freakybytes.org
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Simply learn the subtle differences of objects and pointers in C++ and use a . instead of -> in the former case. -> is the dereference and access object attribute operator, while . is simply the access object attribute operator. Since you have no pointer here you should not dereference (better you cannot).
ah ok thanks... well i still crashes at createScreenshot(). i dont know why
My Blog: http://www.freakybytes.org