|
[注意]调戏GameGuard
恩 那样至少能赚个精华 |
|
xxxx
riusksk 好强大呀,注册2007 现金 2007 |
|
[求助]VirtualAlloc 分配内存 出错
一直以为 int wslen = ::MultiByteToWideChar(CP_ACP, 0, pData, dwSize, NULL, NULL);得到的长度就是宽字符的长度 不过到现在还迷糊的是为什么打开小文件不报错呢 |
|
|
|
[求助]VirtualAlloc 分配内存 出错
不是这么写的问题 我上的那些代码都是我测试中更改后的,‘\0’我都加过,这就是个打开文本文件的,打开一般的文件都没有问题,就是打开一个超过2000行的文本出错了,用new 创建缓冲内存没事 LPSTR pData = (LPSTR)VirtualAlloc(NULL, dwSize+10, MEM_COMMIT, PAGE_READWRITE); 关键是这里你申请的内存 +10 也是错误 //LPSTR pData = new char[dwSize + 1]; LPSTR pData = (LPSTR)VirtualAlloc(NULL, dwSize + 1, MEM_COMMIT, PAGE_READWRITE); ReadFile(hFile, (LPVOID)pData, dwSize, &dwBytesRead, NULL); CloseHandle(hFile); pData[dwSize] = '\0'; int wslen = ::MultiByteToWideChar(CP_ACP, 0, pData, dwSize, NULL, NULL); //LPWSTR pWData = new WCHAR[wslen + 1]; LPWSTR pWData = (LPWSTR)VirtualAlloc(NULL, wslen + 1, MEM_COMMIT, PAGE_READWRITE); pWData[wslen] = '\0'; MultiByteToWideChar(CP_ACP, 0, pData, dwSize, pWData, wslen); 上面注释的代码运行是正确的,我就是不明白 为什么用VirtualAlloc 分配会错误 |
|
[求助]VirtualAlloc 分配内存 出错
崩溃了,RING3 不咋地呀。。。 pWData 最后由CString 转换了 不加也行 |
|
甲壳3的界面
确实 这个界面还不如 MFC对话框好看 |
|
[转帖]山东聊城18岁少年编写9000多款软件
有个软件公司定制的1G大小的软件,定价10万 妈呀 视频吗。。。还3天半就完成 。。。 |
|
[活动结束]Kx币换QQ公仔,限量30只
不够数呀。。。。。 |
|
[原创]这论坛有女孩没 哈哈 找个女友
凤毛麟角呀。。。 |
|
xxxxxxxxxxxx
股市下跌 都忙这赚钱呢 |
|
[注意]测试你的肺活量,按住键盘0,憋气,看你能有多少行,男人不做假!
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 |
|
|
|
[已解决]求助多线程全局变量失败的问题
搞定了,浪费大家脑细胞,我赋值错误了 |
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值