Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function OEMTOANSI()
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00808349
Message ID:
00808356
Views:
18
Patrick,

Yes, OEMTOANSI is not supported in runtime. But you can convert the string with API:
Declare Long OemToChar in Win32API ;
	String @ Src, String @ Dst

InputStr = FileToStr("e:\sometext.txt")
OemToChar(@InputStr, @InputStr)
?InputStr
>Hi everybody
>I have created a comserver that needs to convert a String that was retrieved from an ASCII file (by FILETOSTR) into OEM codepage. For this purpose I simpley use OEMTOANSI. The help file tells me that this only is included for backword compatibility. However the suggested GETCP of course is not what I need.
>That is no problem as long as I am testing with running my code directly. One I compile the DLL and run it as such, I get "function is not implemented". I assume it was not implemented in the Multi Threaded Com-Server VFP-Runtime. Oops...
>Any suggestions?
>
>Patrick
Previous
Reply
Map
View

Click here to load this message in the networking platform