#include
тип SomeClass
{
публика:
typedef пустое (*SOMEFUNC CALLBACK) ();
SOMEFUNC SomeFunc;
};
пустое __stdcall OnSomeFunc ()
{
MessageBox (NULL, l " здравствулте! ", l " испытание ", MB_OK | MB_SETFOREGROUND);
}
wWinMain int APIENTRY (hInstance HINSTANCE, hPrevInstance HINSTANCE,
lpCmdLine LPWSTR, nCmdShow int)
{
SomeClass * myClass = новое SomeClass ();
myClass->SomeFunc = OnSomeFunc;
myClass->SomeFunc ();
myClass delete;
возвращение 0;
}
|