Hi everyone,
It's the second time now that this happens to me . I try to build so awesome stuff .
InteliSense says there are now problems what so ever, but then the compiler comes in and
seems to suddenly just not identify some links. In this case between Poo-Class files.
It would be really awesome if someone could tell me if I'm actually retarded or if it works for u guys .
I attached the solution as a zip...
Thanks already!
Happy coding
insalt
Beginner Tutorial 9
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: Beginner Tutorial 9
Code: Select all
#pragma once
#include "Poo.cpp"
class Poo
{
Also, in Poo::draw() you have Graphics::PutPixel calls, but PutPixel is a non-static member function of Graphics so you need a Graphics object or reference to be able to call that function. You can #include "Graphics.h" in Poo.h, then pass a Graphics& gfx in Poo::draw, Poo::draw( Graphics& gfx ), then call the PutPixel function like gfx.PutPixel( x, y, red, green, blue );
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com
Re: Beginner Tutorial 9
Wow, thank you so much. So i actually did screw something up.
It definitely works better now and I think I'll remember that from now on !
insalt
It definitely works better now and I think I'll remember that from now on !
insalt