|
[求助]masm32编程,wsprintf函数获取时间 问题
嘿,N久前的问题了,现在看来,有点好笑了 |
|
[求助]masm32编程,wsprintf函数获取时间 问题
我上面的写法转了,编译连接运行没问题,但是读出的数据不对,谁能给我一个正确的写法,感激中 |
|
[求助]masm32编程,wsprintf函数获取时间 问题
奇怪,我这样写,读出的数据不对: invoke wsprintf,addr szSQL, addr szReceive, dword ptr @stTime.wYear,dword ptr @stTime.wMonth,dword ptr @stTime.wDay,\ dword ptr @stTime.wHour,dword ptr @stTime.wMinute,\ dword ptr @stTime.wSecond,addr szContext |
|
[求助]masm32编程,wsprintf函数获取时间 问题
我就知道 “小虾”会回答,我也刚好看到同样的问题,的确,WINDOWS使用的是32位数, 即使我们只指定了16的数, 但在压入堆栈时系统会自动再压入一个0, 这样WSPRINTF得到的参数就与我们指定的不同。谢谢小虾! |
|
[求助]masm32编程,如何给一个对话框添加菜单
解决方法: 1.根据2楼朋友的方法,首先在资源脚本中创建menu资源,然后对比MFC中生成对话框上附加 menu的资源脚本,发现只添加一句就可以了。 DLG_MAIN DIALOG 195,180,300,192 STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_EX_APPWINDOW CAPTION " TEST MASM " MENU IDR_MENU //这里指定菜单资源的ID FONT 9,"宋体" ......... 然后,在wm_command命令响应中,就可以处理菜单消息事件了。 可见,阅读资源脚本,互比异同,也是可以学到很多东西的。 2.根据三楼朋友提供的方法,方法比较灵活,正如他所说“我不喜欢资源啊什么的,喜欢全用代码实现,动态添加菜单:”方法同样是可以的。 我觉得, windows程序编写,最大的一个特点是代码和资源脚本是分离的,这是一个特色,在生成的过程中全部有资源管理器代理,当然也可以全部create创建。而java在这一点上不同,代码和控件是一体的,必须要全部生成,我倒不是很喜欢这一点。毕竟在代码里创建,和分离资源,二者的优劣性是不可比的 |
|
[求助]masm32编程,如何给一个对话框添加菜单
谢谢楼上二位的解答 |
|
[求助]masm32编程,如何给一个对话框添加菜单
是我问的问题太古老了吗,抑或是太菜了。。期待一位大侠路过 |
|
[原创]纯C实现多页面山寨浏览器(KsBinExplorer)
支持,我来看雪,最大的收获就是知道了自己渺小 |
|
[已解决][求助]VC6 debug运行正常,release有问题?
呵呵,不管怎样,学到了一些东西,哪怕是风格 |
|
[讨论]大家都是怎么样去调试嵌入式的系统
嵌入式,未来一段时间肯能要进军这块。学习啦 |
操作理由
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 }}
勋章
兑换勋章
证书
证书查询 >
能力值