如何在VB中调用VC做的DLL文件或VC的H文件?以下是些资料
extern "C" unsigned __declspec(dllexport) __cdecl SendSMS(void *p_DestNo, void *p_SvcType,
    unsigned p_Length, void *p_Content, unsigned char p_TpUid, unsigned char p_TpUdhi,
    void *p_ScheduleTime, unsigned short p_ExpireTime, unsigned short p_Times, unsigned short p_Interval,
    void *p_ChargeNo);

解决方案 »

  1.   

    申明一个VB的API!!!
    private declare function SendSMS(byval DestNo as long,byval SvcType as long,
    byval Length as integer, byval Content as long, byval TpUid as byte ,byval TPUdhi as byte,byval ScheduleTime as long ,bybal ExpireTime as integer ,byval Times as integer ,byval Interval integer ,byval ChargNo as long) as integer 注意要使用DEF文件,就免去了使用别名的麻烦!!!!!!!!
    LIBRARY   "xxx"
    EXPORT
        SednSMS