- 论坛徽章:
- 1
|
本帖最后由 nizvoo 于 2010-08-05 23:32 编辑
给老大的接口被老大修改成这样了,要偶用C语言实现,,
奶茶dsk 发表于 2010-08-04 14:59 ![]()
用什麼語言實現關係不大,關鍵是要提供c語言接口。一般來講接口差不多是這樣- #ifndef __EXPORT_H__
- #define __EXPORT_H__
- #include "gsData.h"
- #if defined(__cplusplus)
- extern "C" {
- #endif
- Int32 GetAppVersion();
- Int32 SetName(const gsChar*);
- Int32 SetAppVersion(const gsChar*);
- Int32 SetUpdateDate(const gsChar*);
- Int32 SetServer(const gsChar*, Int16); //address port
- Int32 SetActionCount(Int32);
- Int32 SetActionName(Int32, const gsChar*);
- const gsChar* GetActionName(Int32);
- Int32 SendActionStatus(Int32, Int32);
- Int32 SendPulsePacket(Int32, void*);
- #if defined(__cplusplus)
- }
- #endif
- #endif
复制代码 |
|