?? agconmemtest.cpp.bak
字號:
/********************************************************************
* For Customer Support contact Analytical Graphics, Inc. at *
* 1.888.785.9973 or 1.610.578.1111 *
********************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "AgConnect.h"
char AgEAppName[]="Connect";
static char *initFileName = NULL;
static char *connection1 = NULL;
static char connectName[256] = "localhost:5001";
AgTConReturnInfo returnInfo;
int sendCommandToStk(char *command){
return (AgConProcessSTKCmd(connection1,command,&returnInfo));
}
int
main()
{
static char cmdString[256] = "GetReport */Satellite/Sat \"LLA Position\"";
int i;
/* Initialize Connect */
AgConInit(initFileName);
/* Open a connection to STK */
AgConOpenSTK(&connection1, AgCTcpType, connectName);
/* Begin sending IPC Commands */
/*AgConProcessSTKCmd(connection1, cmdString1, &returnInfo);*/
sendCommandToStk(cmdString);
/*
* No need to free memory allocated to returnInfo because a Load
* command returns no data.
*
*/
/* Finished sending commands, now close the connection */
AgConCloseSTK(&connection1);
/* Print out the results of the AllAccess command
*/
for (i=0; i < returnInfo.numEntries; i++)
{
AgUtMsg( AgCMsgForceInfo, AgCMsgNoWait, AgCMsgDispDefault, AgCMsgNoErrorCode,
AgCMSourceLine, "Return entry %d:\n%s\n", i+1, returnInfo.returnList[i]);
}
/* Clean up the Return Information, freeing any unneeded memory */
/* Free remaining allocated memory in the Connect module in
* preparation for exit
*/
AgConShutdownConnect();
return (0);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -