SETGET_FUNCTION 替代 get set 函数

admin | C++ | 2015-03-24
C++ #define SETGET_FUNCTION(type, set_fuctionname, get_fuctionname) \ public: \ const type get_fuctionname(){ return m_##get_fuctionname; } \ void set_fuctionname(const type newValue){ m_##get_fuctionname= newValue; } \ private: \ type m_##get_fuctionname; \ 123456... [阅读全文]
ė2,397 浏览数 6没有评论 0

Qt 动态加载 dll

admin | Qt Gui | 2015-03-24
C++ #ifdef Q_OS_WIN typedef long ( *SHELLRUN)(long,const char*, const char*, const char* ,const char* , int ); SHELLRUN test; QString str = "shell32.dll"; QLibrary lib(str); test = (SHELLRUN)lib.resolve("ShellExecuteA"); const char * te = "open"; const char * te1 = ".... [阅读全文]
ė1,805 浏览数 6没有评论 0

win32 设置本地ICON

admin | win32 | 2015-03-16
C++ //设置本地icon 图像为程序ICON HICON t = (HICON) LoadImage( NULL,g_IconName,IMAGE_ICON,0,0,LR_LOADFROMFILE|LR_DEFAULTSIZE|LR_SHARED); SendMessage(g_pFrame->GetHWND(), WM_SETICON, ICON_SMALL, (LPARAM)t); SendMessage(g_pFrame->GetHWND(), WM_SETICON, ICON_BIG, (LPARAM)t); ... [阅读全文]
ė1,766 浏览数 6没有评论 0

NSIS 自定义安装界面准确获取安装进度完美解决方案,nsis,安装进度条,精准获取进度条

admin | nsis | 2015-03-13
C++ 几乎所有玩过nsis的人在制作安装进度页面时都会遇到一个比较棘手的问题,画出进度条容易,但准确掌握文件释放进度,同时再去配合进度条的进度在nsis看来几乎是个无法逾越的障碍,因为迄今为止NSIS尚无可直接使用的指令或者函数来获取相关数据。网络上解决这个问题大部分做法都是大约分为若干段,20%...40%...80%...100%这样大概... [阅读全文]
ė2,961 浏览数 6没有评论 0

NSIS获取当前屏幕分辨率,nsis,分辨率,屏幕分辨率

admin | nsis | 2015-03-13
C++ OutFile "ScreenRes.exe" Name "Get User Screen Resolution" Caption "Get User Screen Resolution" XPStyle "on" Function ".onInit" System::Call 'user32::GetSystemMetrics(i 0) i .r0' System::Call 'user32::GetSystemMetrics(i 1) i .r1' MessageBox MB_OK|MB_ICONINFORMATION "Screen Resolution: $\r$\n$... [阅读全文]
ė2,045 浏览数 6没有评论 0

NSIS判断当前win操作系统,系统版本,win7系统

admin | nsis | 2015-03-13
C++ SetCompressor /SOLID lzma XPStyle on OutFile "判断当前win操作系统.EXE" Name "判断当前win操作系统" Section ReadRegStr $1 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" "CurrentVersion" StrCmp $1 "" +1 +2 ReadRegStr $1 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion" VersionNumber ReadRe... [阅读全文]
ė2,498 浏览数 6没有评论 0

NSIS批量筛选DLL是否可以通过regsvr32注册

admin | nsis | 2015-03-13
C++ /*一个批量筛选DLL是否可以通过regsvr32注册的工具*/ !include "FileFunc.nsh" !insertmacro Locate OutFile "分选dll.EXE" Name "分选dll" Var Success Var Failed Section FileOpen $Success "$EXEDIR\Success.TXT" A FileOpen $Failed "$EXEDIR\Failed.txt" A ${Locate} "$EXEDIR" "/M=*.dll" "loc" ;可以... [阅读全文]
ė1,858 浏览数 6没有评论 0

NSIS透明渐入渐出效果,nsis,透明效果,渐隐渐显

admin | nsis | 2015-03-13
C++ ## transparent.nsi ## ## Script write by Restools & X-Star, Mod by zhfi. ## Needs the mod version of nsdialogs.dll or installoptions.dll plugin (suppert timer function)! ## Transparent Splash effect in NSIS while run/Exit installer, only effective on windows 2k or higher. /* ## function u... [阅读全文]
ė2,224 浏览数 6没有评论 0

NSIS获取文件版本信息,nsis,版本信息

admin | nsis | 2015-03-13
C++ !include "FileVerInfo.nsh" Name "GetFileVerInfo" Caption "$(^Name)" OutFile "GetFileVerInfo.exe" XPStyle on Function .onGUIInit StrCpy $0 "文件 $WINDIR\notepad.exe 的版本信息:$\r$\n" ${GetProductName} "$WINDIR\notepad.exe" $R0 StrCpy $0 "$0$\r$\n - 产品名称 (ProductName): $R0" ${Ge... [阅读全文]
ė2,362 浏览数 6没有评论 0

NSIS在网上下载配置文件并运行相应程序,nsis,服务器配置文件,远程下载配置文件

admin | nsis | 2015-03-13
C++ OutFile "RandomPage.EXE" Name "RandomPage" !include "MUI2.nsh" SetFont "tahoma" 8 Var NoNetwork Var ID1 Var ID2 Var ID3 Var ID4 Var Dialog Var Checkbox1 Var Checkbox2 Var Checkbox3 Var Checkbox4 !insertmacro MUI_PAGE_WELCOME !insertmacro MUI_PAGE_COMPONENTS Page custom RandomPageSho... [阅读全文]
ė3,127 浏览数 6没有评论 0

Ɣ回顶部

无觅相关文章插件,快速提升流量