Recent Posts

Pages: 1 2 3 4 5 [6] 7 8 9 10
51
General (but related to Code::Blocks) / Re: Display resolution issue
« Last post by ollydbg on March 07, 2026, 07:56:37 am »
AI helps:

Code
#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);
}

I can compile and run the program under msys2/mingw64/gcc.
52
Nightly builds / Re: The 09 February 2026 build (13785) is out.
« Last post by ollydbg on March 07, 2026, 07:48:32 am »
Hi Xaviou, never mind. I really appreciate all your contributions to wxWidgets and Code::Blocks.
53
General (but related to Code::Blocks) / Re: Display resolution issue
« Last post by JoeH on March 07, 2026, 04:19:55 am »
I gave the recommended "Get" function a try.  Even though I included the sysinfoapi.h file in the main header file, the code will not compile successfully.  I get a error stating "GetIntegratedDisplaySize was not declared in this scope".

Joe
54
Nightly builds / Re: The 06 March 2026 build (13810) is out.
« Last post by Xaviou on March 06, 2026, 08:37:10 pm »
Hi.

32 bits version for Windows (and also 64 bits version) can be downloaded from my website.
I made both a wxWidgets-3.2.10 and wxWidgets-3.3.2 linked versions

Debian Trixie (64 bits) and Bookworm (32 and 64 bits) can be installed from my repo
The corresponding unsigned deb files can also be downloaded from the website page linked above.

Ubuntu-22.04, 24.10 and 25.10 versions can be installed from my ppa (they are now available for both amd64 and arm64 architectures).

Regards
Xav'
55
Nightly builds / The 06 March 2026 build (13810) is out.
« Last post by killerbot on March 06, 2026, 02:47:23 pm »
We switched to gcc 15.1.0 (on 23 May 2025) --> download the new wx/mingw dll's see link below

Get the compiler we use here : https://github.com/brechtsanders/winlibs_mingw/releases/download/15.1.0posix-12.0.0-ucrt-r1/winlibs-x86_64-posix-seh-gcc-15.1.0-mingw-w64ucrt-12.0.0-r1.7z

Get quick announcements through the RSS feed http://www.codeblocks.org/nightly/CodeBlock_RSS.xml

Before you use a nightly make sure you understand how it works.

A link to the unicode windows wxWidget dll(s) for Code::Blocks : https://sourceforge.net/projects/codeblocks/files/Binaries/Nightlies/Prerequisites/wxmsw32u_gcc_cb_wx328_2D_gcc1510-mingw64.7z
A link to Mingw64 dll's needed by Code::Blocks : http://sourceforge.net/projects/codeblocks/files/Binaries/Nightlies/Prerequisites/Mingw64dlls15.1.0.7z


The 06 March 2026 build is out.
  - Windows :
   http://sourceforge.net/projects/codeblocks/files/Binaries/Nightlies/2026/CB_20260306_rev13810_win64.7z
  - Linux :
   none

The current SDK version is : 2.25.0

Resolved Fixed:

  • lcbp: add the unified CodeBlocks cbps for Windows OS. (thanks gd_on)

Regressions/Confirmed/Annoying/Common bugs:


    56
    Nightly builds / Re: The 09 February 2026 build (13785) is out.
    « Last post by Xaviou on March 06, 2026, 10:05:55 am »
    Hi
    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:
    Quote from: chatgpt
    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 releases
    I apologize : I had this solution just after rev13802 (solving the first building problem).
    I updated to rev 13810 before creating the patch, and tested the build, but only with the patch, not without.

    Now that I have tested the rev 13810 "as is", I can confirm it works without the watch.
    Again, sorry.

    Regards.
    Xav'
    57
    Nightly builds / Re: The 09 February 2026 build (13785) is out.
    « Last post by ollydbg on March 06, 2026, 12:55:34 am »
    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'

    Hi, Xaviou, I'm not sure why the "at" is preferred instead of "[]"?

    We have some discussion here: New wxWidgets releases

    Thanks.

    58
    Nightly builds / Re: The 09 February 2026 build (13785) is out.
    « Last post by Xaviou on March 05, 2026, 08:40:48 pm »
    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'
    59
    Why do you need such feature.

    I think mostly, the files in the cbp are the same(mostly), but different OSs have different include search files and linker options.
    60
    Is there a script or program that would create a project file from 'Linux' to 'Windows' or vice versa?
    Pages: 1 2 3 4 5 [6] 7 8 9 10