You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
671 B
C
31 lines
671 B
C
#ifndef _QUSERINFO_GLOBAL_H_
|
|
#define _QUSERINFO_GLOBAL_H_
|
|
|
|
#include <QtCore/qglobal.h>
|
|
#include "QUserBase.h"
|
|
//#include "vld.h"
|
|
|
|
#ifndef BUILD_STATIC
|
|
# if defined(QUSERINFO_LIB)//动态库
|
|
# define QUSERINFO_EXPORT Q_DECL_EXPORT
|
|
# else
|
|
# define QUSERINFO_EXPORT Q_DECL_IMPORT
|
|
# endif
|
|
#else
|
|
# define QUSERINFO_EXPORT
|
|
#endif
|
|
|
|
extern "C" QUSERINFO_EXPORT IUserCtrl* UserCtrlCreate();
|
|
extern "C" QUSERINFO_EXPORT void UserCtrlDelete(IUserCtrl* pCtrl);
|
|
typedef IUserCtrl* (*_UserCtrlCreate)();
|
|
|
|
|
|
/*
|
|
使用方法:
|
|
添加global头文件
|
|
|
|
QLibrary lib("UserInfo");//库文件名
|
|
_UserCtrlCreate func = (_UserCtrlCreate)lib.resolve("UserCtrlCreate");
|
|
IUserCtrl m_pUserCtrl = func();
|
|
*/
|
|
#endif |