Mercurial > dwindows
view dwtestoo.cpp @ 2862:7479ab54e014
Linux: Fixes for building dwtestoo on Linux/gcc.
GTK cannot be included in an extern "C" section.
Make sure ARCH is not set on platforms other than MacOS.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 15 Dec 2022 14:44:48 +0000 |
parents | ef7a414f9b71 |
children | 939fbceec13f |
line wrap: on
line source
#include <dw.hpp> class MyWindow : public DW::Window { public: MyWindow(); }; MyWindow::MyWindow() { SetText("Basic application"); SetSize(200, 200); } int main(int argc, char* argv[]) { DW::App *app = new DW::App(argc, argv, "org.dbsoft.dwindows.dwtestoo"); MyWindow *window = new MyWindow(); window->Show(); app->Main(); app->Exit(0); return 0; }