#ifndef __WXMICROWIN__
wxChar *wxLoadUserResource(const wxString& resourceName, const wxString& resourceType)
{
- HRSRC hResource = ::FindResource(wxGetInstance(), resourceName, resourceType);
+ HRSRC hResource = ::FindResource(wxGetInstance(),
+ resourceName.wx_str(),
+ resourceType.wx_str());
if ( hResource == 0 )
return NULL;
wxStrncpy(s,theText,len);
s[len]=0;
- // wxChar *s = copystring(theText);
-
// Obsolete in WIN32
#ifndef __WIN32__
UnlockResource(hData);
return str;
}
-WXWORD WXDLLEXPORT wxGetWindowId(WXHWND hWnd)
+int WXDLLEXPORT wxGetWindowId(WXHWND hWnd)
{
- return (WXWORD)GetWindowLong((HWND)hWnd, GWL_ID);
+ return ::GetWindowLong((HWND)hWnd, GWL_ID);
}
// ----------------------------------------------------------------------------