In an SDI application I created a new Class, say, CTest.
In one of the member functions of CTest I included the following code -
void CTest::SomeFunc(...)
{
...
int x;
int y;
...
CFrameWnd* pFrame = (CFrameWnd*)(AfxGetApp()->m_pMainWnd);
CMyAppView* pView...
But how can I separate the implementation of the objects from their instantiation in this case.
After creating the object it should automatically check its neigboring pixels and create more Spawns. This can only be done it its constructor.
Do you have any other idea?
I have devised a new Flood Filling Algorithm but it seems to have a problem...
I have created a class Spawn ...
typedef enum DIR { HORZ, VERT } DIRECTION;
class Spawn
{
public:
Spawn(void);
virtual ~Spawn(void);
int x;
int y;
DIRECTION d;
Spawn(int x, int y, DIRECTION d...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.