我的程序调用vc写成的ATPSystem.dll.里面有个函数ArriveTimePredict:
extern "C" ATPSYSTEM_API void _stdcall ArriveTimePredict(int Direction,int
RouteFlag,int SectionFlag,int StopStationFlag,double HisAveVelocity,
double longitude,double latitude,double v,int GPShour,int GPSminute,
int GPSsecond)
我在Module里面声明:
Declare Function ArriveTimePredict Lib "ATPSystem.dll" (ByVal Direction As Integer, RouteFlag As Integer, SectionFlag As Integer, StopStationFlag As Integer, HisAveVelocity As Double, longitude As Double, latitude As Double, v As Double, GPShour As Integer, GPSminute As Integer, GPSsecond As Integer) As Long但是程序在调用的时候:
Private Sub StopSearchCmd_Click()
Call ArriveTimePredict(0, 202, 0, 0, 3.4, 106.4357, 29.6234, 11, 7, 15, 34)
End Sub
就会报错can't find DLL entry point ArriveTimePredict in ATPSystem.dll!请教各位高手该如何解决啊?!
extern "C" ATPSYSTEM_API void _stdcall ArriveTimePredict(int Direction,int
RouteFlag,int SectionFlag,int StopStationFlag,double HisAveVelocity,
double longitude,double latitude,double v,int GPShour,int GPSminute,
int GPSsecond)
我在Module里面声明:
Declare Function ArriveTimePredict Lib "ATPSystem.dll" (ByVal Direction As Integer, RouteFlag As Integer, SectionFlag As Integer, StopStationFlag As Integer, HisAveVelocity As Double, longitude As Double, latitude As Double, v As Double, GPShour As Integer, GPSminute As Integer, GPSsecond As Integer) As Long但是程序在调用的时候:
Private Sub StopSearchCmd_Click()
Call ArriveTimePredict(0, 202, 0, 0, 3.4, 106.4357, 29.6234, 11, 7, 15, 34)
End Sub
就会报错can't find DLL entry point ArriveTimePredict in ATPSystem.dll!请教各位高手该如何解决啊?!
Declare Function ArriveTimePredict Lib "ATPSystem.dll" (ByVal Direction As Integer, ByVal RouteFlag As Integer, ByVal SectionFlag As Integer, ByVal StopStationFlag As Integer, ByVal HisAveVelocity As Long, ByVal longitude As Long, ByVal latitude As Long, ByVal v As Long, ByVal GPShour As Integer, ByVal GPSminute As Integer, ByVal GPSsecond As Integer) As Long
bad DLL calling convention