MFC Illegal member initialization

Hello, first I want to say I'm a total noob to C++ and Visual Studio and MFC. Before this I studied Java in school. Anyway I'm required to learn MFC for work and I've been going through a reference book my supervisor has and I've run into an error that google can't seem to solve and I thought I'd try here before tracking down my supervisor for help.

I'm using Visual Studio 2008 and referencing a book called "MFC Programming with Visual C++ 6"

Here's what I'm going by: "Listing 2.1 demonstrates how the constructor is used in the MFCSample application to intialize the m_currentColor member variables." The idea behind the program is to fill a section with a colour chosen with the Colour Picker.

>>I'm using Visual Studio 2008 and referencing a book called "MFC Programming with Visual C++ 6"

Get a newer book because MFC changed a lot between VC++ 6.0 and VC++ 2008. The two are not compatible, although you could make it work if you already know MFC well enough. Since you are just starting it would be a lot easier if you just bought a newer book.

Yeah I had that realization as well, it's just a problem of getting to a book store and finding a book that works, this was sort of a last attempt before going and doing just that. Thanks for the reply, any suggestions on a good book to purchase?

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...