mrDarker
2025-06-16 817d91396abc1cca6f1ef5abb1fd5fbfd3511268
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#pragma once
#include <vector>
#include "IServo.h"
#include "IUnit.h"
#include "IEquipment.h"
#include "IRemoteEquipment.h"
 
#ifdef _COMPILE_AS_LIB
    #warning "compiling as lib!"
#else
    #ifdef _DEBUG
        #ifndef _WIN64
            #pragma comment(lib, "../BEQibrarySDK/lib/Win32/Debug/BEQ.lib")
        #else 
            #pragma comment(lib, "../BEQLibrarySDK/lib/x64/Debug/BEQ.lib")
        #endif
    #else 
        #ifndef _WIN64
            #pragma comment(lib, "../BEQLibrarySDK/lib/Win32/Release/BEQ.lib")
        #else 
            #pragma comment(lib, "../BEQLibrarySDK/lib/x64/Release/BEQ.lib")
        #endif
    #endif
#endif // !BUILD_AS_LIB
 
///////////////////////////////////////////////////////////////////////////////////
//// Define C linkage if using a C++ compiler
///////////////////////////////////////////////////////////////////////////////////
#ifdef __cplusplus
extern "C" {
#endif
 
    ///////////////////////////////////////////////////////////////////////////////////
    //// Determine callling convention baesd on compiler
    ///////////////////////////////////////////////////////////////////////////////////
#ifdef __BORLANDC__
 
#ifdef __WIN32__
#define EXPORTED __declspec(dllexport) __stdcall
#else
#define EXPORTED FAR PASCAL __export
#endif // WIN32
 
#else // __BORLANDC__
 
 
#ifdef WIN32
#define EXPORTED __declspec(dllexport)
#else
#define EXPORTED FAR PASCAL __export
#endif // WIN32
 
#endif //__BORLANDC__
 
 
 
    /////////////////////////////////////////////////////////////////////////////////////
    //// µ¼³öº¯Êý
    ////////////////////////////////////////////////////////////////////////////////////
    int            EXPORTED    BEQ_Initialize();
    int            EXPORTED    BEQ_Term();
    int            EXPORTED    BEQ_CreateServo(BEQ::IServo*& pServo, const char* pszName);
    int            EXPORTED    BEQ_GetServo(BEQ::IServo*& pServo, const char* pszName);
    int            EXPORTED    BEQ_DestroyServo(BEQ::IServo* pServo);
    int            EXPORTED    BEQ_CreateEquipment(BEQ::IEquipment*& pEquipment, const char* pszName);
    int            EXPORTED    BEQ_GetEquipment(BEQ::IEquipment*& pEquipment, const char* pszName);
    int            EXPORTED    BEQ_DestroyEquipment(BEQ::IEquipment*& pEquipment);
 
#ifdef __cplusplus
};
 
#endif //__cplusplus