vc ++中的错误-由于无效的返回类型或参数类型,未发出方法'PolCoefCalc' [英] error in vc++ - method 'PolCoefCalc' not emitted because of invalid return type or parameter type
问题描述
当我制作一个vb6 dll并将其添加到vc ++中时,会出现上述错误.
when i make a vb6 dll and add dll in vc++ it give the above error.
我们的vb6 dll代码如下:
our vb6 dll code is as :
将xArray(60)双重模糊化
Dim xArray(60) as double
将YArray(60)缩小为两倍
Dim YArray(60) as double
公共函数PolCoefCalc(ByRef pT()为双精度,ByRef pU()为双精度,ByRef pA()为双精度)
昏暗结果A为Double
'1 pT = y将此数组元素复制到我们的内部数组,即yArray
DataPoint = pN
Public Function PolCoefCalc(ByRef pT() As Double, ByRef pU() As Double, ByRef pA() As Double) As Double
Dim resultA As Double
'1 pT=y copy this array elements to our internal array i.e. yArray
DataPoint = pN
'用于插入从->到'Yarray'的'pT'数组的数据
对于i = 0到DataPoint
Yarray(i)= pT(i)
接下来我
'for insert data of 'pT' array from->to 'Yarray'
For i = 0 To DataPoint
Yarray(i) = pT(i)
Next i
'用于插入从->到'Xarray'的'pU'数组的数据
对于i = 0到DataPoint
Xarray(i)= pU(i)
接下来我
'for insert data of 'pU' array from->to 'Xarray'
For i = 0 To DataPoint
Xarray(i) = pU(i)
Next i
'将结果最终复制到pA数组中
对于i = 1 To DataPoint
pA(i-1)= xarray(i)
接下来我
'finally copy the result in pA array
For i = 1 To DataPoint
pA(i - 1) = xarray(i)
Next i
resultA = 0
PolCoefCalc = resultA
resultA = 0
PolCoefCalc = resultA
结束功能
请提供为什么vc ++不显示'PolCoefCalc'的解决方案.并显示消息由于无效的返回类型或参数类型而未发出方法'PolCoefCalc'"
Kindly provide the solution why vc++ not show the 'PolCoefCalc' and show the message 'method 'PolCoefCalc' not emitted because of invalid return type or parameter type'
推荐答案
This is the VB.NET forum. To find a VB6 forum, begin by looking here . For the C++ forum, start by looking here .
这篇关于vc ++中的错误-由于无效的返回类型或参数类型,未发出方法'PolCoefCalc'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!