loader.cpp

来自「OMB COMMON CLASSES 源代码」· C++ 代码 · 共 23 行

CPP
23
字号
#include "comcommand.h"

int testMain()
{
	ComCommand cc ;
	char command[1024] ;
	cc.BindDev() ;
	int iRet = cc.WaitKbHit("Press any key to set OMB parameters.",10) ;
	if ( OK==iRet )
	{
		cc.WritePrompt("OMC-R IP Address:") ;
		cc.ReadCommand(command,1024) ;
		printf("The command is: (%s).\n",command) ;
		int i = 0 ;
		while ( command[i]!=0x00 )
		{
			printf("%2d ",command[i++]) ;
		}
		printf("\n") ;
	}
	cc.WritePrompt("Now loading...\r\n") ;
	return OK ;
}

⌨️ 快捷键说明

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