08 2018 档案
InstallShield 读注册表函数 RegDBGetKeyValueEx ()执行失败
摘要:注: rtn = RegDBGetKeyValueEx(szKey, szNumName, nvType, svNumValue, nvSize); 调用失败如果这个函数的几个参数没有初始化的值,调用就会导致失败 function RegeditReadLicense() STRING szKey, szNumName, szNumValue, svNumValue; NUMB...
阅读全文
VS VC 读取 INI文件
摘要:1、获取应程序同极目录下的config.ini路劲 void GetConfigFilePath(char *path,int len, char *file) { char module[256] = {0}; GetModuleFileName(NULL, module, MAX_PATH); char *ptr = strrchr(module, '...
阅读全文
输出调试技巧 PRINTF()
摘要:PRINTF("write license file success"); PRINTF("!Your license is expired,Please upgrade permissions"); 输出效果如下: 111:writeLicFile::write license file succ
阅读全文
VS2010 运行时 出现cmd窗口的设置方法
摘要:项目 - 属性 -生成事件 --后期生成事件 ->命令行 (editbin /SUBSYSTEM:CONSOLE $(OUTDIR)\$(ProjectName).exe) 注:如果最终生成的可执行不需要cmd,记得取消这个设置。
阅读全文
sourceInsight工具移除不掉项目 source Insight Add and Remove Project Files
摘要:问题描述: sourceInsight创建的项目,有时候会遇到Remove Project 报错,移除不成功的情况。 解决办法: 进入到sourceinsight的安装目录。删除掉保存的工程文件信息即可。 默认的安装路劲为:C:\Users\Administrator\Documents\Sourc
阅读全文
VC6.0 error LNK2001: unresolved external symbol __imp__ntohl@4
摘要:Configuration: oxToint1 - Win32 Debug Linking...main.obj : error LNK2001: unresolved external symbol __imp__ntohl@4Debug/oxToint1.exe : fatal error LN
阅读全文
程序开始打印程序信息
摘要:void printSoftwareInfo(const char *programName, const char *date, const char *time){ char s_month[5]; int month, day, year; static const char month_na
阅读全文
获取本地时间 精确到毫秒
摘要:string GetSysUsecTimeHMS(){ char szBuf[256] = {0}; struct timeval tv; struct timezone tz; struct tm *p; gettimeofday(&tv, &tz); p = localtime(&tv.tv_s
阅读全文