#include <windows.h>
#include "resource.h"
and MS visual C++ prof 6 SP 5

I am fairly adept with c++ oo console programming.

I have been playing around with the win32 api. I have made a simple program which creates a pushbutton on the main window. When it's clicked it launches a dialog box where i wish to input data in an object.

Now i tried to create a class but the compiler will not recognize class xxxx{} ....it gives me errors....

what am i missing here....
even this simple one will not work:
class dayof year
{
public:
void output();
int month;
int day;
};
//// this in the dialog proc
dayofyear today;
////
void dayofyear::output();
{
}
Even trying structs gave me errors. Am i missing the whole point of win32 or what?


PLease help. Source code example with user defined class in simple win32 app would be nice.