The first parameter of both functions is a PAnsiChar. In D2009 , OemToChar() maps to OemToCharW() now, not to OemToCharA() anymore. Make sure your uses clause includes Winapi.Windows, or that Winapi is inluded in your Project's "Unit Scope Names" field in the Project Options if the uses clause includes 'Windows' instead (which it likely does since you are migrating). 'OemToChar()' is declared in '', just like the IDE says. Result := Result '\''' LowerCase(IntToHex(Ord(Str), 2)) ![]() Getting error 'Low Bound Exceeds High Bound' in following code.įunction StrToRichText(const Str: string): string.Incompatiable Types: 'PAnsiChar' and 'PWideChar' in below function on line with OemToChar(p1, p2).įunction OemToAnsi(const Str: string): string What is the location of windows.pas located on the system ? or How to resolve it ? I am not able to open any delphi component file. ![]() When I Ctrl Click on that function it shows message Unable to locate ''. I am not able to find defination of function OemToChar in XE3. Can someone please help me to resolve these. I am getting some erros while compiling it. I am migrating my Delphi 5 application to Delphi XE3.
0 Comments
Leave a Reply. |