Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnVCL 组件包
» bcb 使用CnConsole
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: bcb 使用CnConsole
fbms
新警察
UID 39864
Digest Posts 0
Credits 32
Posts 12
点点分 32
Reading Access 10
Registered 2008-4-25
Status Offline
#1
Post at 2011-12-20 09:21
Profile
|
Blog
|
P.M.
bcb 使用CnConsole
[Copy to clipboard]
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");
}
fbms
新警察
UID 39864
Digest Posts 0
Credits 32
Posts 12
点点分 32
Reading Access 10
Registered 2008-4-25
Status Offline
#2
Post at 2011-12-20 09:23
Profile
|
Blog
|
P.M.
。。。其实不放cnconsole一样弹出来控制台,囧。
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#3
Post at 2011-12-20 17:11
Profile
|
Blog
|
P.M.
CnConsole组件确实就是对AllocConsole等API的封装。
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-23 23:00
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.007629 second(s), 9 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats