Problem with C++ classes
I have a class defined called extBlock.

I then make an instance of that class with this 

    extBlock mainBlock = new extBlock(1, 1024);

I get this error:
 error C2440: 'initializing' : cannot convert from 'extBlock *' to 'extBlock'

Can anyone help me with why I am getting this error.

I have seen examples online of declaring it like this with a pointer

    extBlock *mainBlock = new extBlock(1, 1024);

But if I do it this way it does not let me call the functions of mainBlock
Problem with C++ classes
===

I have a class defined called extBlock.

I then make an instance of that class with this 

    extBlock mainBlock = new extBlock(1, 1024);

I get this error:
 error C2440: 'initializing' : cannot convert from 'extBlock *' to 'extBlock'

Can anyone help me with why I am getting this error.

I have seen examples online of declaring it like this with a pointer

    extBlock *mainBlock = new extBlock(1, 1024);

But if I do it this way it does not let me call the functions of mainBlock