Mercurial > dwindows
comparison dwtestoo.cpp @ 2864:939fbceec13f
Win: Add support for building the C++ dwtestoo with Visual C.
Need to use dwmain() macro instead of standard main() entrypoint for Windows.
Had to move the _dw_convertargs() definition outside of the dwmain() macro.
The macro can be called from C++ code changing the function definition.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 17 Dec 2022 01:50:26 +0000 |
parents | ef7a414f9b71 |
children | fd32dce7fecd |
comparison
equal
deleted
inserted
replaced
2863:f0a00c7c4ec1 | 2864:939fbceec13f |
---|---|
10 { | 10 { |
11 SetText("Basic application"); | 11 SetText("Basic application"); |
12 SetSize(200, 200); | 12 SetSize(200, 200); |
13 } | 13 } |
14 | 14 |
15 int main(int argc, char* argv[]) | 15 int dwmain(int argc, char* argv[]) |
16 { | 16 { |
17 DW::App *app = new DW::App(argc, argv, "org.dbsoft.dwindows.dwtestoo"); | 17 DW::App *app = new DW::App(argc, argv, "org.dbsoft.dwindows.dwtestoo"); |
18 MyWindow *window = new MyWindow(); | 18 MyWindow *window = new MyWindow(); |
19 | 19 |
20 window->Show(); | 20 window->Show(); |