摘要:
原来除了encodeURI(), encodeURIConponent(), 还有decodeURI() decodeURIComponent() 虽然不常用,但在某些情况下使用则非常方便。 定义和用法 unescape() 函数可对通过 escape() 编码的字符串进行解码。 语法 unesca 阅读全文
posted @ 2011-09-26 18:49
hongweigg
阅读(7)
评论(0)
推荐(0)
摘要:
URLEncode: inline BYTE toHex(const BYTE &x) { return x > 9 ? x + 55: x + 48; } CString URLEncode(CString sIn) { CString sOut; const int nLen = sIn.Get 阅读全文
posted @ 2011-09-26 18:41
hongweigg
阅读(13)
评论(0)
推荐(0)
摘要:
javascript 和 VC交互,VC 不能将返回值放在参数(方向out)中: “JavaScript does not support [in, out], only [in] and [out, retval]. JavaScript has no syntax for passing par 阅读全文
posted @ 2011-09-26 14:27
hongweigg
阅读(9)
评论(0)
推荐(0)
摘要:
在windows中每一次函数调用,如果出现错误,可以用GetLastError函数获得错误代码。 下面编写一个函数演示如何获得错误描述的字符串 LPSTR ConvertErrorCodeToString(DWORD ErrorCode) { HLOCAL LocalAddress=NULL; Fo 阅读全文
posted @ 2011-09-26 11:05
hongweigg
阅读(31)
评论(0)
推荐(0)

浙公网安备 33010602011771号