testdata.cpp
来自「tornado2.0 for PPC VxWorks socket 源代码」· C++ 代码 · 共 60 行
CPP
60 行
// Main program file generated by Zinc Designer.
#include "testmain.hpp"
#include "iosLib.h"
#include "test.inc"
extern "C"{
#include "hzkType.h"
}
TestWindow *testWindow;
SystemRealTimeData *systemRealTimeData;
int ZafApplication::Main(void)
{
// Ensure main() is linked properly.
LinkMain();
hzUnit(HZK16);
// Establish access to external objects and data.
ZafStorage *storage = new ZafStorage(ZAF_ITEXT("test.znc"), ZAF_FILE_READ);
if (storage->Error())
{
errorSystem->ReportError(ZAF_NULLP(ZafWindowObject),
ZAF_ITEXT("Error"), ZAF_DIALOG_OK,
ZAF_ITEXT("test.znc could not be found."));
delete storage;
return (-1);
}
objectPersistence = new UserPersist(storage);
systemRealTimeData =new SystemRealTimeData(ZAF_ITEXT("SystemRealTimeData"), *objectPersistence);
testWindow =new TestWindow(ZAF_ITEXT("TestWindow"), *objectPersistence);
windowManager->Add(new TestWindow(ZAF_ITEXT("TestWindow"), *objectPersistence));
// Get the user input.
Control();
//IOClose();
//IODevDelete();
//PIOClose();
//PIODevDelete();
delete objectPersistence;
objectPersistence = ZAF_NULLP(ZafObjectPersistence);
delete storage;
// Return success.
return (0);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?