摘要:
1. 例如:SELECT TOP 8 column_name FROM [table_name] ORDER BY [time] DESC中,时间必须用"[]"括起来,否则产生查询错误!在column中time也必须用[]! 阅读全文
摘要:
1. 准备软件 python3.2 http://www.python.org/download/我选择是:Python 3.2.2 Windows x86 MSI Installer(Windows binary -- does not include source) PyQt安装包:http://www.riverbankcomputing.co.uk/software/pyqt/download选择二进制文件 Eric5: 官方网站:http://eric-ide.python-projects.org/ 下载最新的就可以(如果想要中文版可... 阅读全文
摘要:
在家在Form1中的button事件加入如下代码:From2 f2 = new Form2();
f2.show();
this.close();
然后就都关闭了!开始不理解,后来知道了,原因如下:Form1不应该被关闭,因为Form2的实例变量是在Form1中声明的,如果Form1关闭了,Form2的实例变量也就释放了,然后在Form2中加入如下代码:From3 f3 = new Form3();
f3.show();
this.close();
Form3却显示了!这是因为:Form1是父窗体类型,关闭了Form1,Form2的实例变量也就释放了;相对于Form3,关闭了Form2,只是释 阅读全文
摘要:
BOOL SetAutoRun(CString strPath)//开机自动运行 { CString str; HKEY hRegKey; BOOL bResult; str=_T("Software//Microsoft//Windows//CurrentVersion//Run"); if(RegOpenKey(HKEY_LOCAL_MACHINE, str, &hRegKey) != ERROR_SUCCESS) bResult=FALSE; else { _splitpath(strPath.Get... 阅读全文
摘要:
_splitpath,生成路径;_makepath ,分解路径#include <stdlib.h> #include <stdio.h> int main(void) { char path_buffer[_MAX_PATH]; char drive[_MAX_DRIVE]; char dir[_MAX_DIR]; char fname[_MAX_FNAME]; char ext[_MAX_EXT]; _makepath(path_buffer, "c", "//sample//progarm//","filename 阅读全文