char * 就可以啦
Declare Function yourfunction Lib "your.dll" (ByVal svSrc As String, 
ByVal szOrg as String) As Boolean
其实最好使用COM组件
可以定义
HRESULT conv([in] BSTR src,[out,retval] BSTR *org) 

解决方案 »

  1.   

    我对com还不是很了解,你还是写个DLL的例子吧。
    函数在VC中如何声明,在VB中如何调用(返回的值在VB中是String型,不是Boolean型),
    在VB中用msgbox显示出来,谢谢(一定给分!)
      

  2.   

    用指针。
    DLL函数定义:char* func(...){...;return (your string);}
    主程序:typedef int(*FT) (...);
           char str[...]="";
           FT  f1;
           //loadlibrary here;
           //f1=get func address here;
           ...
           sprintf(str,(char*)f1(...));
           //str包含了你返回的字符串。
    VB调用时,要求DLL中声明_stdcall;
    至于数据类型的转换,查一下MSDN吧。
      

  3.   

    如何把Char*给VB中的String变量?