queryras.cpp

来自「Query Ras Connection」· C++ 代码 · 共 48 行

CPP
48
字号
// QueryRas.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "QueryRas.h"
#include "AT_QueryRas.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// The one and only application object

CWinApp theApp;

using namespace std;

int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
{
	int nRetCode = 0;
    AT_QueryRas qr;

	// initialize MFC and print and error on failure
	if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
	{
		nRetCode = 1;
	}
	else
	{
        if( argc == 2 )
        {
            cout << qr.Init(CString(argv[1])) << endl;
        }
        else
        {
            cout << "Syntax: QueryRas(String Flags)" << "\n";
            cout << "Flags: ABXS? " << endl;
			cout << "A = AUTO-Ax, B = AUTO-Bx, X = Neither AUTO-Ax nor AUTO-Bx" << endl;
			cout << "S = Return comma-delimited Server list" << endl;
			cout << "? = Whether or not a entry of specified type(s) is connected, TRUE or FALSE" << endl;
            
        }
	}

	return nRetCode;
}

⌨️ 快捷键说明

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