Author Topic: what linker options we must use?  (Read 5164 times)

Offline cambalinho

  • Multiple posting newcomer
  • *
  • Posts: 93
Re: what linker options we must use?
« Reply #15 on: November 11, 2023, 04:05:00 pm »
yes.. now it's fixed:
Code
a.KeyDown=[](int *key, int repeat)
    {
        if(CombinationKeys({'A','S'},{'W'},{'R','T'}, {'O','P'})==true)
        {
            a.Text="hello world";
            MessageBox(NULL,"hi", "hello",MB_OK);
        }

        if(*key==VK_ESCAPE)
            End();

    };
it's a pointer.. that's my error :(
now i have more 2 Warnings:
1)
Code
if (inst->clrBackColor==-1)
"warning: comparison of integer expressions of different signedness: 'color' {aka 'long unsigned int'} and 'int' [-Wsign-compare]|"
i use '-1' for transparent... can i avoid these warning?

2)
Code
hwnd = CreateWindowEx(NULL, classname, strCaption.c_str(),WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN,
                                  CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, parent, NULL, mod, this);
"warning: passing NULL to non-pointer argument 1 of 'HWND__* CreateWindowExA(DWORD, LPCSTR, LPCSTR, DWORD, int, int, int, int, HWND, HMENU, HINSTANCE, LPVOID)' [-Wconversion-null]|"
i don't know avoid these 2 warnings :(