Loadstring Fails on Win98
-
Dear All, I have developed an application with VC++6sp4 on WinNT4sp6 and everything is fine and dandy. The big problem occurs when I compile the same code on a Win98 machine. All calls to Loadstring fail returning an empty string. :mad: I was wondering if anyone else has experienced this behaviour, and if so how to go about fixing it Thanks inadvance Lea
-
Dear All, I have developed an application with VC++6sp4 on WinNT4sp6 and everything is fine and dandy. The big problem occurs when I compile the same code on a Win98 machine. All calls to Loadstring fail returning an empty string. :mad: I was wondering if anyone else has experienced this behaviour, and if so how to go about fixing it Thanks inadvance Lea
Lea, can't say I've ever had this problem. I presume you are refering to the WIN32 API version of LoadString? Looking at it in the MSDN my first guess was that maybe you are having buffer problems, NT being UNICODE and Win98 being...well what is it exactly? ;) (sorry that was not very helpfull was it). My advice is to try using the API call GetLastError(), which will return you an error code (that may have been set by the LoadString call). There is an error list in the MSDN some where which will help you decipher what the error code means. Accept that some days you are the pigeon and some days the statue.