c++ - Using MFC and ATL libraries without Visual Studio -
my question if can use mfc , atl libraries come psdk windows server 2003 r2, without visual studio. mean @ command prompt bcc32.exe or cl.exe?
i have found mfc , atl libraries in psdk windows server 2003 r2 not know if these libraries can used without visual stuio ide! need before using mfc , atl @ command prompt?
thanks!
if have headers, , either source code or compiled version of rest, yes can used without visual studio. visual studio ide invokes compiler etc. you. command line tools job yourself.
here's minimal mfc program can try out:
#define winver 0x0500 // windows 2000 , up. #include <afxwin.h> // mfc core , standard components typedef cframewnd mainwindow; class app : public cwinapp { private: bool createthemainwindow() { static char const title[] = "a general top level mfc window"; mainwindow* const pwnd = new mainwindow; if( !pwnd ) { return false; } // pre-standard 'new' in mfc... m_pmainwnd = pwnd; pwnd->create( null, title ); return true; } public: virtual bool initinstance() { cwinapp::initinstance(); if( !createthemainwindow() ) { return false; } m_pmainwnd->showwindow( sw_show ); m_pmainwnd->updatewindow(); return true; } }; app theapp;
cheers & hth.,
Comments
Post a Comment