Message from C, C++ discussions

January 2020

— Meow

— 

Int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
WNDCLASSEX wc;
HWND hwnd;
MSG Msg;

//Step 1: Registering the Window Class
wc.cbSize = sizeof(WNDCLASSEX);
wc.style = 0;
wc.lpfnWndProc = WndProc;
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = hInstance;
wc.hIcon = LoadIcon(NULL, szIconName);
wc.hCursor = LoadCursor(NULL, IDC_NO);
wc.hbrBackground = (HBRUSH)(COLOR_WINDOW + 3);
wc.lpszMenuName = NULL;
wc.lpszClassName = g_szClassName;
wc.hIconSm = LoadIcon(NULL, IDI_ASTERISK);

— Char szIconName[] = "IDI_ICON1";

— Can anybody help with wc.hIcon = LoadIcon(NULL, szIconName);

— SzIconName do not show my icon

— Why do you use pure WinApi?

— Why not???

— Because there are more convenient technologies to build UIs?

— For example

— WinApi is ugly af, not readable and support cost is very high

— Qt, if we are talking about C++

— Crossplatform, more high-level and readable framework to build desktop UI