CnPack Forum

#1 bcb 使用CnConsole
[code]void WriteLn(String text)
{
static HANDLE handle;
if (!handle) {
AllocConsole();
handle = GetStdHandle(STD_OUTPUT_HANDLE);
}
text += "\n";
WriteConsole(handle,
text.c_str(), text.Length(), 0, 0);
}

//---------------------------------------------------------------------------
void __fastcall TForm1::CnButton1Click(TObject *Sender)
{
WriteLn ("this is a test");
}[/code]
12/20 09:21
fbms

#2
..

#1 >>Next Page

Forum:CnVCL 组件包
Thread:bcb 使用CnConsole
Next Thread:建议增加 SQLITE3 数 ...

Home
Login

Powered by Discuz!