ui/wpf/UIwrapper/UIwrapper/window.cpp

changeset 135
b9dc9cdfa23a
parent 83
a38aec91bd66
equal deleted inserted replaced
134:69e8e0936858 135:b9dc9cdfa23a
6 #include "window.h" 6 #include "window.h"
7 7
8 #using "UIcore.dll" 8 #using "UIcore.dll"
9 9
10 UI_EXPORT void* __stdcall 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 = gcnew UI::MainWindow(gcnew String(title), IntPtr(uiobj));
12 gcroot<UI::MainWindow^> *ptr = new gcroot<UI::MainWindow^>(); 12 gcroot<UI::MainWindow^> *ptr = new gcroot<UI::MainWindow^>();
13 *ptr = window; 13 *ptr = window;
14 return ptr; 14 return ptr;
15 } 15 }
16 16

mercurial