C++
汐客SeaKr
这个作者很懒,什么都没留下…
展开
-
Lua调用C 常见问题
1、%1 is not a valid Win32 application %1不是有效的Win32应用程序 出现原因:32-BIT的DLL和64-BIT的程序混用。如32位dll调用64位dll。 解决方案:使用统一位数的程序。 2、The specified procedure could not be found 找不到指定的程序过程 出现原因:使用c++时,需要dllexport和extern “C”关键字 解决方案:程序集中使用dllexport和extern “C”关键字 3、m原创 2020-09-23 10:27:28 · 539 阅读 · 0 评论 -
Lua与C
Step By Step(Lua-C API简介)http://www.cnblogs.com/stephen-liu74/archive/2012/04/05/2433428.html 一、基础知识 二、栈 三、C API中的错误处理Step By Step(C调用Lua)http://www.cnblogs.com/stephen-liu74/archive/2012/04/20/2460634.html 一、基础 二、table操作 三、调用Lua函数Step By Step(Lua调用C函数)htt转载 2020-07-03 16:19:15 · 101 阅读 · 0 评论 -
单例模式 - c++
#include <iostream> using namespace std; class Singleton { private: static Singleton* st; //static Singleton* st = NULL; //错误 Singleton(){} public: static Singleton* getInstance() ...原创 2020-02-13 11:39:40 · 90 阅读 · 0 评论