How to Create the CAPL DLL and integrated it into CANOE

来源:互联网 发布:js post 下载文件 编辑:程序博客网 时间:2024/06/12 22:19

 

Open CAPL DLL Demo project with visual studio

Location: C:\Users\Public\Documents\Vector\CANoe\8.5(x64)\CANoe Sample Configurations\Programming\CAPLdll\VS 2005 Project

 

Add your Implementation in capidll.cpp file

 

Note: you also can add the Implementation to other Cpp file,but need to include some Header file

 

If the function need to be exported, do below things

1.     Add Key word for the function CAPLEXPORT farCAPLPASCAL

2.     Find below table then add your functiondescription in it

 

 

1st: The function name of CAPL

2nd: The function name which want to be exported

3rd: The Class Name of DLL

4th: The description of function

5th: The Type of result value

    L :long, 

    V:void,

    B:Array,

    D: int

 

6th: The number of input parameter

7th: The Type of input parameter

8th: If the input parameter contains Array, we should use\001 to file it, for other type we can use \000

9th: The name of input parameter

 

Compiling the project and ouput CAPL DLL

To integrated the CAPL DLL

  To Use #Pragma toload the DLL, FOR My dll there are 3 function can be used by CAPL

 

To Defined the automatic Test case to visit these functions

 

0 0