User forums > Help
what linker options we must use?
cambalinho:
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();
};
--- End code ---
it's a pointer.. that's my error :(
now i have more 2 Warnings:
1)
--- Code: ---if (inst->clrBackColor==-1)
--- End code ---
"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);
--- End code ---
"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 :(
Navigation
[0] Message Index
[*] Previous page
Go to full version