恭喜,你发布的帖子
发布于 2018-08-23 16:19:08
3楼
利用C编译器创建动态链接库"T1_C.dll
extern "C" __declspec (dllexport) int aufruf1 (int a);
#include <stdio.h>
#include <windows.h>
FILE *h_test;
FILE *h_trace;
extern "C" __declspec (dllexport) int aufruf1(int a)
{
h_test= fopen ("C:/temp/test_dll.txt","a");
if (h_test)
{
fprintf(h_test, "Function 'aufruf1' was called!\n");
fclose (h_test );
}
a+=100;
在一个按钮的事件的“鼠标单击”C动作中输入下面的C脚本:
#include "apdefap.h"
void OnClick(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName)
{
#pragma code ("c:/temp/T1_C.dll")
int aufruf1(int a);
#pragma code ()
int value;
value = GetTagDouble("var1"); //Return-Type: double
SetTagDouble("result",aufruf1(value)); //Return-Type: BOOL
}
return a;
};
也是要知道接口函数啊 也是要知道接口函数啊
请填写推广理由:
分享
只看
楼主