v_app.cpp

来自「这是一个在vxWorks操作系统下的原创电子地图代码」· C++ 代码 · 共 42 行

CPP
42
字号
//	Zinc Application Framework - V_APP.CPP//  Copyright (c) 1990-1998 Zinc Software, Inc.//  Copyright (c) 1999-2000 Wind River Systems, Inc.#include <zinc/z_app.hpp>#include <zinc/z_error.hpp>	// For Beep().#include <taskLib.h>// ----- main ---------------------------------------------------------------int ZafVxWorksMain(void){	// Call the application program.	ZafApplication application(0, 0);	if (application.Error() == ZAF_ERROR_CONSTRUCTOR)	{		// The ZafApplication object was not fully constructed.		ZafErrorStub::Beep();		return (1);	}	else		return (application.Main());}extern "C"{int draw(){		/*DDL_initMapGlobal();	DDL_readDbfFile("host:e:\\default\\mapdata\\");	DDL_readLabelPoint("host:e:\\default\\mapdata\\");*/	if (taskSpawn("ZAF_DRAW", 90, VX_FP_TASK, ZAF_VXW_STACK_SIZE + 1024567,		(FUNCPTR)ZafVxWorksMain, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) != ERROR)		return (0);	else		return (-1);}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?