我建了一个工程,(ListView).Debug下能编译能过,不能运行。
解决方案 »
- 在ScrollView中画圆,发现重绘时有问题
- VC串口通讯的问题
- 二个VC++问题.
- CEdit控件的EN_VSCROLL消息
- 问大家一个超超超超超超超难的问问问题题
- 请教有即时通讯软件开发经验的前辈们... 100分
- 编译ATL工程的连接错误:msvcrt.lib(dllsupp.obj) : error LNK2005: __fltused already defined in StdAfx.obj
- _stdcall是干什么的?我查了msdn还是不清楚.
- 拜师(VC)
- 急,国内在哪能下载到windows ce embedded visual tools 3.0(下载速度快点)
- VC开发activex ocx控件,调用客户端USB摄像头问题求助
- [散分]回家、拜年
3,CXXXView。CPP中加入
CString GenRandInt()
{
int n = (rand() % 100000) + 200;
CString str;
str.Format(_T("%d"), n);
return str;
}CString GenRandDate()
{
COleDateTime now = COleDateTime::GetCurrentTime();
COleDateTimeSpan span(rand() % 3650, rand() % 24, rand() % 60, rand() % 60);
now -= span;
return now.Format();
}CString GenRandDbl()
{
CString s = GenRandInt();
s.Insert(s.GetLength() - 2, _T('.'));
return s;
}CString GenRandStr()
{
const CString LETTERS = _T("abcdefghijklmnopqrstuvwxyz0123456789");
const int LEN = 16; CString str;
for (int i = 0; i < LEN; i++)
{
str += LETTERS[rand() % LETTERS.GetLength()];
} return str;
}