delphi pack class是什么?

iamduo 2009-11-02 12:48:18
昨晚,我在尝试把某些控件从D7搬到D2010上。在处理Asta的时候,
有几个提示特怪,
我们一般都是这样写类的
Txxx=class
private
public
可是Asta的作者竟然是这样写得
Txxx=pack class//这个是什么意思?①
private
public

我是直接把Pack删掉了。就不知道是何解?

还有一个
Boolean(Str[0]):=xxx<>nil;
我靠,是不是表示啥高科技?②
高人指点一下。
...全文
76 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
kobaer 2009-11-02
  • 打赏
  • 举报
回复
Boolean(Str[0]):=xxx <>nil;
这种写法和原来c#的有一种写法一样

估计。。。
kobaer 2009-11-02
  • 打赏
  • 举报
回复
不懂
阿发伯 2009-11-02
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 kobaer 的回复:]
压缩存储类  中的压缩何解啊?
[/Quote]
使类的字段按字节对其,缺省是双字对齐
阿发伯 2009-11-02
  • 打赏
  • 举报
回复
Boolean(Str[0]):=xxx <>nil;
这一句的意思是:
if xxx = nil then
Str[0] := 0 (#0)
else
Str[0] := 1 (#1)

如果Str是字符串或者字符数组,应该是#1和#0
kobaer 2009-11-02
  • 打赏
  • 举报
回复
压缩存储类 中的压缩何解啊?
gyk120 2009-11-02
  • 打赏
  • 举报
回复
packed class,压缩存储类
火龙岛主 2009-11-02
  • 打赏
  • 举报
回复
应该是:

Txxx = packed class//这个是什么意思?①压缩存储
private
public
end;
ERR0RC0DE 2009-11-02
  • 打赏
  • 举报
回复
pack class?
木见过,楼主按下F1,将帮助copy过来瞅瞅

Str是什么类型,String的话,我在D7编绎不过。

Boolean(Str[0]) := xxx <>nil;
Str[0]转换成Boolean类型进行赋值(Boolean就是0..1)
Changelog: ========== 2015-04-23 (5.91) - Fixed: IDEFixPack didn't take into account that DB.TFlatList uses late loading through GetCount - Fixed: fastdcc32/64/aarm in XE7 and XE8 didn't load the CompilerSpeedPack into the compiler's process 2015-04-21 (5.9) - Added: Fix for QC 71270, 76338 and 76379. "CodeInsight doesn't like the underscore." - Added: TStringList.IndexOfName optimization - Fixed: FieldAddress optimization could fail if a published field name was also used in an ancestor 2015-02-15 (5.8) - Added: Compiler cleanup code performance optimization for large packages - Added: If XE7's rlink32.dll is detected in older Delphi versions the "too many resources to handle" patch is skipped - Changed: Installer/Uninstaller doesn't require rtl.bpl/vcl.bpl in the PATH anymore - Improved: IDE Fix Pack StringLists use CompareStringOrdinal instead of CompareString 2014-09-16 (5.71) - Improved: EditorLineBreak.ttr patch not only prevents the file loading but also deletes/renames the existing file 2014-08-25 (5.7) - Added: TObject.FieldAddress optimization for DFM loading - Added: Fix for QC 111917: RLINK32: Too many resources to handle. Instead of 3626 it can now handle 65534 resource items - Added: String function replacements without STRINGCHECKS - Added: Fix for "class operator In" class completion - Added: IDEFixPackReg*.exe supports command line parameter /EXTRACT that extracts the files instead of installing them - Added: Disable creation of EditorLineEnd.ttr 解决 EditorLineEnd.ttr 占用问题
IDE Fix Pack 2007 - Version 3.0 (2010-03-15) Installation: ============= 1. Start IDEFixPackReg.exe under your user account 2. Select the IDE registry keys for which you want to install the bugfix 3. Press the "Install" button Uninstallation: =============== 1. Start IDEFixPackReg.exe under your user account 2. Press the "Uninstall" button. This will uninstall the bugfix for all (not only the selected) IDE registry keys. Changelog: ========== 2010-03-15: - Added fix for: QC #80822: ObjectInspecor: Properties are duplicated after scrolling - Added fix for: QC #80776: ObjectInspector shows "EditControl" instead of the real content - Added fix for: QC #79776: Clicking on object Inspector rejects focus 2009-12-22: - Added fix for: QC #75738: Debugging extremly slow - Added fix for: QC #68493: Switching away and back to Delphi orphans focus on Code Editor 2009-12-05: - Added fix for: Vista compatible main icon resource doesn't work 2009-09-03: - Added fix for: 64 bit Debugger assertion - Added fix for: Undo destroyed editor buffer - Added fix for: Vista 64 IDE startup delay - Added: QC #74646: Buffer overflow in TCustomClientDataSet.DataConvert with ftWideString - Fixed: TTabSheet looked strange if used with SilverThemes 2009-03-03: - Fixed: The AppDeActivateZOrder patch now fixes the cause instead of the symptoms - Added fix for: Error Insight fails to find TObject class - Added fix for: Possible deadlock when Error Insight calls ProcessMessages 2009-02-18: - Added for for IDE may select the wrong file when performing a ctrl+click on a filename in the editor - Added faster AnsiCompareFileName replacement function which speeds up the "Install Packages..." dialog 2009-02-05: - Added: fix for "Cannot resolve unit name" Error Insight bug. 2009-01-25: - Fixed: C++Builder compilation slow down caused by the ReadWrite mode fix - Fixed: DBGrid ScrollBar gab wasn't painted correctly in BiDiMode <> bdLeftToRight - Fixed: TTabSheet could throw an access violation if no PageControl was assigned to it 2008-11-24: - Added fix for Show Component Caption IDE bug - Added fix for IDE Compiler opens all files in ReadWrite mode and blocks command line compiler 2008-07-19: Added: Control resize fix replaces the old editor resize bugfix Added: Background Parser now stops if the main thread wants to do something with the compiler. 2008-05-12: Added: Fix for Find dialog has problems with Umlaut chars Removed: CodeCompletion is fixed in RAD Studio 2007 April Update 2008-04-02: Added: Added fix for TCustomActionList.Notification memory overwrite Added: Fixed some TDBGrid and TPageControl form designer flicker Improved: Application window tastbar button removal (should now work for all Windows versions) 2008-02-18: Added: CodeCompletion patch to show inherited items 2008-02-10: Added Application window tastbar button removal for Vista Added TDBText Color bugfix Renamed to IDE Fix Pack 2008-02-04: Initial release as IDEWin64Fix
uses winskindlg; Type TMySkinManage=class(TSkinManage); procedure TForm1.btn1Click(Sender: TObject); //破解后的2.6版不能够动态改变窗体的caption,下面是补充解决办法 var P: Pchar; begin P := Pointer(TMySkinManage(SkinManager).FindSkinForm(Handle)); if P = nil then exit; P := P+104; //D5的话请将104改为88,未经测试 Pstring(P)^ := 'Edit1.Text'; Caption := 'Edit1.Text'; ////////////////////////////////////////////// end; Delphi VclSkin 2.60 VCLSkin is an VCL library that extend Delphi application with skinnable user interface . Unlike other skin component that you must modify source code to build skinnable application, VCLskin can skin existing application using VCL components without source code modification. VclSkin automatically skin kinds of windows in application, include Delphi forms,MDIform and common Windows dialogs (MsgBox,Open/Save,Font,Print), even the Exception MsgBox. Vclskin not only support Delphi standard controls, but also support many third-party component, such as TMS Grid pack, EnLib Grid, Developer Express QuantumGrid. It is an excellent choice for those wanting to skin existing applications. The cool thing is that it uses existing VCL components. Demo version adds a string 'VclSkin demo' on form caption, but allows to test all available functions. News in 2.60 *Support Arabic language, BiDiMode is righttoleft. *Fixed some bugs when application closed. News in 2.55 *Fixed bug that Tspeedbutton destory at runtime. *Improve performance when change menutitem at runtime. *Fixed OpenDialog bug. News in 2.50 *Support LMD tools. *Fixed bug of checkbox that is disabled . *Add TSkindata.Skin3rd property to add 3rd control easily. News in 2.45 *Some bugs fixed. *Improve compatibility with Billenium effects. News in 2.4 *Support to skin an application but keep the menu bar and title bar the default Windows standard. *DBCheckbox bug fixed. *Fixed bug in cascade,tile command in MIDform. *Bug with minimized state when form created. *Suport ReportBuilder News in 2.3 *Support TUpDown and TSpinEdit. *Support TrackBar. *Restore form size when remove skin. *Fix more bugs. News in 2.25 *Fix bug with QuickReport and FastReport. *Fix bug in Tstatusbar. *Fix bug in Application. News in 2.20 *Support Header control in TlistView. *Fix Menuitem ShortCut bug. *Fix bug that change windows Z-Order when skin change at runtime. *Support Tframe created at runtime. News in 2.10 *Fix Scrollbar drag thumb problem. News in 2.05 *Support multi-skindata in application,Mainform and messagebox can use different skindate. *Nested form support. *Fixed Title flicker problem when form resize. *Support Mainmenu change at runtime. News in 2.0 *skin kinds of windows in your project, Delphi forms,MDIform and common Windows dialogs (MsgBox,Open/Save,Font,Print), even the Exception MsgBox. *Enable/Disable skin at runtime. *fixed many bugs in MDIform. *system menu enchanced. website : http://www.link-rank.com email : info@link-rank.com

5,392

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧