大约有 15,461 项符合查询结果(耗时:0.0204秒) [XML]

https://www.tsingfun.com/it/cpp/1560.html 

获取控件的值的几种方法总结 - C/C++ - 清泛网 - 专注C/C++及内核技术

...几种方法总结最简单直观的:CString str;GetDlgItemText(IDC_EDIT_TEST, str);int d=atoi(str.GetBuffer(0));更优雅的:.h:int m_editTest;.cpp:v...最简单直观的: CString str; GetDlgItemText(IDC_EDIT_TEST, str); int d=atoi(str.GetBuffer(0)); 更优雅的: .h:int m_ed...
https://www.tsingfun.com/it/cpp/2156.html 

Android RoundRectShape圆角矩形使用详解 - C/C++ - 清泛网 - 专注C/C++及内核技术

...ignored. //同第一个参数。 例子如下: package com.example.testroundrectshape; import android.app.Activity; import android.graphics.Color; import android.graphics.Paint; import android.graphics.RectF; import android.graphics.drawable.ShapeDrawable; import android.graphics.dra...
https://www.tsingfun.com/it/cp... 

c++11 智能指针回调的经典场景 - C/C++ - 清泛网 - 专注C/C++及内核技术

...要执行;弱指针:允许某情况下任务丢弃不执行。 void Test( ClientWPtr wPtr) { auto backtask = [&, wPtr](){ std::cout << "client task begin..." << std::endl; std::this_thread::sleep_for(std::chrono::milliseconds(50)); ClientPtr myClient = wPtr.lock(); //auto ...
https://www.tsingfun.com/it/os_kernel/534.html 

Linux Glibc幽灵漏洞允许黑客远程获取系统权 - 操作系统(内核) - 清泛网 - ...

...本的Linux发行版本。 漏洞检测方法 请自行检测: [[test]] $ cat > GHOST.c << EOF #include <netdb.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #define CANARY"in_the_coal_mine" struct { char buffer[1024]; char canary[sizeof(CANARY)]; } temp =...
https://www.tsingfun.com/it/tech/787.html 

discuz插件开发新手入门 - 更多技术 - 清泛网 - 专注C/C++及内核技术

...需要的文件。如下图 我在模块里面定义了 页面嵌入的 test1类文件,则需要在插件文件夹中新建一个test1.class.php的文件 下面是需要注意的东西。 test1.class.php中 文件的上部分 是discuz的引入部分,而下面的类名必须要和插件的...
https://www.tsingfun.com/it/tech/1154.html 

兼容主流浏览器的JS复制内容到剪贴板 - 更多技术 - 清泛网 - 专注C/C++及内核技术

...gettext = function(){ clipboardswfdata = document.getElementById('test_text').value; //alert(clipboardswfdata); window.document.clipboardswf.SetVariable('str', clipboardswfdata); } var floatwin = function(){ alert('复制成功!'); //document....
https://www.tsingfun.com/it/tech/1659.html 

C# HTTP上传文件(客户端及服务器端) - 更多技术 - 清泛网 - 专注C/C++及内核技术

... HttpPostedFile file = Request.Files[fileKey]; file.SaveAs("d:\\test_server.txt"); } 然后看看如何上传一个文件到服务器端:(建立一个WinForm测试上传本地文件) System.Net.WebClient client = new System.Net.WebClient(); string url = "http://(服务端地...
https://www.tsingfun.com/it/tech/1781.html 

nsis安装、卸载时如何判断程序是否正在运行 并提示关闭? - 更多技术 - 清...

...-------------------------------!include logiclib.nshFindProcDLL::FindProc "Test.exe"StrCmp $R0... ;-------------------------------------------------------------- !include logiclib.nsh FindProcDLL::FindProc "Test.exe" StrCmp $R0 1 0 +2 messagebox::show MB_SETFOREGROUND|MB_ICONHAND|MB_DEFBUTTON...
https://bbs.tsingfun.com/thread-778-1-1.html 

vc/mfc *通配符 批量删除文件 - c++1y / stl - 清泛IT社区,为创新赋能!

...[]) { &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;LPTSTR delFileName = L&quot;c:/test/test*.txt&quot;; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;SHFILEOPSTRUCT FileOp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;ZeroMemory((void*)&amp;FileOp,sizeof(SHFILEOPSTRUCT)); &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;FileOp.f...
https://bbs.tsingfun.com/thread-820-1-1.html 

nsis指定默认安装路径,记住上次安装路径 - 脚本技术 - 清泛IT论坛,有思想...

!define PRODUCT_DEFAULT_PATH &quot;C:\Test&quot; .... InstallDir &quot;${PRODUCT_DEFAULT_PATH}&quot; InstallDirRegKey HKLM &quot;Software\Microsoft\Windows\CurrentVersion\App Paths\Test.exe&quot; &quot;Path&quot; InstallDir 指定$INSTDIR值为&quot;C:\Test&quot;;InstallDirRegKey&nbsp;&nbsp...