You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am making a plugin for other software and want to use dlangui as the GUI for the plugin. Luckily I've achieved this on windows, unfortunately I can't initialize dlangui on mac, can anyone provide ideas? Thank you very much!
My successful code on windows:
import dlangui.platforms.windows.winapp;
auto ulib = LoadLibraryA("user32.dll");
alias SetProcessDPIAwareFunc = int function();
auto setDpiFunc = cast(SetProcessDPIAwareFunc) GetProcAddress(ulib, "SetProcessDPIAware");
if (setDpiFunc) // Should never fail, but just in case...
setDpiFunc();
auto w32platform = new Win32Platform();
if (!w32platform.registerWndClass())
{
MessageBoxA(null, "This program requires Windows NT!", "DLANGUI App".toStringz, MB_ICONERROR);
return false;
}
initFontManager();
initResourceManagers();
currentTheme = createDefaultTheme();
Platform.setInstance(w32platform);
The text was updated successfully, but these errors were encountered:
Hi! Unfortunately, I don't own any Mac machinery, so I can't be of much help here. I know for a fact that dlangui uses SDL on Mac, so that's something you'd have to look into when working on this problem.
I'll try to ask around D Discord server if anyone can help though
Hi! Unfortunately, I don't own any Mac machinery, so I can't be of much help here. I know for a fact that dlangui uses SDL on Mac, so that's something you'd have to look into when working on this problem. I'll try to ask around D Discord server if anyone can help though
OK, thank you very much. If I have my own research results, I will also publish them here.
I am making a plugin for other software and want to use dlangui as the GUI for the plugin. Luckily I've achieved this on windows, unfortunately I can't initialize dlangui on mac, can anyone provide ideas? Thank you very much!
My successful code on windows:
The text was updated successfully, but these errors were encountered: