You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
713 B
32 lines
713 B
#include "obcomglb.h"
|
|
#include "appdefs.h"
|
|
|
|
// BUGBUG - This function is not very effecient since it requires a alloc/free for each validation
|
|
// plus strtok will tokenize the fill string requring a full search of the string.
|
|
BOOL IsValid(LPCWSTR pszText, HWND hWndParent, WORD wNameID)
|
|
{
|
|
//ASSERT(pszText);
|
|
|
|
WCHAR* pszTemp = NULL;
|
|
BOOL bRetVal = FALSE;
|
|
|
|
pszTemp = _wcsdup (pszText);
|
|
|
|
if (lstrlen(pszTemp))
|
|
{
|
|
WCHAR seps[] = L" ";
|
|
WCHAR* token = NULL;
|
|
token = wcstok( pszTemp, seps );
|
|
if (token)
|
|
{
|
|
bRetVal = TRUE;
|
|
}
|
|
}
|
|
|
|
free(pszTemp);
|
|
|
|
|
|
return bRetVal;
|
|
|
|
}
|
|
|