WINDOWS基本数据类型示例
标签:style blog class c code java
最近也学学这些,争取把所有东东都串起来。
#include
#include int WINAPI WinMain(
HINSTANCE hInstance,
HINSTANCE PrevInstance,
LPSTR lpCmdLine,
int nCmdShow
)
{
LPSTR szString = "WINDOWS DATA TYPE, STRING";
CHAR lpString[120];
DWORD dwMax = 0xFFFFFFFF;
DWORD dwOne = 0x1;
INT iMax = 0xFFFFFFFF;
INT iOne = 0x1;
MessageBox(NULL,szString,"LPSTR",MB_OK);
CopyMemory(lpString, szString,lstrlen(szString)+1);
MessageBox(NULL,lpString,"CHAR",MB_OK);
if(dwMax>dwOne)
{
MessageBox(NULL,"DWORD类型的数据OXFFFFFFFF > 0X1","DWORD",MB_OK);
}
if(iMaxiOne)
{
MessageBox(NULL,"INT类型的数据 OXFFFFFFFF ","INT",MB_OK);
}
return 0;
}
WINDOWS基本数据类型示例,搜素材,soscw.com
WINDOWS基本数据类型示例
标签:style blog class c code java
原文地址:http://www.cnblogs.com/aguncn/p/3731102.html
评论