vc++中如何用8个字节拼成一个64位整数 64位vc++网络 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 自己不能模拟MAKELONG写个MAKEINT64? 可以用union union CONVERT{ __int64 x; BYTE b[8];};CONVERT y;y.b[0] = 0x12;y.b[1] = 0x34;y.b[2] = 0x56;y.b[3] = 0x78;y.b[4] = 0xab;y.b[5] = 0xcd;y.b[6] = 0xef;y.b[7] = 0x12; 你自己实现一个类似的比如MAKELONGLONG#define MAKELONGLONG(a, b) ((unsigned __int64)(((DWORD)(a)) | ((unsigned __int64)((DWORD)(b))) << 32)) UINT64 LongFromChar(const UINT8 *pInput){ UINT64 Templong; Templong = ( *(pInput) ); Templong = ( Templong<<8 ) + ( *(pInput+1) ); Templong = ( Templong<<8 ) + ( *(pInput+2) ); Templong = ( Templong<<8 ) + ( *(pInput+3) ); Templong = ( Templong<<8 ) + ( *(pInput+4) ); Templong = ( Templong<<8 ) + ( *(pInput+5) ); Templong = ( Templong<<8 ) + ( *(pInput+6) ); Templong = ( Templong<<8 ) + ( *(pInput+7) ); return Templong;} 询问一下MDI的2个问题 载入文件,请问如何提速 编译问题 传输文件,C++类里定义DIALOG类的问题 请问调用CWinApp::OnFileNew();的方法 向afinet网友道歉 我很想问大家, 程序员的路在哪里? 在VC中如何把一张位图复制到剪贴板中,又如何把复制的粘贴出来? 怎样的界面怎么实现,或者大家说说思路或者方法,都给分 求在grid 控件中显示 组合框程序 加方法 mfc 聊天程序,怎么实现不同字体,颜色以及大小的? 如何使一个线程只检测那一个USB口?
__int64 x;
BYTE b[8];
};CONVERT y;
y.b[0] = 0x12;
y.b[1] = 0x34;
y.b[2] = 0x56;
y.b[3] = 0x78;
y.b[4] = 0xab;
y.b[5] = 0xcd;
y.b[6] = 0xef;
y.b[7] = 0x12;
比如MAKELONGLONG
#define MAKELONGLONG(a, b) ((unsigned __int64)(((DWORD)(a)) | ((unsigned __int64)((DWORD)(b))) << 32))
{
UINT64 Templong;
Templong = ( *(pInput) );
Templong = ( Templong<<8 ) + ( *(pInput+1) );
Templong = ( Templong<<8 ) + ( *(pInput+2) );
Templong = ( Templong<<8 ) + ( *(pInput+3) );
Templong = ( Templong<<8 ) + ( *(pInput+4) );
Templong = ( Templong<<8 ) + ( *(pInput+5) );
Templong = ( Templong<<8 ) + ( *(pInput+6) );
Templong = ( Templong<<8 ) + ( *(pInput+7) );
return Templong;
}