<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>挂茶馆易语言论坛 - MFC</title>
    <link>https://www.ttgcg.com/forum-64-1.html</link>
    <description>Latest 20 threads of MFC</description>
    <copyright>Copyright(C) 挂茶馆易语言论坛</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Tue, 28 Apr 2026 16:24:48 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://www.ttgcg.com/static/image/common/logo_88_31.gif</url>
      <title>挂茶馆易语言论坛</title>
      <link>https://www.ttgcg.com/</link>
    </image>
    <item>
      <title>c++内联汇编怎么实现</title>
      <link>https://www.ttgcg.com/thread-2321-1-1.html</link>
      <description><![CDATA[有空也学学MFC]]></description>
      <category>MFC</category>
      <author>小别墅</author>
      <pubDate>Sun, 01 Jun 2025 09:59:05 +0000</pubDate>
    </item>
    <item>
      <title>修改lua源文件，让lua支持中文函数</title>
      <link>https://www.ttgcg.com/thread-258-1-1.html</link>
      <description><![CDATA[方法一.
 
/*中文支持
llex.c
static int llex (LexState *ls, SemInfo *seminfo)
修改如下：
*/
      default: {
        if (lislalpha(ls-&gt;current) || ls-&gt;current == \'_\' || ls-&gt;current &gt; 0x80) {  /* identifier or reserved word? */
          TString *ts;
  ...]]></description>
      <category>MFC</category>
      <author>太阳的味道</author>
      <pubDate>Wed, 16 Jan 2019 06:33:55 +0000</pubDate>
    </item>
    <item>
      <title>多多指导</title>
      <link>https://www.ttgcg.com/thread-192-1-1.html</link>
      <description><![CDATA[学习下，多多指导]]></description>
      <category>MFC</category>
      <author>八七</author>
      <pubDate>Sun, 25 Nov 2018 14:14:42 +0000</pubDate>
    </item>
    <item>
      <title>BUG..</title>
      <link>https://www.ttgcg.com/thread-106-1-1.html</link>
      <description><![CDATA[BUG......................]]></description>
      <category>MFC</category>
      <author>333</author>
      <pubDate>Tue, 09 Oct 2018 14:14:59 +0000</pubDate>
    </item>
    <item>
      <title>c++调用大漠系列：MFC与LUA交互实战_获得控件文本</title>
      <link>https://www.ttgcg.com/thread-104-1-1.html</link>
      <description><![CDATA[正在组织思路...
[mw_shl_code=cpp,true]else if (isalpha(ls-&gt;current) || ls-&gt;current == \'_\' || ls-&gt;current &gt; 0x80) {          /* identifier or reserved word */          TString *ts;          if (ls-&gt;current == \'L\') {            next(ls);            if ...]]></description>
      <category>MFC</category>
      <author>1149</author>
      <pubDate>Mon, 08 Oct 2018 09:17:10 +0000</pubDate>
    </item>
    <item>
      <title>c++调用大漠系列：c++调用LUA函数与错误处理函数</title>
      <link>https://www.ttgcg.com/thread-102-1-1.html</link>
      <description><![CDATA[1，调用LUA函数
[mw_shl_code=cpp,true]int main(void)
{
        lua_State *L = lua_open();
        luaopen_base(L);//加载基础库
        luaopen_string(L);//加载字符串库
        luaopen_table(L);//加载表处理库
        lua_register(L, \&quot;test\&quot;, test);
     ...]]></description>
      <category>MFC</category>
      <author>1149</author>
      <pubDate>Sun, 07 Oct 2018 13:40:41 +0000</pubDate>
    </item>
    <item>
      <title>c++调用大漠系列：c++给LUA传递参数</title>
      <link>https://www.ttgcg.com/thread-101-1-1.html</link>
      <description><![CDATA[1，传递普通变量
[mw_shl_code=cpp,true]int main(void)
{
        lua_State *L = lua_open();
        lua_State *L1 = lua_open();
        luaopen_base(L);//加载基础库
        luaopen_string(L);//加载字符串库
        luaopen_table(L);//加载表处理库
       ...]]></description>
      <category>MFC</category>
      <author>1149</author>
      <pubDate>Sun, 07 Oct 2018 10:12:55 +0000</pubDate>
    </item>
    <item>
      <title>c++调用大漠系列：LUA类型检查和返回值</title>
      <link>https://www.ttgcg.com/thread-100-1-1.html</link>
      <description><![CDATA[1，luaL_checktype，当类型不一致程序会结束运行
[mw_shl_code=cpp,true]int test(lua_State* lua)
{

        luaL_checktype(lua, 1, LUA_TTABLE);

        
        return 0;
}[/mw_shl_code]

如图我传入double，在类型检查里我检测传入参数不是table,明显类型不 ...]]></description>
      <category>MFC</category>
      <author>1149</author>
      <pubDate>Sun, 07 Oct 2018 07:29:20 +0000</pubDate>
    </item>
    <item>
      <title>c++调用大漠系列：LUA给C++传递参数</title>
      <link>https://www.ttgcg.com/thread-99-1-1.html</link>
      <description><![CDATA[1，传递普通类型参数
[mw_shl_code=cpp,true]int test(lua_State* lua)
{
        const char* str = lua_tostring(lua, 1);//从栈底取出一个值，double类型也会被转为字符串
        printf(\&quot;%s\\n\&quot;, str);
        return 0;
}[/mw_shl_code]


2，传递数组
[mw_shl_co ...]]></description>
      <category>MFC</category>
      <author>1149</author>
      <pubDate>Sun, 07 Oct 2018 02:53:16 +0000</pubDate>
    </item>
    <item>
      <title>lua5.1参考手册</title>
      <link>https://www.ttgcg.com/thread-96-1-1.html</link>
      <description><![CDATA[函数名称：lua_tolstring——从LUA堆栈获得一个字符串
函数原型：const char *lua_tolstring (lua_State *L, int index, size_t *len);
参数1：lua_State对象
参数2：在堆栈中的位置，-1为栈顶，1为栈底，堆栈的位置请自己百度
参数3：如果len不为NULL，则把字符串的长 ...]]></description>
      <category>MFC</category>
      <author>1149</author>
      <pubDate>Sat, 06 Oct 2018 10:31:15 +0000</pubDate>
    </item>
    <item>
      <title>c++调用大漠系列：如何用LUA注册大漠插件</title>
      <link>https://www.ttgcg.com/thread-94-1-1.html</link>
      <description><![CDATA[1，配置好LUA环境，不会的可以看我之前的帖子


2，声明一个全局的注册函数
[mw_shl_code=cpp,true]BOOL RegDll(lua_State* L)
{
        const char* path = lua_tostring(L, 1);
        LRESULT(CALLBACK* lpDllEntryPoint)();
        HINSTANCE hLib = LoadLibrary ...]]></description>
      <category>MFC</category>
      <author>1149</author>
      <pubDate>Fri, 05 Oct 2018 13:49:44 +0000</pubDate>
    </item>
    <item>
      <title>c++调用大漠系列：LUA的流程控制</title>
      <link>https://www.ttgcg.com/thread-93-1-1.html</link>
      <description><![CDATA[Lua 流程控制Lua 编程语言流程控制语句通过程序设定一个或多个条件语句来设定。在条件为 true 时执行指定程序代码，在条件为 false 时执行其他指定代码。

控制结构的条件表达式结果可以是任何值，Lua认为false和nil为假，true和非nil为真。要注意的是Lua中 0 为 true： ...]]></description>
      <category>MFC</category>
      <author>1149</author>
      <pubDate>Fri, 05 Oct 2018 09:40:04 +0000</pubDate>
    </item>
    <item>
      <title>本人正学习MFC，LUA，大漠，欢迎大家交流和提问</title>
      <link>https://www.ttgcg.com/thread-86-1-1.html</link>
      <description><![CDATA[联系QQ328496536]]></description>
      <category>MFC</category>
      <author>1149</author>
      <pubDate>Thu, 04 Oct 2018 14:00:25 +0000</pubDate>
    </item>
    <item>
      <title>c++调用大漠系列：LUA变量和数据类型</title>
      <link>https://www.ttgcg.com/thread-76-1-1.html</link>
      <description><![CDATA[**** 本内容被作者隐藏 ****]]></description>
      <category>MFC</category>
      <author>1149</author>
      <pubDate>Thu, 04 Oct 2018 13:23:34 +0000</pubDate>
    </item>
    <item>
      <title>c++调用大漠系列：LUA环境的搭建</title>
      <link>https://www.ttgcg.com/thread-61-1-1.html</link>
      <description><![CDATA[**** 本内容被作者隐藏 ****]]></description>
      <category>MFC</category>
      <author>1149</author>
      <pubDate>Fri, 28 Sep 2018 09:55:05 +0000</pubDate>
    </item>
    <item>
      <title>关于如何在MFC中读INI和写INI</title>
      <link>https://www.ttgcg.com/thread-35-1-1.html</link>
      <description><![CDATA[**** 本内容被作者隐藏 ****

SetRegistryKey(_T(\&quot;应用程序向导生成的本地应用程序\&quot;)); 这个函数会导致以后的读写会在注册表中而不是INI文件，如果你想在注册表中进行读写那么
就不用改变，如果你想在指定的文件夹内读写INI那么就必须注释掉这一句。


2，接下来的问题 ...]]></description>
      <category>MFC</category>
      <author>1149</author>
      <pubDate>Tue, 25 Sep 2018 14:13:22 +0000</pubDate>
    </item>
    <item>
      <title>关于CWinApp::m_pMainWnd</title>
      <link>https://www.ttgcg.com/thread-32-1-1.html</link>
      <description><![CDATA[m_pMainWnd存放主窗口指针，今天学习是遇到一个问题，我在CWinApp的InitInstance()函数里写了2个创建窗口代码，发现当第一个窗口退出后，第二个窗口不会显示，程序会直接退出
[mw_shl_code=cpp,true]
// Cceshi2App 初始化

BOOL Cceshi2App::InitInstance()
{


]]></description>
      <category>MFC</category>
      <author>1149</author>
<enclosure url="https://www.ttgcg.com/data/attachment/forum/Cces ..." length="" type="image/jpeg" />      <pubDate>Tue, 25 Sep 2018 07:44:07 +0000</pubDate>
    </item>
    <item>
      <title>MFC::CWnd 类</title>
      <link>https://www.ttgcg.com/thread-26-1-1.html</link>
      <description><![CDATA[CWnd 类提供 Microsoft 基础类库中所有窗口类的基本功能。


语法
[mw_shl_code=cpp,true]class CWnd : public CCmdTarget[/mw_shl_code]



公共数据成员]]></description>
      <category>MFC</category>
      <author>1149</author>
      <pubDate>Mon, 24 Sep 2018 11:06:41 +0000</pubDate>
    </item>
    <item>
      <title>MFC::CDialog类</title>
      <link>https://www.ttgcg.com/thread-25-1-1.html</link>
      <description><![CDATA[CDialog类
用于在屏幕上显示对话框的基类。


语法
[mw_shl_code=cpp,true]class CDialog : public CWnd[/mw_shl_code]]]></description>
      <category>MFC</category>
      <author>1149</author>
      <pubDate>Mon, 24 Sep 2018 10:56:37 +0000</pubDate>
    </item>
    <item>
      <title>MFC::CWinApp类</title>
      <link>https://www.ttgcg.com/thread-24-1-1.html</link>
      <description><![CDATA[CWinApp类
派生出 Windows 应用程序对象的基类。。


语法
[mw_shl_code=cpp,true]class CWinApp : public CWinThread[/mw_shl_code]



公共数据成员]]></description>
      <category>MFC</category>
      <author>1149</author>
      <pubDate>Mon, 24 Sep 2018 10:52:53 +0000</pubDate>
    </item>
  </channel>
</rss>