Home » U++ Library support » U++ Core » Dynamic Linking
Dynamic Linking [message #95] |
Thu, 24 November 2005 04:32 |
jeff1101
Messages: 11 Registered: November 2005 Location: Philippines
|
Promising Member |
|
|
I am trying to load a DLL file created in Visual C++ ver. 6. using
a DLI file. Here is my file name xdb.dli
FN(void,InitXDB,(const char *DSNname, bool bUseConnString))
FN(void, CloseXDB, ());
FN(int, ExecuteSQL, (char *SQLstmt))
FN(void, QuerySelect, (const int ColNum,const int QueryID, char *pValue, char *pName))
FN(void, QueryNext, (const int QueryID))
FN(void, CloseQuery, (const int QueryID))
FN(void, BeginTrans, ())
FN(void, EndTrans, ())
FN(long, GetColumnSize, (const int QueryID))
FN(bool, QueryEnd, (const int QueryID))
I added the following to the .cpp that will use the DLL
(at the topmost , after all my includes, etc.)
#define DLLFILENAME "XDB.dll"
#define DLIMODULE xdb
#define DLIHEADER <Test/xdb.dli>
#define DLLCALL LNPUBLIC
#include <Core/dli.h>
However during compile I keep getting:
d:/MyApps/Test/xdb.dli:1: error: expected `)' before "InitXDB_type"
d:/MyApps/Test/xdb.dli:1: error: ISO C++ forbids declaration of `InitXDB_type' with no type
Do you have an example code using the DLI for dynamic linking
I can reference? Thanks...
|
|
|
|
|
Goto Forum:
Current Time: Mon Apr 29 10:24:23 CEST 2024
Total time taken to generate the page: 0.02129 seconds
|