编译类型不匹配
VB调用VC 生成的DLL 出现: 编译类型不匹配
VC 函数原型是:
typedef struct
{
INT8U Type;//0=固定, 1=渐变
INT8U Red;//0=没有Red分量, 1=有Red分量。
INT8U Green;
INT8U Blue;
INT16U Level;//1-16的灰度级别
} GRAY_TEST_PARAM;
INT32U __stdcall czCrayTest(GRAY_TEST_PARAM grayParam);
VB 调用方法是:
Public Type GRAY_TEST_PARAM
Types As Byte '//0=固定, 1=渐变
red As Byte '//0=没有Red分量, 1=有Red分量。
green As Byte
blue As Byte
Level As Integer '//1-16的灰度级别
End Type
Public Declare Function czCrayTest Lib "JetFileII.dll" (ByVal grayparam As Any) As Long
Dim grayparam As GRAY_TEST_PARAM
grayparam.Types = 0
grayparam.Level = 16
grayparam.red = 1
grayparam.green = 1
grayparam.blue = 1
czCrayTest grayparam
我对VB 不是很熟悉, 请各位大侠帮帮忙,要怎么做?
[解决办法]
http://topic.csdn.net/u/20080410/10/85235b13-0af8-4938-8974-9b5e3687d548.html