In order to transport a class through Tcp,I have to define constant length's variable in this class,between int and long,which one's size is constant on differernt CPU Type(32 and 64 bit)?
thank you!
In order to transport a class through Tcp,I have to define constant length's variable in this class,between int and long,which one's size is constant on differernt CPU Type(32 and 64 bit)?
thank you!
You shouldn't rely on either (all though in most cases you can).
Instead use qint32, qint64, etc.
Save yourself some pain. Learn C++ before learning Qt.
but neither qint32 nor qint64 is defined in qt3.3.4.
Q_INT32 and Q_INT64. They're all defined in qglobal.hOriginally Posted by coralbird
Save yourself some pain. Learn C++ before learning Qt.
thank Chicken Blood Machine !I have solved this problem as your guide.
Bookmarks