i wondering, possible use entry point of win32 program - winmain - class method? example;
class capp { public: capp(); ~capp(); cguimanager* guimanager; cservermanager* servermanager; caudiomanager* audiomanager; int winapi winmain(hinstance hinstance, hinstance hinst, lpstr lpcmdline, int ncmdshow); static lresult callback wndproc(hwnd hwnd, uint nmsg, wparam wparam, lparam lparam); };
thanks!
no. winmain
cannot member of class "entry" point of program. , matter, winmain
cannot in namespace (other global namespace). example, user::winmain
shown below cannot "entry" point of program.
namespace user { int winapi winmain(hinstance, hinstance, lpstr, int ); }
entry point of program must be defined in global namespace.
however, can have function name inside class (or in other namespace), can call actual entry point winmain
defined in global namespace. butcapp::winmain
(or user::winmain
) in no way "entry" point of program.
Comments
Post a Comment