But, what problem ???
for example:
....
typedef string (CALLBACK* EXECSQL)(string, string, int);
typedef int (CALLBACK* MSGBOX) (string, int);
class SCRIPTENGINE_EXPORT ScriptEngine
{
public:
ScriptEngine();
~ScriptEngine();
bool LoadScripts(string);
void Clear();
int CallFunction(string cFunction, ScriptVal sVal, string& cOut);
void GetLastError(string &cError);
void SetPtrExecSql(EXECSQL pfnExecSql);
void SetPtrMsgBox (MSGBOX pfnMsgBox);
private:
string m_Scripts;
string m_Error;
};
....
typedef string (CALLBACK* EXECSQL)(string, string, int);
typedef int (CALLBACK* MSGBOX) (string, int);
class SCRIPTENGINE_EXPORT ScriptEngine
{
public:
ScriptEngine();
~ScriptEngine();
bool LoadScripts(string);
void Clear();
int CallFunction(string cFunction, ScriptVal sVal, string& cOut);
void GetLastError(string &cError);
void SetPtrExecSql(EXECSQL pfnExecSql);
void SetPtrMsgBox (MSGBOX pfnMsgBox);
private:
string m_Scripts;
string m_Error;
};
To copy to clipboard, switch view to plain text mode
scriptengine_global.h
#ifndef SCRIPTENGINE_GLOBAL_H
#define SCRIPTENGINE_GLOBAL_H
#include <QtGlobal>
#ifdef SCRIPTENGINE_LIB
#define SCRIPTENGINE_EXPORT Q_DECL_EXPORT
#else
#define SCRIPTENGINE_EXPORT Q_DECL_IMPORT
#endif
#endif // SCRIPTENGINE_GLOBAL_H
#ifndef SCRIPTENGINE_GLOBAL_H
#define SCRIPTENGINE_GLOBAL_H
#include <QtGlobal>
#ifdef SCRIPTENGINE_LIB
#define SCRIPTENGINE_EXPORT Q_DECL_EXPORT
#else
#define SCRIPTENGINE_EXPORT Q_DECL_IMPORT
#endif
#endif // SCRIPTENGINE_GLOBAL_H
To copy to clipboard, switch view to plain text mode
Bookmarks