当前位置: 首页>>代码示例>>C++>>正文


C++ InitConsole函数代码示例

本文整理汇总了C++中InitConsole函数的典型用法代码示例。如果您正苦于以下问题:C++ InitConsole函数的具体用法?C++ InitConsole怎么用?C++ InitConsole使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了InitConsole函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: MAMain

extern "C" int MAMain() {
    InitConsole();
    gConsoleLogging = 1;
    printf("Hello World!\n");
    writeAFile("");
    FREEZE;
}
开发者ID:ronald132,项目名称:MoSync,代码行数:7,代码来源:main.cpp

示例2: MAMain

extern "C" int MAMain() {
	InitConsole();
	gConsoleLogging = 1;
	scan();
	Freeze(0);
	return 0;
}
开发者ID:AliSayed,项目名称:MoSync,代码行数:7,代码来源:main.cpp

示例3: MAMain

extern "C" int MAMain() {
	InitConsole();
	gConsoleLogging = 1;
	printf("Hello World!\n");
	tryToRead();
	FREEZE;
}
开发者ID:Felard,项目名称:MoSync,代码行数:7,代码来源:main.cpp

示例4: InitConsole

CBoxProxyView::CBoxProxyView()
{
	InitConsole();
	// TODO: 在此处添加构造代码
	configPara.align_threshold=0.01;
	configPara.penetrate_threshold=0.01;
	configPara.touch_threshold=0.02;
	configPara.visibility_extension=0.3;
	configPara.visible_point_threshold=100;
	configPara.ground_touch_threshold=0.1;
	configPara.error_threshold=3e-5;
	cI.setPara(configPara);
	cam.defaultInit();
	defaultFileName="xml/scene1.xml";
	MouseDown=false;
	up=1;
	angle1=90;
	angle2=0;
	dist=5;
	cX=0;
	cY=0;
	cZ=0;
	testMode=false;
	gettingDepth=false;
	GraphCreated=false;
	GraphFinished=false;
	showExtend=true;
	showOrig=true;
	viewDepthMap=NULL;
	myDepthMap=NULL;
	testDepthMap=NULL;
	conGraph=NULL;
}
开发者ID:Khrylx,项目名称:BoxProxy,代码行数:33,代码来源:BoxProxyView.cpp

示例5: MAMain

extern "C" int MAMain()
{
	InitConsole();
	gConsoleLogging = 1;
	Moblet::run(new SMV());
	return 0;
}
开发者ID:brzeszczot,项目名称:wawa1935,代码行数:7,代码来源:main.cpp

示例6: MAMain

extern "C" int MAMain() {
	int discoveryState;
	InitConsole();
	gConsoleLogging = 1;

	printf("Hello World!\n");
	discoveryState = maWlanStartDiscovery();
	printf("WLAN: %i\n", discoveryState);
	
	while(1) {
		maWait(0);
		MAEvent event;
		if(maGetEvent(&event)) {
			if(event.type == EVENT_TYPE_CLOSE)
				break;
			if(event.type == EVENT_TYPE_KEY_PRESSED) {
				if(event.key == MAK_0)
					break;
				if(event.key == MAK_FIRE && discoveryState == 1) {
					discoveryState = maWlanStartDiscovery();
					printf("WLAN: %i\n", discoveryState);
				}
			}
			if(event.type == EVENT_TYPE_WLAN) {
				printf("State %i\n", event.state);
				dumpAllAvailableAps();
				printf("Done.\n");
				discoveryState = event.state;
			}
		}
	}
	return 0;
}
开发者ID:AliSayed,项目名称:MoSync,代码行数:33,代码来源:wlan.cpp

示例7: InitConsole

void AppWnd::Init()
{
	InitConsole();
	InitWindow();

	Application = new AppTest();
	Application->Init(WindowHandle);
}
开发者ID:LeifNode,项目名称:Novus-Engine-2,代码行数:8,代码来源:AppWnd.cpp

示例8: MAMain

int MAMain() {
	InitConsole();

	printf("Battery Status: %i\n", maGetBatteryCharge());

	FREEZE;
	return 0;
}
开发者ID:Felard,项目名称:MoSync,代码行数:8,代码来源:main.c

示例9: InitCommonControls

int CMPlugin::Load()
{
	g_plugin.registerIcon("Console", iconList);

	InitCommonControls();
	InitConsole();
	return 0;
}
开发者ID:tweimer,项目名称:miranda-ng,代码行数:8,代码来源:init.cpp

示例10: init_vme

/*
 * Initialize the VM/CNSconsole.
 */
errr init_vme(void)
{
	register i;

	term *t = &term_screen_body;

	short blank = ' ';

	static int done = FALSE;

	/* Paranoia -- Already done */
	if (done) return (-1);

	/* Build a "wiper line" of blank spaces */
	for (i = 0; i < 256; i++) wiper[i] = blank;

	/* Acquire the size of the screen */
	rows = 25;
	cols = 80;

	/* Initialize the console */
	InitConsole();

	/* Wipe the screen */
	for (i = 0; i < rows; i++)
	{
		/* Wipe that row */
		memcpy(VirtualScreen + (i*cols), wiper, cols);
		memset(ScreenAttr + (i*cols), 0xF1, cols);
	}

	/* Erase the screen */
	ScreenClear();

	/* Initialize the term -- very large key buffer */
	term_init(t, cols, rows - 1, 1024);

	/* Prepare the init/nuke hooks */
	t->nuke_hook = Term_nuke_vm;

	/* Connect the hooks */
	t->text_hook = Term_text_vm;
	t->wipe_hook = Term_wipe_vm;
	t->curs_hook = Term_curs_vm;
	t->xtra_hook = Term_xtra_vm;

	/* Save it */
	term_screen = t;

	/* Activate it */
	Term_activate(term_screen);

	/* Done */
	done = TRUE;

	/* Success */
	return 0;
}
开发者ID:NickMcConnell,项目名称:OangbandU,代码行数:61,代码来源:main-vme.c

示例11: __declspec

extern "C" void __declspec(dllexport) CALLBACK RunTests(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow)
{
	InitConsole();

	std::cout << "cmd-line: " << lpszCmdLine << std::endl;
	std::cout << "Running test listFiles on file " << lpszCmdLine << ":" << std::endl;
	listFiles(lpszCmdLine);
	system("PAUSE");
}
开发者ID:MGraefe,项目名称:deferred,代码行数:9,代码来源:tests.cpp

示例12: InitConsole

int  DumpObject::SizeAlloc(AG_SizeAlloc *a)
{
    int w,h;
    if(a == NULL) return -1;
    w = a->w / CHRW;
    h = a->h / CHRH;
    if((w <= 0) || (h <= 0)) return -1;
    InitConsole(w, h);
    return 0;
}
开发者ID:Artanejp,项目名称:XM7-for-SDL,代码行数:10,代码来源:agar_surfaceconsole.cpp

示例13: InitAllHooks

void InitAllHooks()
{
	Utilits.HookThis((DWORD)&External_GameMainInit,oGameMainInit);
	Hooks.LoadAll();
	Configs.LoadAll();
	Fixes.Load();
#if ( DebugConsole == 1)
	InitConsole();
#endif
}
开发者ID:Natzugen,项目名称:RZ-Project-Ex901,代码行数:10,代码来源:Main.cpp

示例14: main

int main(int argc, char *argv[])
{
#ifdef my_Debug
	InitConsole();
#endif
	QApplication a(argc, argv);
	HardDiskSearch w;
	w.show();
	return a.exec();
}
开发者ID:DemonHan,项目名称:vsqt-work,代码行数:10,代码来源:main.cpp

示例15: __declspec

extern "C" __declspec(dllexport) int Load(void)
{
	mir_getLP(&pluginInfoEx);

	Icon_Register(hInst, "Console", iconList, _countof(iconList));

	InitCommonControls();
	InitConsole();
	return 0;
}
开发者ID:Seldom,项目名称:miranda-ng,代码行数:10,代码来源:init.cpp


注:本文中的InitConsole函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。