C ++ 16位MFC代码到32位代码 [英] c++ 16 bit mfc code to 32 bit code

查看:95
本文介绍了C ++ 16位MFC代码到32位代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要帮助将16位MFC代码转换为32位...给我有关如何执行的建议

i need help in converting 16 bit mfc code to 32 bit one... give me the suggestions to how to perform

推荐答案

使用C ++,预定义类型取决于在平台上.
您需要考虑不同系统中整数类型的映射.您可以在此处找到此数据:比较 http://en.wikipedia.org/wiki/16-bit [ ^ ]和
希望您不要在segment:offset格式中使用原始地址.如果您这样做,请查看代码的相关部分.最有可能的是,应将它们完全删除.使用32位和64位数据模型,您可以基于分页使用平面"内存模型和虚拟内存.

—SA
With C++, predefined types depend on the platform.
You need to take into account mapping of integer types in different system. You can find this data here: compare http://en.wikipedia.org/wiki/16-bit[^] and http://en.wikipedia.org/wiki/64-bit[^], look for "Specific C-language data models".

I hope you did not use raw addresses in the form segment:offset. If you did, review related parts of the code. Most likely, they should be totally removed. With 32-bit an 64-bit data models you work with "flat" memory model and virtual memory based on paging.

—SA


这篇关于C ++ 16位MFC代码到32位代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆