Добавил:
korayakov
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Лабы / 2 / lab.01.by mice / fexchange / temp_main
.cpp// #include <windows.h>
#include <afx.h>
#include <afxwin.h>
#include <afxcmn.h>
#include <afxdlgs.h>
#include "fx_core.h"
#include "fx_gui.h"
class CMyApp : public CWinApp {
private:
fx_ns::cfx_gui *_gui;
fx_ns::cfx_core *_core;
public:
CMyApp();
virtual BOOL InitInstance();
};
CMyApp::CMyApp() {
}
BOOL CMyApp::InitInstance() {
_core = new fx_ns::cfx_core;
_gui = new fx_ns::cfx_gui;
_gui->attach_core(_core);
// _core->attach_if(_gui);
// _core->exec_cmd(CMD_LOAD_UI, "gui_mfc.dll");
// _core->run();
// _gui->attach(_core);
_gui->run();
return TRUE;
};
CMyApp theApp; // запуск приложения
Соседние файлы в папке fexchange