I read about topdown and bottomdown programming,but if you write a library and share,isnt that altruistic programming?you might write a library for future use too or all your small code snippets end up in a big program few years in the future
anyway I dont know whats wrong with this trying to use this for sendmessage settext???
Code:
WCHAR szTitle[MAX_LOADSTRING]; // The title bar textWCHAR szWindowClass[MAX_LOADSTRING]; // the main window class name
WCHAR buttontext[MAX_LOADSTRING];
// Forward declarations of functions included in this code module:
ATOM MyRegisterClass(HINSTANCE hInstance);
BOOL InitInstance(HINSTANCE, int);
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM);
int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
_In_opt_ HINSTANCE hPrevInstance,
_In_ LPWSTR lpCmdLine,
_In_ int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
// TODO: Place code here.
// Initialize global strings
LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
LoadStringW(hInstance, IDC_WINDOWSPROJECT1, szWindowClass, MAX_LOADSTRING);
buttontext ="PRESSED";
last line with buttontext is error