📄 bcjq059.txt
字号:
C++ Builder开发者:程序员之家
var how_many_ads = 3;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
首页
| 控件天堂 | 控件使用
| 编程技巧
| 源代码 | 编程工具 |
系统补丁 | 电子书籍 | 技术论坛
| 相关链接
if (ad==1) {document.write(''+'');}
if (ad==2) {document.write(''+'');}
if (ad==3) {document.write(''+'');}
var marqueecontents=''+scroll_text+''
if (document.all)
document.write(''+marqueecontents+'')
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout("window.onresize=regenerate",450)
intializemarquee()
}
}
function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.write(marqueecontents)
document.cmarquee01.document.cmarquee02.document.close()
thelength=document.cmarquee01.document.cmarquee02.document.height
scrollit()
}
function scrollit(){
if (document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){
document.cmarquee01.document.cmarquee02.top-=speed
setTimeout("scrollit()",100)
}
else{
document.cmarquee01.document.cmarquee02.top=marqueeheight
scrollit()
}
}
window.onload=regenerate2
当前位置
:
编程技巧
加
速 编 译
利用C++Builder编译一个大的项目需要冗长的过程但是,如果你有已经调试好的forms,
你可以把他们包含到一个库中,这个库连接到项目中。这将极大的减少编译时间。具体步骤如下:
1. 建立一个新的库工程(Library project).
2. 在库工程的主CPP文件中添加一行:include <vcl.h>
3. 按[Ctrl][Shift][F11]激活工程选项,确认清除了在Directories/Conditional页中的Conditional字段,当开始一个新库时,通常C++Builder设置为_NO_VCL
声明。
4. 添加所有的你想加入的forms到Library project中。
5. 编译这个library并且把它添加到主执行项目中去。确认你在加入这个库时,这个库所包含的forms已经从项目中删除了。
6.
编译这个项目,将发现编译时间减少了。而且这也将稍微减少可执行文件的大小。
if (ad==1) {document.write(''+'');}
if (ad==2) {document.write(''+'');}
if (ad==3) {document.write(''+'');}
C++ Builder开发者®
2000年06月01日 站长:唐朝