Delphi给VB使用得DLL,必须将字符串声明为PChar。而不能是string。因为string必须先Uses ShareMem,而且还要搭上borlandmm.dll。我以前测试时,发现这样做在Delphi自己得产品没问题,但是其它开发工具似乎就有问题了。
所以最好用PChar。