How can I pass a variable (like a string) to a dialog box? Lets say I create it like this:
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
g_Hinst=hInstance;
DialogBox(hInstance, MAKEINTRESOURCE(dlgMain), NULL, (DLGPROC)dlgMainProc );
return 0;
}