if((CDataAcqu::m_amtk==1)&&(m_calibration->m_use_autosampler==TRUE))
{
int b;
if( (tapp->ptr->pRunStatus==0) || (tapp->ptr->pRunStatus==15))//&& tapp->RunFlag==1)
{ b=tapp->ptr->pSequenceProgressIndex;
if(b<RunIndex)RunIndex=b;
if(RunIndex<=(tapp->ptr->pSeqCount))
{
tapp->ptr->pSeqInjectModeIndex=RunIndex;
if(tapp->ptr->pSeqInjectModeData==2)
{
tapp->ptr->pSequenceProgressIndex=b; //序列程序索引
tapp->ptr->pEquipmentStart(); //启动自动进样器
}
RunIndex++;
}
else
{
RunIndex=1;
RepeatRunIndex=0;
}
}
Sleep(5000);
}TestHardware();绿色字的代码不论是加在红色的函数之前还是之后都会影响TestHardware()函数,不明白是什么原因谁能帮我解答一下。
{
int b;
if( (tapp->ptr->pRunStatus==0) || (tapp->ptr->pRunStatus==15))//&& tapp->RunFlag==1)
{ b=tapp->ptr->pSequenceProgressIndex;
if(b<RunIndex)RunIndex=b;
if(RunIndex<=(tapp->ptr->pSeqCount))
{
tapp->ptr->pSeqInjectModeIndex=RunIndex;
if(tapp->ptr->pSeqInjectModeData==2)
{
tapp->ptr->pSequenceProgressIndex=b; //序列程序索引
tapp->ptr->pEquipmentStart(); //启动自动进样器
}
RunIndex++;
}
else
{
RunIndex=1;
RepeatRunIndex=0;
}
}
Sleep(5000);
}TestHardware();绿色字的代码不论是加在红色的函数之前还是之后都会影响TestHardware()函数,不明白是什么原因谁能帮我解答一下。
解决方案 »
- 对话框在任务栏上显示的问题,应该怎么做呀!
- CSocket的菜鸟级问题
- 在对话框的static控件上画图,如何做到图像超出static尺寸的时候,多出部分不会画到父对话框上去?
- 该不该学习c# 请高手指点 ??????????????????/
- Clist的问题
- 很头痛的问题....
- 我用CRecordSet操作数据库,我想查看一个数据表里边有没有该记录,有就修改,没有就添加,具体操作方法是什么呀?急!高分求教
- 帮忙,看看这个错误是什么意思????
- 如何确定是in process还是out of process??
- VC制作的DLL在VB中调用时出现的问题!!!
- 请教类与类之间数据交换问题!
- 关于工程部署的问题
{
int b;
if( (tapp->ptr->pRunStatus==0) || (tapp->ptr->pRunStatus==15))
{
b=tapp->ptr->pSequenceProgressIndex;
if(b <RunIndex)
RunIndex=b;
if(RunIndex <=(tapp->ptr->pSeqCount))
{
tapp->ptr->pSeqInjectModeIndex=RunIndex;
if(tapp->ptr->pSeqInjectModeData==2)
{
tapp->ptr->pSequenceProgressIndex=b; //序列程序索引
tapp->ptr->pEquipmentStart(); //启动自动进样器
}
RunIndex++;
}
else
{
RunIndex=1;
RepeatRunIndex=0;
}
}
}TestHardware(); 绿色字的代码不论是加在红色的函数之前还是之后都会影响TestHardware()函数,不明白是什么原因谁能帮我解答一下。
代码写的很差劲 该空格的地方应该要空格
例如
if((CDataAcqu::m_amtk == 1) && (m_calibration->m_use_autosampler == TRUE))
最好换行 更加明白
if((CDataAcqu::m_amtk == 1) &&
(m_calibration->m_use_autosampler == TRUE))