• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
我是张洪铭我是熊博士
时光静好,与君同;细水长流,与君语
博客园    首页    新随笔    联系   管理    订阅  订阅
08 2018 档案
InstallShield 读注册表函数 RegDBGetKeyValueEx ()执行失败

摘要:注: rtn = RegDBGetKeyValueEx(szKey, szNumName, nvType, svNumValue, nvSize); 调用失败如果这个函数的几个参数没有初始化的值,调用就会导致失败 function RegeditReadLicense() STRING szKey, szNumName, szNumValue, svNumValue; NUMB... 阅读全文
posted @ 2018-08-30 15:51 我是张洪铭我是熊博士 阅读(1027) 评论(0) 推荐(0)
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, '... 阅读全文
posted @ 2018-08-23 13:49 我是张洪铭我是熊博士 阅读(1131) 评论(0) 推荐(0)
输出调试技巧 PRINTF()

摘要:PRINTF("write license file success"); PRINTF("!Your license is expired,Please upgrade permissions"); 输出效果如下: 111:writeLicFile::write license file succ 阅读全文
posted @ 2018-08-23 11:39 我是张洪铭我是熊博士 阅读(180) 评论(0) 推荐(0)
time_t time()

摘要:time_t atime, btime; time(&atime); btime = time(0); 两种方式效果一样。 阅读全文
posted @ 2018-08-23 10:29 我是张洪铭我是熊博士 阅读(188) 评论(0) 推荐(0)
VS2010 运行时 出现cmd窗口的设置方法

摘要:项目 - 属性 -生成事件 --后期生成事件 ->命令行 (editbin /SUBSYSTEM:CONSOLE $(OUTDIR)\$(ProjectName).exe) 注:如果最终生成的可执行不需要cmd,记得取消这个设置。 阅读全文
posted @ 2018-08-23 09:42 我是张洪铭我是熊博士 阅读(2281) 评论(0) 推荐(0)
微盘 微博

该文被密码保护。
posted @ 2018-08-14 10:20 我是张洪铭我是熊博士 阅读(0) 评论(0) 推荐(0)
sourceInsight工具移除不掉项目 source Insight Add and Remove Project Files

摘要:问题描述: sourceInsight创建的项目,有时候会遇到Remove Project 报错,移除不成功的情况。 解决办法: 进入到sourceinsight的安装目录。删除掉保存的工程文件信息即可。 默认的安装路劲为:C:\Users\Administrator\Documents\Sourc 阅读全文
posted @ 2018-08-12 10:56 我是张洪铭我是熊博士 阅读(2635) 评论(0) 推荐(0)
“0x00,0x08”两个十六进制字符串,转换为整形

摘要:使用ntohl 参考:网址 阅读全文
posted @ 2018-08-06 17:49 我是张洪铭我是熊博士 阅读(2841) 评论(0) 推荐(0)
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 阅读全文
posted @ 2018-08-06 17:41 我是张洪铭我是熊博士 阅读(1662) 评论(0) 推荐(0)
51CTO网站

该文被密码保护。
posted @ 2018-08-05 09:54 我是张洪铭我是熊博士 阅读(3) 评论(0) 推荐(0)
程序开始打印程序信息

摘要:void printSoftwareInfo(const char *programName, const char *date, const char *time){ char s_month[5]; int month, day, year; static const char month_na 阅读全文
posted @ 2018-08-03 14:26 我是张洪铭我是熊博士 阅读(194) 评论(0) 推荐(0)
获取本地时间 精确到毫秒

摘要:string GetSysUsecTimeHMS(){ char szBuf[256] = {0}; struct timeval tv; struct timezone tz; struct tm *p; gettimeofday(&tv, &tz); p = localtime(&tv.tv_s 阅读全文
posted @ 2018-08-03 14:00 我是张洪铭我是熊博士 阅读(1476) 评论(0) 推荐(0)

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3