本文整理汇总了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;
}
示例2: MAMain
extern "C" int MAMain() {
InitConsole();
gConsoleLogging = 1;
scan();
Freeze(0);
return 0;
}
示例3: MAMain
extern "C" int MAMain() {
InitConsole();
gConsoleLogging = 1;
printf("Hello World!\n");
tryToRead();
FREEZE;
}
示例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;
}
示例5: MAMain
extern "C" int MAMain()
{
InitConsole();
gConsoleLogging = 1;
Moblet::run(new SMV());
return 0;
}
示例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;
}
示例7: InitConsole
void AppWnd::Init()
{
InitConsole();
InitWindow();
Application = new AppTest();
Application->Init(WindowHandle);
}
示例8: MAMain
int MAMain() {
InitConsole();
printf("Battery Status: %i\n", maGetBatteryCharge());
FREEZE;
return 0;
}
示例9: InitCommonControls
int CMPlugin::Load()
{
g_plugin.registerIcon("Console", iconList);
InitCommonControls();
InitConsole();
return 0;
}
示例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;
}
示例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");
}
示例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;
}
示例13: InitAllHooks
void InitAllHooks()
{
Utilits.HookThis((DWORD)&External_GameMainInit,oGameMainInit);
Hooks.LoadAll();
Configs.LoadAll();
Fixes.Load();
#if ( DebugConsole == 1)
InitConsole();
#endif
}
示例14: main
int main(int argc, char *argv[])
{
#ifdef my_Debug
InitConsole();
#endif
QApplication a(argc, argv);
HardDiskSearch w;
w.show();
return a.exec();
}
示例15: __declspec
extern "C" __declspec(dllexport) int Load(void)
{
mir_getLP(&pluginInfoEx);
Icon_Register(hInst, "Console", iconList, _countof(iconList));
InitCommonControls();
InitConsole();
return 0;
}