test.cpp
来自「tornado2.0 for PPC VxWorks socket 源代码」· C++ 代码 · 共 37 行
CPP
37 行
// Main program file generated by Zinc Designer.
#include "test.inc"
int ZafApplication::Main(void)
{
// Ensure main() is linked properly.
LinkMain();
// 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);
// Display initial windows.
windowManager->Add(new ZafWindow(ZAF_ITEXT("TestWindow"), *objectPersistence));
// Get the user input.
Control();
delete objectPersistence;
objectPersistence = ZAF_NULLP(ZafObjectPersistence);
delete storage;
// Return success.
return (0);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?