• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ InitConsole函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: main

int main(void)
{
	InitConsole();
	Welcome();
	while (1) {
		GameMainLoop();
		ClearConsoleBuffer();
		setConsoleColor(FRED);
		DrawString((WIDTH - strlen("You are dead")) / 2, HEIGHT / 2, "You are dead");
		resetConsoleColor();
		RedrawConsole();
		while (!IsKeyPressed(VK_RETURN));
	}
	return 0;
}
开发者ID:Wonicon,项目名称:ConsoleGame,代码行数:15,代码来源:main.cpp


示例17: IfFailRet

JsErrorCode ChakraHost::Init()
{
    currentSourceContext = 0;

    IfFailRet(JsCreateRuntime(JsRuntimeAttributeNone, nullptr, &runtime));
    IfFailRet(JsCreateContext(runtime, &context));
    IfFailRet(JsSetCurrentContext(context));

    IfFailRet(JsGetGlobalObject(&globalObject));

    IfFailRet(InitJson());
    IfFailRet(InitConsole());

    return JsNoError;
}
开发者ID:chukcha-wtf,项目名称:react-native-windows,代码行数:15,代码来源:ChakraHost.cpp


示例18: MAMain

int MAMain() {
	double SDA = sin(0.0981746875);	//(0x3fb921f9f01b866e) sin error, returning 1
	//) returned 0x000000003ff00000(5.29980882362664E-315)

	InitConsole();
	printf("Floating test");

	DUMPDH(179.288537549407);
	DUMPDH(SDA);

	//return 0;

	Extent scrSize = maGetScrSize();
	scrSize = EXTENT(176, 208);
	double d;

	d = __adddf3(__floatsidf(EXTENT_X(scrSize)), __muldf3(__floatsidf(EXTENT_Y(scrSize)), 63.25));


	d /= 0.0;	//division by zero.

	DUMPD(__floatsidf(EXTENT_X(scrSize)));
	DUMPD(__floatsidf(EXTENT_Y(scrSize)));
	DUMPD(63.25);
	DUMPD(__muldf3(__floatsidf(EXTENT_Y(scrSize)), 63.25));
	d = __adddf3(__floatsidf(EXTENT_X(scrSize)), __divdf3(__floatsidf(EXTENT_Y(scrSize)), 63.25));
	printf("%f %i", d, __fixdfsi(d));
	printf("%f %i", __floatsidf(42), __fixdfsi(__floatsidf(42)));
	printf("%f %i", 63.25, __fixdfsi(63.25));

	printf("%i", dcmp(63.25, 42.0));
	printf("%i", dcmp(42.0, 63.25));
	printf("%i", dcmp(42.0, 42.0));

	DUMPDH(63.25);
	DUMPDH(42.0);
	DUMPDH(__negdf2(63.25));
	DUMPDH(__negdf2(42.0));
	DUMPDH(-63.25);
	DUMPDH(-42.0);
	DUMPDH(2.1470*1000000000.0);
	DUMPDH(2.1475*1000000000.0);	//vsprintf has a bug

	//wait for keypress, then exit
	printf("Press 0 to exit\n");
	FREEZE;
	return 0;
}
开发者ID:AliSayed,项目名称:MoSync,代码行数:48,代码来源:fptest.c


示例19: WinMain

/*
MAIN - EINSTIEGSPUNKT
*/
int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
	HANDLE hMutex = CreateMutex(NULL, true, TRAINERNAME);

	if (GetLastError() == ERROR_ALREADY_EXISTS || hMutex == INVALID_HANDLE_VALUE)
		return FALSE;

	g_hInstance = hInstance;

	// "Software\\Nadeo\\TMUltraTrainer"
	Registration::SetSavePath("Software\\Nadeo\\TMUltraTrainer");

	if (!Registration::CheckRegistration())
	{
		DialogBox(GetDllModule(), MAKEINTRESOURCE(IDD_DIALOG3), NULL, Registration::RegistrationProc);
	}

	if (!Registration::IsRegistered())
		return FALSE;

	InitConsole();

	CSplash splash;
	splash.SetBitmap((HBITMAP)LoadImage(g_hInstance, MAKEINTRESOURCE(IDB_BITMAP1), IMAGE_BITMAP, NULL, NULL, NULL));
	splash.SetTransparentColor(RGB(255,255,255));
	splash.ShowSplash();

	g_hLowLevelKeyHook = SetWindowsHookEx(WH_KEYBOARD_LL, LowLevelKeyboardProc, GetModuleHandle(NULL), NULL);
	
	Sleep(2000);
	splash.CloseSplash();
	
	CreateDialog(hInstance,MAKEINTRESOURCE(IDD_DIALOG1), NULL, DialogProc);
	ShowWindow(g_hWindow, SW_SHOW);

	// Hauptnachrichtenschleife:
	MSG msg;
	while (GetMessage(&msg, NULL, 0, 0))
	{
		TranslateMessage(&msg);
		DispatchMessage(&msg);
	}

	return (int) msg.wParam;
}
开发者ID:copymark,项目名称:TM-Trainer,代码行数:48,代码来源:Main.cpp


示例20: MAMain

int MAMain() {
	double d;
	static const char str1[] = "4.56";
	static const char str2[] = "12389.5612323545034954378343";

	InitConsole();
	printf("Hello World.\n");
	printf("1: %s\n", str1);
	d = strtod(str1, NULL);
	printf("d: %f\n", d);
	printf("2: %s\n", str2);
	d = strtod(str2, NULL);
	printf("d: %f\n", d);

	//Freeze
	Freeze(0);
	return 0;
}
开发者ID:Felard,项目名称:MoSync,代码行数:18,代码来源:strtod.c



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ InitD3D函数代码示例发布时间:2022-05-30
下一篇:
C++ InitConfig函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap