关于CH365DLL

问大家一个问题啊,我现在已经完成了一块由CH365通过双口RAM与单片机的通讯的一块控制卡,但是,在做界面的时候发现,当时光盘中的CH365DLL.H是没办法调用的,甚至他原来自带的DEBUG365.C都没办法编译通过,然后,我用最简单的方法直接调用CH365DLL.H,引用其中一个函数,结果都是不行的,大家有没有遇到过这种情况啊?有没有什么解决方法啊? --------------------Configuration: DEBUG365 - Win32 Debug-------------------- Linking... DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365mCloseDevice@4 DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365mOpenDevice@12 DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365mWriteIoDword@12 DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365mReadIoDword@12 DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365mWriteIoWord@12 DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365mReadIoWord@12 DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365mWriteIoByte@12 DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365mReadIoByte@12 DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365GetMemBaseAddr@4 DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365mGetIoBaseAddr@8 DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365mGetIntLine@8 DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365mWriteMemDword@12 DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365mReadMemDword@12 DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365mWriteMemByte@12 DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365mReadMemByte@12 DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365mWriteConfig@12 DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365mReadConfig@12 DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365mSetA15_A8@8 DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365mWriteI2C@16 DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365mReadI2C@16 DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365GetVersion@0 DEBUG365.OBJ : error LNK2001: unresolved external symbol _CH365GetDrvVersion@0 LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/DEBUG365.exe : fatal error LNK1120: 23 unresolved externals Error executing link.exe.

DEBUG365.exe - 24 error(s), 0 warning(s)

您使用的方法不对。 比如:您把CH365DLL.H,CH365DLL.LIB等都放在同一文件夹下;设置里面是否设置过等等。 是您的使用有问题,找个会VC的帮您建一个完整的工程,编译一下就 好了


问题已经解决,谢谢楼上的,下面开始做CH365到DSP了


只有登录才能回复,可以选择微信账号登录