⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testdata.cpp

📁 tornado2.0 for PPC VxWorks socket 源代码
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -