2 Star 7 Fork 1

炫彩软件(梦飞) / 炫语言-模块源码仓库

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
module_test.h 2.60 KB
一键复制 编辑 原始数据 按行查看 历史
炫彩软件(梦飞) 提交于 2021-10-22 23:11 . 更新
#pragma once
#ifdef XC_MOUDLE
#endif
//@模块名称 测试模块
//@版本 1.0
//@日期 2020-11-20
//@作者 XCGUI
//@模块备注
//@备注 测试全局变量
//@别名 全局变量_var
static int test_var=10;
typedef int (__cdecl*fun_test)(int,int);
typedef int (__stdcall*fun_test2)(int,int);
void Test_void1(void)
{
return ;
}
void Test_void2(void)
{
return ;
}
void Test_void3(void* cc)
{
return ;
}
CXMap < wstring , int > g_map1;
CXVector < wstring> g_vector1;
CXMap < wstring , int > Test_get_map()
{
CXMap<wstring, int> ret_map;
ret_map[L"aaa"] =1;
ret_map[L"bbb"]=2;
ret_map[L"ccc"]=3;
return ret_map;
}
CXVector < wstring > Test_get_vector()
{
CXVector<wstring> ret_vector;
ret_vector.add(L"111");
ret_vector.add(L"222");
ret_vector.add(L"333");
return ret_vector;
}
static int* Test_map1(CXMap<wstring, int>* ret_map)
{
OutputDebugString(L"call->Test_map1()\n");
}
static int* Test_map2(CXMap<string, int>* ret_map)
{
OutputDebugString(L"call->Test_map2()\n");
}
static void Test_map(CXMap<wstring, int>& ret_map)
{
ret_map[L"aaa"] =1;
ret_map[L"bbb"]=2;
ret_map[L"ccc"]=3;
}
static void Test_vector(CXVector<wstring>& ret_vector)
{
OutputDebugString(L"call->Test_vector()\n");
ret_vector.add(L"aaa");
ret_vector.add(L"bbb");
ret_vector.add(L"ccc");
}
static void Test_string(string& ret)
{
OutputDebugString(L"call->Test_string()\n");
ret = "Test_string()";
}
static void Test_wstring(wstring& ret)
{
OutputDebugString(L"call->Test_wstring()\n");
ret = L"Test_wstring()";
}
//COLORREF tts3(unsigned int aa, LPSTR a, LPCTSTR b, LPWSTR c, size_t d, LONG e,unsigned int f, PDWORD_PTR g, LPCVOID h);
//@备注 测试备注
//@别名 测试别名
#define SW_SSAA 123
#define SW_SSAA2 123
//@备注 枚举备注1
//@别名 枚举别名1
enum myss_aa_123{
//@备注 枚举备注2
//@别名 枚举别名2
myss_aa1=0,
//@备注 枚举备注3
//@别名 枚举别名3
myss_aa2=10,
myss_aa3= myss_aa1 + myss_aa2,
myss_aa4= myss_aa1 | myss_aa2,
myss_aa5 = myss_aa1 & myss_aa2,
myss_aa6 = (myss_aa2 | myss_aa2),
};
extern "C" BOOL __stdcall _fmt_const_123 (int const,int consts,int values,int nCount);
extern "C" BOOL __stdcall xx_Init_123 (int hInstance,int dwGlobalFlags,int hDefaultCursor,int lpszDefaultClassName,int lpDefaultTheme,int dwDefaultThemeLen,int lpDefaultI18N,int dwDefaultI18NLen);
//@参数 a, 整型
//123
//456
//@参数 f 函数指针
int sqlite3_exec_123(char const **a, int (*f)(char**));
/*@声明
*/
C/C++
1
https://gitee.com/xcgui/module.git
git@gitee.com:xcgui/module.git
xcgui
module
炫语言-模块源码仓库
master

搜索帮助