Vladimir Pankratov <[EMAIL PROTECTED]> writes: > @@ -50,10 +51,17 @@ > int nOldWidth; /* Holds the previous client area width */ > int nOldHeight; /* Holds the previous client area height */ > > +TCHAR szLoadedString[250]; /* Variable where load string from > resource*/ > + > BOOL bInMenuLoop = FALSE; /* Tells us if we are in the menu loop */ > > TASKMANAGER_SETTINGS TaskManagerSettings; > > +BOOL GetStringFromRes(UINT uID) > +{ > + LoadStringA(hInst, uID, szLoadedString, sizeof(szLoadedString)); > + return TRUE; > +}
That's ugly, you should return string somehow, not use a global variable. -- Alexandre Julliard [EMAIL PROTECTED]