第一个问题:
Ctransferthread类中调用:
DownLoadFileThread* m_DownloadFileThread=(DownLoadFileThread*)AfxBeginThread(RUNTIME_CLASS(DownLoadFileThread), THREAD_PRIORITY_BELOW_NORMAL,0, CREATE_SUSPENDED);
m_DownloadFileThread->m_bAutoDelete=FALSE;
m_DownloadFileThread->SetValues(this,2);
m_DownloadFileThread->ResumeThread();DownLoadFileThread类中函数:
void SetValues(const Ctransferthread* in_pOwner , int i_ID);他怎么出现这个提示:
error C2664: “View::DownLoadFileThread::SetValues” : 不能将参数 1 从“View::Ctransferthread *const ”转换为“const Ctransferthread *” 第二个问题:
假如我想在DownLoadFileThread类中的访问Ctransferthread类中的变量,能不能直接把Ctransferthread对象传过去?
Ctransferthread类中调用:
DownLoadFileThread* m_DownloadFileThread=(DownLoadFileThread*)AfxBeginThread(RUNTIME_CLASS(DownLoadFileThread), THREAD_PRIORITY_BELOW_NORMAL,0, CREATE_SUSPENDED);
m_DownloadFileThread->m_bAutoDelete=FALSE;
m_DownloadFileThread->SetValues(this,2);
m_DownloadFileThread->ResumeThread();DownLoadFileThread类中函数:
void SetValues(const Ctransferthread* in_pOwner , int i_ID);他怎么出现这个提示:
error C2664: “View::DownLoadFileThread::SetValues” : 不能将参数 1 从“View::Ctransferthread *const ”转换为“const Ctransferthread *” 第二个问题:
假如我想在DownLoadFileThread类中的访问Ctransferthread类中的变量,能不能直接把Ctransferthread对象传过去?
解决方案 »
- 关于 AFX_MSG_CALL
- 将word转化为chm
- 求助关于waitforsingleobject
- 有一段话自己总是不能理解,还请高人指点
- 关于 MSChart Control 和Teechart 的问题?? 紧急求助!!
- 如何同时在程序中应用窗口界面与控制台界面?
- 程序员有什么好啊?
- 如何获取可执行文件属性里的说明?
- 请教高手如何将OpenGL模型展开成平面,使用欧拉角方式展开有缺陷
- 如何分配2G以上的内存?
- 如何在SQL server 数据库中提取image字段的内容?
- 谁能帮个忙,有这本书《Introduction to Visual C++ 6.0 Standard Edition》中文版吗?
在使用时只需要判断一下!=NULL就行
{
while(1)
{
printf("okwwwwwwwwwwwwwww1\n");
}}
void main()
{ CreateThread(NULL,0,fun,0,0,0);//建立一个线程
while(1)
{
printf("ok2\n");
}}