1
General (but related to Code::Blocks) / Re: Display resolution issue
« Last post by Miguel Gimenez on Yesterday at 10:47:15 am »The quickest solution is adding libonecore.a to the linker.
When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.
#include <windows.h>
#include <iostream>
typedef HRESULT (WINAPI *GetIntegratedDisplaySize_t)(double*);
int main()
{
HMODULE hKernelBase = LoadLibraryW(L"kernelbase.dll");
if (!hKernelBase)
{
std::wcout << L"Failed to load kernelbase.dll\n";
return 1;
}
auto GetIntegratedDisplaySize =
(GetIntegratedDisplaySize_t)GetProcAddress(
hKernelBase,
"GetIntegratedDisplaySize"
);
if (!GetIntegratedDisplaySize)
{
std::wcout << L"API not available\n";
return 1;
}
double size = 0.0;
HRESULT hr = GetIntegratedDisplaySize(&size);
if (SUCCEEDED(hr))
{
std::wcout << L"Integrated display size: "
<< size
<< L" inches\n";
}
FreeLibrary(hKernelBase);
}
Hi, Xaviou, I'm not sure why the "at" is preferred instead of "[]"?Well, I don't either really know
It's a solution given by chatgpt to solve this building problem:ArrayChecks is a wxArrayBool, and with GCC 15, the non-const [] operator of wxBaseArray<bool> breaks (bool& is impossible with vector<bool>)
We have some discussion here: New wxWidgets releasesI apologize : I had this solution just after rev13802 (solving the first building problem).
Hi.
There is also some few code modifications to the wxSmith plugin for wxWidgets-3.3.2.
Attached is a patch from svn 13810.
Regards
Xav'