摘要: /* 功能:创建多级目录 参数:dir必须是绝对路径 调用: char dir[] = "E:\\Demo\\Folder\\subFolder\\my2\\test.png"; char dir[] = "E:\\Demo\\Folder\\subFolder\\my2\\"; char dir[ 阅读全文
posted @ 2020-12-10 14:42 晨光静默 阅读(229) 评论(1) 推荐(0)
摘要: void SDlg::OnBnClickedBtnFull() { this->ShowWindow(SW_MINIMIZE); Sleep(1000); int width = GetSystemMetrics(SM_CXSCREEN); int height = GetSystemMetrics 阅读全文
posted @ 2020-12-02 15:10 晨光静默 阅读(278) 评论(0) 推荐(0)
摘要: visual assist正常都用好好的,最近在win10系统下突然无效,全是黑色的。可以尝试下面方法看看: win10也是安装了Visual+Assist+X+for+vs2010(安装碰到系统函数没有颜色高亮,打开vc6的tools->options->format-category[All W 阅读全文
posted @ 2020-11-02 09:25 晨光静默 阅读(873) 评论(0) 推荐(0)
摘要: win7系统软件设置启动项后无法开机自动启动解决方法: 1、将软件快捷方式放入启动项后点击开始 2、在开始界面搜索本地安全策略 3、在本地安全策略点击本地策略 4、点击安全选项 5、禁用:以管理员批准模式运行所有管理员、用于内置管理员账户的管理员批准模式功能 https://jingyan.baid 阅读全文
posted @ 2020-10-19 15:57 晨光静默 阅读(2420) 评论(0) 推荐(0)
摘要: public Form1() { InitializeComponent(); //运行隐藏 //this.WindowState = FormWindowState.Minimized; //this.ShowInTaskbar = false; //SetVisibleCore(false); 阅读全文
posted @ 2020-10-15 19:28 晨光静默 阅读(145) 评论(0) 推荐(0)
摘要: static void Main() { #if false Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); / 阅读全文
posted @ 2020-10-15 19:26 晨光静默 阅读(135) 评论(0) 推荐(0)
摘要: bool WriteTxtFile(string filename, string content) { bool bRet = false; FileStream fs = null; StreamWriter sw = null; try { FileInfo fi = new FileInfo 阅读全文
posted @ 2020-10-15 19:07 晨光静默 阅读(113) 评论(0) 推荐(0)
摘要: c#版本: private bool SetAutoRun(bool onFlag) { bool bRet = true; try { string path = Application.ExecutablePath; RegistryKey rk = Registry.LocalMachine; 阅读全文
posted @ 2020-10-15 17:23 晨光静默 阅读(146) 评论(0) 推荐(0)
摘要: MesssageBox显示的对话框在所有页面之前,只需要像下边这么做 MessageBox(NULL,"GOOD","OK",MB_OK | MB_SYSTEMMODAL); 据说弹出对话框时此对话框会抢夺焦点,即就算焦点在其他程序上,也强.其他的几个参数都没有这个效果 可以参照对应的API: ht 阅读全文
posted @ 2020-10-13 14:02 晨光静默 阅读(233) 评论(0) 推荐(0)
摘要: int IsNumber(const char * authcode, int len) { for (int i = 0; i < len; i++){ if (authcode[i] >= '0'&&authcode[i] <= '9'){ continue; } else{ return i; 阅读全文
posted @ 2020-08-28 16:47 晨光静默 阅读(1694) 评论(0) 推荐(0)