Angelo Lee's Blog
This is my kingdom .If i don't fight for it ,who will ?
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 55 下一页
摘要: // //********************************************************* //Ftp basic operation //********************************************************* // // //1. connect to ftp // BOOL flag; CString cstrFtpServer = TEXT("10.142.252.155"); //ftp server address CString cstrFtpUserName = TEXT... 阅读全文
posted @ 2012-11-27 22:37 Angelo Lee 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 一. VC常用数据类型列表二. 常用数据类型转化2.1数学类型变量与字符串相互转换2.2 CString及string,char *与其他数据类型的转换和操作●CString,string,char*的综合比较●数学类型与CString相互转化●CString与char*相互转换举例●CString 与 BSTR 型转换●VARIANT 型转化成 CString 型2.3 BSTR、_bstr_t与CComBSTR2.4 VARIANT 、_variant_t 与 COleVariant附录CString及字符串转及操作详解参考书籍:CSDN,<<MFC深入浅出(Second Ed 阅读全文
posted @ 2012-11-27 22:26 Angelo Lee 阅读(289) 评论(0) 推荐(0) 编辑
摘要: #include<windows.h> #include<iostream> #include<string> using namespace std; //只能处理目录:lpPath只能是路径 void find(char *lpPath) { char szFind[MAX_PATH]; char szFile[MAX_PATH]; WIN32_FIND_DATA FindFileData; strcpy(szFind,lpPath); strcat(szFind,"\\*.*"); HANDLE hFi... 阅读全文
posted @ 2012-11-27 21:10 Angelo Lee 阅读(300) 评论(0) 推荐(0) 编辑
摘要: C语言判断文件夹或者文件是否存在的方法方法一:access函数判断文件夹或者文件是否存在函数原型: int access(const char *filename, int mode);所属头文件:#include <io.h>filename:可以填写文件夹路径或者文件路径mode:0 (F_OK) 只判断是否存在 2 (R_OK) 判断写入权限 4 (W_OK) 判断读取权限 6 (X_OK) 判断执行权限用于判断文件夹是否存在的时候,mode取0,判断文件是否存在的时候,mode可以取0、2、4、6。 若存在或者具有权限,返回值为0;不存在或者无权限,返回值为-1。错误代码E 阅读全文
posted @ 2012-11-26 12:58 Angelo Lee 阅读(1264) 评论(0) 推荐(0) 编辑
摘要: API Hooking (LoadLibrary)IntroductionIf Windows is made to protect against API hooking, Trojan horses would not have effected our systems. I believe it is a loop hole from Microsoft. But from a programmer's point of view, it is a kernel level approach to PE (Portableexecutable) signature modific 阅读全文
posted @ 2012-11-25 21:39 Angelo Lee 阅读(310) 评论(0) 推荐(0) 编辑
摘要: http://msdn.microsoft.com/en-us/library/aa365430(v=vs.85).aspxOpenFile functionHFILE WINAPI OpenFile( _In_ LPCSTR lpFileName, _Out_ LPOFSTRUCT lpReOpenBuff, _In_ UINT uStyle ); Return valueIf the function succeeds, the return value specifies a file handle to use when performing file I/O. ... 阅读全文
posted @ 2012-11-25 21:23 Angelo Lee 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Method 1:1.Import the ActiveX Control in html.<object classid="clsid:00460182-9E5E-11d5-B7C8-B8269041DD57" id="activeXObject" width="100%" height="100%"> <param name="BorderStyle" value="1"> <param name="TitlebarColor&qu 阅读全文
posted @ 2012-11-23 23:31 Angelo Lee 阅读(242) 评论(0) 推荐(0) 编辑
摘要: File Handling at Client Side Using JavascriptIntroductionJavaScript has a very rich ensemble of methods and properties to create, manipulate, and manage drives, files, and folders. You can use JavaScript as you would any other modern programming language. For example, you can use it to open files, w 阅读全文
posted @ 2012-11-21 23:20 Angelo Lee 阅读(167) 评论(0) 推荐(0) 编辑
摘要: CxImage PracticePrefaceYears after the previous version, I can tell that the article has survived its author, and even if my opinion on the limits of this library has not changed, an update was really necessary.Thank you very much to all the people that gave their contribution to this new release, w 阅读全文
posted @ 2012-11-21 23:16 Angelo Lee 阅读(241) 评论(0) 推荐(0) 编辑
摘要: VC编译选项 多线程(/MT)多线程调试(/MTd)多线程 DLL (/MD)多线程调试 DLL (/MDd)C 运行时库 库文件Single thread(static link) ML libc.libDebug single thread(static link) MLd libcd.libMultiThread(static link) MT libcmt.libDebug multiThread(static link) MTd libcmtd.libMultiThread(dynamic link) MD msvert.libDebug multiThread(dynamic li 阅读全文
posted @ 2012-11-21 12:36 Angelo Lee 阅读(137) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 55 下一页