头文件中有这2句
#define SendMessage SendMessageA
#import "Meter2Cash.Advantis.StatusMessage.tlb" rename_namespace("SMS")然后编译出错
note C6311: c:\program files\microsoft visual studio\vc98\include\winuser.h(2525) : see previous definition of 'SendMessage'
fatal error C1084: Cannot read type library file: 'Meter2Cash.Advantis.StatusMessage.tlb': Error loading type library/DLL.
分别对应上2行的错误,请问是环境参数 没配好吗?要怎么解决?
#define SendMessage SendMessageA
#import "Meter2Cash.Advantis.StatusMessage.tlb" rename_namespace("SMS")然后编译出错
note C6311: c:\program files\microsoft visual studio\vc98\include\winuser.h(2525) : see previous definition of 'SendMessage'
fatal error C1084: Cannot read type library file: 'Meter2Cash.Advantis.StatusMessage.tlb': Error loading type library/DLL.
分别对应上2行的错误,请问是环境参数 没配好吗?要怎么解决?
第二个自然就是目录的问题,你用了相对路径,最好用绝对路径,指明这个tlb文件在哪里