| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| I am getting the following compiler warning msg: [DCC Warning] ConfigINIFile.pas(661): H2443 Inline function 'AnsiSameStr' has not been expanded because unit 'Windows' is not specified in USES list what does it mean? |
|
#2
| |||
| |||
| "Ed Dressel" <none@none.com> wrote in message news:4899d43b$1@newsgroups.borland.com... > I am getting the following compiler warning msg: > > [DCC Warning] ConfigINIFile.pas(661): H2443 Inline function > 'AnsiSameStr' has not been expanded because unit 'Windows' is > not specified in USES list > > what does it mean? It means exactly what it says. On Windows, AnsiSameStr() calls CompareString(), which is declared in the Windows unit. Since AnsiSameStr() is marked as inlined, any code of yours that calls AnsiSameStr() can actually call CompareString() directly instead if Windows is in your 'uses' clause. Since it is not currently in your 'uses' clause, the function cannot be compiled inlined, thus the warning. Gambit |
|
#3
| |||
| |||
| add SysUtils to your USES list then |
|
#4
| |||
| |||
| Dennis Passmore wrote: > add SysUtils to your USES list then He already has it there. If he didn't, then the compiler would have complained about an undeclared identifier named AnsiSameStr. The warning plainly says that Windows is the one that's missing. -- Rob |
|
#5
| |||
| |||
| > On Windows, AnsiSameStr() calls CompareString(), which is declared in the > Windows unit. Since AnsiSameStr() is marked as inlined, any code of yours > that calls AnsiSameStr() can actually call CompareString() directly > instead if Windows is in your 'uses' clause. Since it is not currently in > your 'uses' clause, the function cannot be compiled inlined, thus the > warning. thanks. I did not know Delphi supported inline functions. |
|
#6
| |||
| |||
| Ed Dressel wrote: > thanks. I did not know Delphi supported inline functions. It's a relatively recent addition. Delphi 2006 I think. -- Peter Below (TeamB) Don't be a vampire (http://slash7.com/pages/vampires), use the newsgroup archives : http://www.tamaracka.com/search.htm http://groups.google.com |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.