root/applications/robust/DDEClient.h

Revision 1361, 1.9 kB (checked in by sindj, 13 years ago)

Do main.cpp pridelano automaticke odhadovani struktury modelu a automaticke generovani pripustnych modelu. JS

Line 
1// Header for using DDEClient.dll in other C/C++ programs
2//
3// Author:  Robert Matovinovic
4// Version: 0.02
5// Date:    04.10.2006
6//
7#include "windows.h"
8
9// DDE data structure for access data received by DDE transaction
10typedef struct {
11        // pointer to begin of dde data returned by DdeAccessData
12        BYTE* pData;
13        // length of dde data returned by DdeAccessData
14        DWORD dwLen;
15        // string pointer to dde data, if the data should accessed as string
16        char* pszData;
17        // ID of transaction, used to determine completion of asynchronous transaction
18        DWORD dwTransID;
19        // ID of transaction, returned by callback function with asynch. transaction
20        DWORD dwCbTransID;
21        // string for access type of data
22        char szAccType[7];
23} DCDATAACCESS;
24
25#define DCDllImport extern "C" _declspec( dllimport )
26
27//
28// imported variables
29//
30// boolean used by DCLastError
31DCDllImport bool bDCErrorExport;
32// pointer to dde data access structure
33DCDllImport DCDATAACCESS* *DCDA;
34
35//
36// imported functions
37//
38DCDllImport bool DCRequestString(WORD wC,
39                                                                 char szItem[], 
40                                                                 int nTimeout);
41DCDllImport bool DCRequest(WORD wC,
42                                                   char szItem[], 
43                                                   char szFormat[], 
44                                                   int nTimeout );
45DCDllImport bool DCTransaction(WORD wC,
46                                                           char szType[], 
47                                                          char szItem[],
48                                                          char szData[],
49                                                          char szFormat[], 
50                                                          int nTimeout,
51                                                          char szAccess[]);
52DCDllImport bool DCConnect(WORD* pConvNo,
53                                                   char szService[], 
54                                                        char szTopic[]);
55DCDllImport bool DCDisconnect(WORD wConvNo);
56DCDllImport bool DCInit();
57DCDllImport bool DCUninit();
58DCDllImport char* DCLastError();
59DCDllImport bool DCAsynchTransactionCompleted(WORD wC, DWORD dwTransID, bool bWait);
60DCDllImport bool DCFreeDdeMem(WORD wC);
61DCDllImport void DCFinalize();
62DCDllImport bool DCAbandonTransaction(WORD wC, DWORD dwTransID);
63DCDllImport char* DCVersion();
64
Note: See TracBrowser for help on using the browser.