ui/wpf/UIwrapper/UIwrapper/window.cpp

Sun, 22 Jan 2017 17:23:20 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 22 Jan 2017 17:23:20 +0100
changeset 135
b9dc9cdfa23a
parent 83
a38aec91bd66
permissions
-rw-r--r--

refactors architecture (WPF)



#include "stdafx.h"
#include <stdio.h>

#include "window.h"

#using "UIcore.dll"

UI_EXPORT void* __stdcall UIwindow(char *title, void *uiobj) {
	UI::MainWindow ^window = gcnew UI::MainWindow(gcnew String(title), IntPtr(uiobj));
	gcroot<UI::MainWindow^> *ptr = new gcroot<UI::MainWindow^>();
	*ptr = window;
	return ptr;
}

mercurial