5 |
5 |
6 #include "window.h" |
6 #include "window.h" |
7 |
7 |
8 #using "UIcore.dll" |
8 #using "UIcore.dll" |
9 |
9 |
10 UI_EXPORT void* UIwindow(char *title, void *uiobj) { |
10 UI_EXPORT void* __stdcall UIwindow(char *title, void *uiobj) { |
11 UI::MainWindow ^window = UI::MainWindow::CreateMainWindow(gcnew String(title), IntPtr(uiobj)); |
11 UI::MainWindow ^window = UI::MainWindow::CreateMainWindow(gcnew String(title), IntPtr(uiobj)); |
12 return ObjectToPtr(window); |
12 gcroot<UI::MainWindow^> *ptr = new gcroot<UI::MainWindow^>(); |
|
13 *ptr = window; |
|
14 return ptr; |
13 } |
15 } |
|
16 |
|
17 |