2010年1月15日 星期五
Mac OS Stack alignment – What you may need to know
Allen Bauer| The Oracle at Delphi |20:17:27
While I let my little tirade continue to simmer, I figured many folks’ next question will be “Ok, so there may be something here that affects me. What do I need to do?” Let’s first qualify who this will affect. If you fall into the following c...
Delphi设置某用户对某文件(夹)的权限
小城太阳| 网络天空vistra-Delphi |10:18:00
以下在代码在D7+2003和D7+XP中调试通过unit NTSecurityU;interfaceUses Windows, AclApi, AccCtrl;ConstSECURITY_NULL_SID_AUTHORITY : _SID_IDENTIFIER_AUTHORITY = ( Value : (0,0,0,0,0,0));SECURITY_WORLD_SID_AUTHORITY : _SID_IDENTIFIER_AUTHORITY = ( Value ...
Delphi 添加与删除共享
小城太阳| 网络天空vistra-Delphi |10:16:00
注意在使用过程中,如本机则ServerName可以为本机的IP地址,另外要共享的文件夹字符串的后面不应有\ 符号,如d:\dbaccd为正确格式,反之d:\dbaccd\为错误格式,当时我走了许多弯路,就这个问题上当时也曾尝试用shellapi之类的用DOS命令net share 解决,但奇怪的是这个命令竟...
DELPHI 选择目录SelectDir
小城太阳| 网络天空vistra-Delphi |10:08:00
unit My_SelectDir;interfaceuses ShlObj, ActiveX, Windows, Forms;function SelectDir( Owner : THandle; //父窗口的句柄 const Title : string; //搜索标?..
DELPHI 增加与删除用户
小城太阳| 网络天空vistra-Delphi |10:07:00
unit My_AddUser;interfaceusesWindows;type USER_INFO_1 = record usri1_name: pwidechar; usri1_password: pwidechar; usri1_password_age: dword; usri1_priv: dword; &...
TObject(Sender) vs. (Sender as TObject) - Differences Between a Hard Cast and an AS Cast in Delphi
About.com| About.com Delphi Programming |05:00:26
in Delphi TIPS:: In Delphi the AS keyword is used for casting an object (or interface) of one type to another. When several controls share an event handling procedure, for example a button and a menu item, you end up using the Sender parameter to...





冀公网安备 13098202000212号