CreateFile The CreateFile function creates or opens the following objects and returns a handle that can be used to accessthe object: files pipes mails Read More
posted @ 2016-07-02 21:46 findumars Views(80218) Comments(0) Diggs(3)
VS2008 Release 修改配置: 1、项目——》属性——》C/ C++ ——》 常规 ——》调试信息格式——》用于“编辑并继续”的程序数据库(/ZI) 2、项目——》属性——》C/ C++ ——》 优化——》优化——》禁用(/Od) 3、项目——》属性——》C/ C++ ——》 优化——》优 Read More
posted @ 2016-07-02 21:44 findumars Views(497) Comments(0) Diggs(0)
第一种就直接导出函数名如下代码: #ifdef__cplusplus #define TEXPORT extern "c" _declspec(dllexport) #dlse #define TEXPORT _declspec(dllexport) TEXPORT BOOL FUN();//这就是 Read More
posted @ 2016-07-02 21:43 findumars Views(7528) Comments(0) Diggs(0)
WORD GetProcessIdByName(WCHAR *processName){DWORD processId = 0;HANDLE hProcessSnap=CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);if(hProcessSnap==IN Read More
posted @ 2016-07-02 21:41 findumars Views(766) Comments(0) Diggs(0)
在资源里面画出你的界面。在添加类。然后在视图里定义这个类的指针,DIALOG的指针,还有就是区域对象, 如下Cwindows *tw; CRect m_cle;CDialogEx *ph;在CPP文件构造函数里初始化ZeroMemory(&m_cle,sizeof(m_cle));tw = new Read More
posted @ 2016-07-02 21:38 findumars Views(279) Comments(0) Diggs(0)
WinRar官方提供了源码(http://www.rarlab.com/rar_add.htm);如果自己想要修改里面的内容就要重新生成DLL和LIB,我在网上找了很多资料都没有说得很清楚。花一两天的时间才把他生成成功。网上的资料都给了一些误导,所以改了很久才完成。现在给出正确的步骤,给这方面的学习 Read More
posted @ 2016-07-02 20:39 findumars Views(908) Comments(0) Diggs(0)
在写程序中。为了让程序效率高。有时会点用很高的CPU。这里用户体验不好可以设置线程的优先级来搞定。 BOOL SetThreadPriority( HANDLE hThread, // handle to the thread int nPriority // thread priority lev Read More
posted @ 2016-07-02 20:37 findumars Views(774) Comments(0) Diggs(0)
所需函数原型:BOOL WINAPI SetLayeredWindowAttributes(HWND hWnd, COLORREFcrKey, BYTE bAlpha, DWORD flag); 参数含义: hWnd: 所要设置的窗口句柄。 flag: 透明方式,可取两个值:LWA_COLORKEY Read More
posted @ 2016-07-02 20:34 findumars Views(5625) Comments(0) Diggs(0)
I usually avoid writing articles about building a specific version of a software project but this time I need to archive it for later use and I believ Read More
posted @ 2016-07-02 00:46 findumars Views(376) Comments(0) Diggs(0)
2016 年有位年轻的程序员在 Quora 上提问求助: 我今年 17 岁,从 14 岁开始编程。我主要关注 Java 语言,并在 AP 计算机科学这门课上拿了 5 分。我相当精通 Java(比如语法、主要类、GUI/JFrame 等),HTML5 和 CSS3 也不错。我感觉自己缺乏很多有用的技能 Read More
posted @ 2016-07-02 00:21 findumars Views(337) Comments(0) Diggs(0)