And make it compile

This commit is contained in:
UnknownShadow200 2024-10-16 22:05:53 +11:00
parent ec2993933c
commit 705106e324

View file

@ -209,15 +209,14 @@ void OpenFileDialog(void) {
//Windows::Storage::StorageFile file = picker->PickSingleFileAsync(); //Windows::Storage::StorageFile file = picker->PickSingleFileAsync();
} }
struct CCApp : implements<CCApp, IFrameworkView, IFrameworkViewSource> struct CCApp : implements<CCApp, IFrameworkView>
{ {
public:
// IFrameworkView interface // IFrameworkView interface
void Initialize(const CoreApplicationView& view) void Initialize(CoreApplicationView const& view)
{ {
} }
void Load(const hstring& entryPoint) void Load(hstring const& entryPoint)
{ {
} }
@ -234,19 +233,20 @@ public:
dispatcher.ProcessEvents(CoreProcessEventsOption::ProcessUntilQuit); dispatcher.ProcessEvents(CoreProcessEventsOption::ProcessUntilQuit);
} }
void SetWindow(const CoreWindow& win) void SetWindow(CoreWindow const& win)
{ {
} }
};
// IFrameworkViewSource interface struct CCAppSource : implements<CCAppSource, IFrameworkViewSource>
IFrameworkView CreateView() {
{ IFrameworkView CreateView() {
return *this; return make<CCApp>();
} }
}; };
int __stdcall wWinMain(void*, void*, wchar_t** argv, int argc) int __stdcall wWinMain(void*, void*, wchar_t** argv, int argc)
{ {
auto app = CCApp(); auto app = make<CCAppSource>();
CoreApplication::Run(app); CoreApplication::Run(app);
} }