各位大虾,小弟遇到一急需解决的难题,匆忙来不及自己钻研了
所以请各位高手给小弟恶补一下!
问题的核心在于:在vb中怎么样调用vc生成的dll。
最好有实例说明。
多谢多谢了!!

解决方案 »

  1.   

    TO jlum99(闲人) :
    我是想要一些例子。
    我现在涉及到的是关于串口通讯的问题。
    底层通讯由vc实现。
      

  2.   

    #ifndef _TI_2_DLL
    #define _TI_2_DLLstruct UIDStruct{
    UCHAR *pUID;
    int rt;
    int iCard;
    };extern "C" __declspec(dllimport) int __stdcall InitCom(char* cPortNr);
    extern "C" __declspec(dllimport) int __stdcall CloseCom();
    extern "C" __declspec(dllimport) int __stdcall InitReader();
    extern "C" __declspec(dllimport) UIDStruct __stdcall DetectUID();
    extern "C" __declspec(dllimport) int __stdcall ReleaseReader();
    extern "C" __declspec(dllexport) int __stdcall SetCom();
    #endif