我自制两个dll。暂定名为a.dll,b.dll
我又使用了两个unit来分别静态调用对应的dll。
这两个dll是互相对立的。就像Win98的dll库和Win2K的dll库
只要其中一个就行了。
于是我在Uses中写上
{$IF FileExists('a.dll')}
uUnit1,
{$ELSE}
uUnit2,
{$IFEND}在implementation中有关的地方。

{$IF FileExists('a.dll')}
uUnit1.Function;
{$ELSE}
uUnit2.Function;
{$IFEND}编译时,报错"Constant expression expected"
且,出错在implementation段。
该如何做呢?