void test()
{
const int cnBufferSize = 256;
unsigned char achBuffer[cnBufferSize] = {0};
SMsgBuffer sMsgData = {0};
memcpy(&sMsgData,achBuffer,cnBufferSize);
bool isresult = true;
}
void start()
{
bool isresult = true;
while (isresult)
{
test();
isresult=false;
}
DWORD dwFlags=0;
//some more calls below
}
|