How to Create the CAPL DLL and integrated it into CANOE

 

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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

寻找幸存者

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值