|
[求助]code::blocks是否有代码自动提示[已解决]
我也在用codeblocks,不过主要还是用 vc6+VAX10.4+VCPKG3.3 |
|
[求助]关于VC++ 中的二个问题!!!
不是,你应该返回 FilePath中的指针,而不是返回临时变量的指针 char* ExtractFileName(char* szfilename) { char* psrc=strrchr(szfilename,'\\'); return (psrc?psrc+1:NULL); } |
|
[原创]vcpkg 3.1 - 让VC6支持无限多平台编译
有兴趣的朋友不妨把自己的配置文件发出来交流分享一下,同时也方便其他人使用 |
|
[求助]多线程 访问同一结构体
LZ的回复比我详细,用临界段控制不错的 可以考虑在INFO这个结构中封装require,release类的函数,省去在调用方放入同步代码,毕竟数据自身的同步是这个数据对象的事 |
|
[求助]如何把PE文件的所有资源导出为 *.res
谢谢,确实很好用,它可以导出所有资源到一个 res |
|
[求助]一个hook recv的问题,hook掉后,程序崩溃。等待解答,大家看代码吧:
1.硬编码方式的保存函数头会有问题 2.MessageBox 开销很大,建议使用 OutputDebugString,可以用 DbgView 来查看输出 3.备份寄存器 用 pushad/popad 即可,你将其保存到全局变量存在问题,例如多线程下,函数重入,那么将损坏所保存的寄存器信息 |
|
[原创]vcpkg 3.1 - 让VC6支持无限多平台编译
增加一个 intel Cpp Compiler 和 VC6共存的配置 |
|
|
|
[下载]之前有监视注册表的,这次发个小工具,文件系统监视
用 filemon 不是更强大? |
|
[求助]多线程 访问同一结构体
线程同步的问题 |
|
|
|
[求助]VC 有这样的编译吗? [不知道怎么描述.具体内详]
不客气,助人为乐,给你一个比较完整的(我直接平时用的代码块) #define _DBG #ifdef _DBG __inline VOID DbgPrintA(LPCSTR ptzFormat, ...) { va_list vlArgs; CHAR tzText[1024]; va_start(vlArgs, ptzFormat); wvsprintfA(tzText, ptzFormat, vlArgs); OutputDebugStringA(tzText); va_end(vlArgs); } __inline VOID DbgPrintW(LPCWSTR ptzFormat, ...) { va_list vlArgs; WCHAR tzText[1024]; va_start(vlArgs, ptzFormat); wvsprintfW(tzText, ptzFormat, vlArgs); OutputDebugStringW(tzText); va_end(vlArgs); } #ifdef _UNICODE #define DbgPrint DbgPrintW #else #define DbgPrint DbgPrintA #endif #else // DbgPrint #if _MSC_VER > 1200 #define DbgPrintA (__noop) #define DbgPrintW (__noop) #define DbgPrint (__noop) else #define DbgPrintA ((VOID) (0)) #define DbgPrintW ((VOID) (0)) #define DbgPrint ((VOID) (0)) #endif #endif // DbgPrint 解释一下,ASCII和UNICODE都存在,对于VC6以上版本,使用库函数__noop(否则,会有 4353警告),否则 用 #pragma warning(disable:4353) 关掉警告 |
|
[求助]VC 有这样的编译吗? [不知道怎么描述.具体内详]
#define debug_str ((void)0) |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值