读书与UC

20 篇文章 0 订阅

1.读书Windows Programming V2

Q:AFX_MODULE_THREAD_STATE对于模块和线程都是私有的,如何理解?

Q:windows book P176:AfxCallWndProc()如何处理多个消息处理嵌套的?

Q:以下代码

///
// CMyApp成员函数的实现代码
BOOL CMyApp::InitInstance()
{
    m_pMainWnd = new CMyWnd;
    ::ShowWindow(*m_pMainWnd, this->m_nCmdShow);
    ::UpdateWindow(*m_pMainWnd);
    return TRUE; // 返回TRUE进入消息循环
}

::ShowWindow(*CWnd, int)似乎不存在的,在哪里定义的呢?

 

Q: P195:{WM_TIMER, 0,0,0,AfxSig_vw, (AFX_PMSG)(AFX_PMSGW)(void (CWnd::*)(UINT)&OnTimer),

                                                                        ^ Why so many 类型转换?

Q:P204:如何将工程中的某些源文件删除?

 

 

IDEA: CWnd消息处理

    // 处理Windows消息
    virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
    virtual BOOL OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult);
    virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
    virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
WindowProc()->OnWndMsg() -> OnCommand()/OnNotify()

 

2.. Build Client/Server

Q: Why no client.exe generated ?

   A: Got it. Link output is in bin/dlls rather than bin/objs ......

Q: *.exp文件?

 

 

Q: How to make 远程桌面server work ?

 

2. server build error

 

--------------------Configuration: network - Win32 Debug--------------------
Compiling resources...
Compiling...
BitStream.cpp
RtAcceptorBase.cpp
RtAcceptorTcp.cpp
RtAcceptorThreadProxy.cpp
RtAcceptorUdp.cpp
RtChannelFile.cpp
RtChannelHttpBase.cpp
RtChannelHttpClient.cpp
RtChannelHttpServer.cpp
RtChannelHttpServerAcceptor.cpp
RtCnBase.cpp
RtCnLenPkg.cpp
RtCnPdu.cpp
RtCnPkg.cpp
RtCnPkgSender.cpp
RtCnRlbTcp.cpp
RtCnRudp.cpp
d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/ds_rangelist.h(48) : error C2440: 'specialization' : cannot convert from '' to 'int (__cdecl *)( &, &)'
        None of the functions with this name in scope match the target type
        d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/ds_rangelist.h(49) : see reference to class template instantiation 'DataStructures::RangeList<range_type>' being compiled
d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/ds_rangelist.h(48) : error C2975: 'OrderedList' : invalid template argument for 'default_comparison_function', constant expression expected
        d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/ds_orderedlist.h(63) : see declaration of 'OrderedList'
        d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/ds_rangelist.h(49) : see reference to class template instantiation 'DataStructures::RangeList<range_type>' being compiled
d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/rtcnrudp.h(46) : error C2440: 'specialization' : cannot convert from '' to 'int (__cdecl *)( &, &)'
        None of the functions with this name in scope match the target type
d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/rtcnrudp.h(46) : error C2975: 'OrderedList' : invalid template argument for 'default_comparison_function', constant expression expected
        d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/ds_orderedlist.h(63) : see declaration of 'OrderedList'
d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/rtcnrudp.h(46) : error C2079: 'splitPacketList' uses undefined class 'OrderedList<unsigned short,struct RtRudpPacket *,0>'
d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/ds_rangelist.h(48) : error C2440: 'specialization' : cannot convert from '' to 'int (__cdecl *)( &, &)'
        None of the functions with this name in scope match the target type
        d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/rtcnrudp.h(250) : see reference to class template instantiation 'DataStructures::RangeList<unsigned short>' being compiled
d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/ds_rangelist.h(48) : error C2975: 'OrderedList' : invalid template argument for 'default_comparison_function', constant expression expected
        d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/ds_orderedlist.h(63) : see declaration of 'OrderedList'
        d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/rtcnrudp.h(250) : see reference to class template instantiation 'DataStructures::RangeList<unsigned short>' being compiled
d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/ds_rangelist.h(48) : error C2079: 'ranges' uses undefined class 'OrderedList<unsigned short,struct DataStructures::RangeNode<unsigned short>,0>'
        d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/rtcnrudp.h(250) : see reference to class template instantiation 'DataStructures::RangeList<unsigned short>' being compiled
d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/rtcnrudp.h(256) : error C2440: 'specialization' : cannot convert from '' to 'int (__cdecl *)( &, &)'
        None of the functions with this name in scope match the target type
d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/rtcnrudp.h(256) : error C2975: 'OrderedList' : invalid template argument for 'default_comparison_function', constant expression expected
        d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/ds_orderedlist.h(63) : see declaration of 'OrderedList'
d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/rtcnrudp.h(256) : error C2079: 'splitPacketChannelList' uses undefined class 'OrderedList<unsigned short,struct SplitPacketChannel *,0>'
d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/rtcnrudp.cpp(98) : error C2109: subscript requires array or pointer type
d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/rtcnrudp.cpp(98) : error C2227: left of '->splitPacketId' must point to class/struct/union
d:/work/workspace/box-4.2-ucp-4.5-0429/src/util/network/rtcnrudp.cpp(100) : error C2109: subscript requires array or pointer type

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值