Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

DelphiдÍøÒ³°²È«¿Ø¼þ(dll,ocx)


Unt_Machine_WebDll.pas
BODY {background: #FFFFFF}
A:link { color: #0000FF}
A:visited { color: #0000FF}
A:Active { color: #0000FF}
.bold {font-weight: bold}
.italic {font-style: italic}
.underline {text-decoration: underline}
unit Unt_Machine_WebDll;
{$WARN SYMBOL_PLATFORM OFF}
interface
uses
ComObj, ActiveX, Machine_TLB, StdVcl, SysUtils, Windows, Device ;
const
g_SupportedOptions = INTERFACESAFE_FOR_UNTRUSTED_CALLER or INTERFACESAFE_FOR_UNTRUSTED_DATA ;
type
TMachine = class(TAutoObject, IMachine, IObjectSafety)
private
FObjectSafetyFlags: DWORD;
protected
{ Protected declarations }
...
public
{ IObjectSafety }
function GetInterfaceSafetyOptions(const IID: TIID; pdwSupportedOptions,
pdwEnabledOptions: PDWORD): HResult; virtual; stdcall;
function SetInterfaceSafetyOptions(const IID: TIID; dwOptionSetMask,
dwEnabledOptions: DWORD): HResult; virtual; stdcall;
end;
implementation
uses ComServ;
/////////////²ÎÊý´«µÝ/////////////////////////////////////////
var
...
function TMachine.GetInterfaceSafetyOptions(const IID: TIID;
pdwSupportedOptions, pdwEnabledOptions: PDWORD): HResult;
var
Unk: IUnknown;
begin
if (pdwSupportedOptions = nil) or (pdwEnabledOptions = nil) then
begin
Result := E_POINTER;
Exit;
end;
Result := QueryInterface(IID, Unk);
if Result = S_OK then
begin
pdwSupportedOptions^ := INTERFACESAFE_FOR_UNTRUSTED_CALLER or
INTERFACESAFE_FOR_UNTRUSTED_DATA;
pdwEnabledOptions^ := FObjectSafetyFlags and
(INTERFACESAFE_FOR_UNTRUSTED_CALLER or INTERFACESAFE_FOR_UNTRUSTED_DATA);
end
else begin
pdwSupportedOptions^ := 0;
pdwEnabledOptions^ := 0;
end;
end;
function TMachine.SetInterfaceSafetyOptions(const IID: TIID;
dwOptionSetMask, dwEnabledOptions: DWORD): HResult;
var
Unk: IUnknown;
begin
Result := QueryInterface(IID, Unk);
if Result S_OK then Exit;
FObjectSafetyF


Ïà¹ØÎĵµ£º

Delphi·Ö½âÄ£¿éµÄ¼¼Êõ

ÖÚËùÖÜÖª£¬ÏµÍ³ÐèÒª½øÐжàÈ˲¢Ðпª·¢Ê±£¬Ó¦¸Ã°Ñϵͳ·Ö²ð³É¶ÀÁ¢µÄÄ£¿é£¬ÕâÑù²ÅÄܱÜÃ⿪·¢³åÍ»¡£µ«ÈçºÎ½øÐзֲðÄØ£¿ÔÚDelphiϵͳÖУ¬ÓкܶàÖÖ·½·¨£¬ÏÂÃæÀ´½øÐÐÒ»Ò»½éÉÜÓë·ÖÏí¡£
1.°ÑÄ£¿é²ð·Ö³É°ü(dpk)£¬Ö±½ÓÔÚÖ÷³ÌÐòÖÐͨ¹ýLoadPackageº¯Êý°Ñ°ü×°ÔؽøÀ´¼´¿É¡£²»¹ýÕâÖÖ·½·¨Ò²ÓÐЩ²»±ã£¬ËùÓеÄÀà±ØÐë¼Ì³Ð×ÔTPersistentClass£¬²¢ ......

delphiÖкó׺Ãû·Ö±ðÖ¸´úµÄÎļþºÍÓô¦

dpr Ϊ¹¤³ÌÎļþ
dfm Ϊ´°ÌåÎļþ
pas Ϊµ¥ÔªÎļþ
cfg ÅäÖÃÎļþ
dof ΪÏîÄ¿Ñ¡ÏîÎļþ(Ò»°ãûÓÃ)
dcu compiled   unitsÎļþ ,±àÒëºóµÄµ¥ÔªÎļþ
res ×ÊÔ´Îļþ
ddp Îļþ¾ÍÊÇDelphi   Diagram   Portfolio¼òд,ÊÇÓÃÀ´±£´æCode   EditorÖеÄDiagramÐÅÏ¢µÄ.
Ò»°ãÒ»¸öÏîÄ¿Òª¿¼¸ö±ðÈ ......

DelphiÖÐÓÃADOÁ¬½ÓÊý¾Ý¿â

´ËÎÄÊʺÏDelphiÐÂÊÖÔĶÁ£¬ÌرðÊÇÁ¬½ÓÊý¾Ý¿â·½Ã滹һ¶®°ë¶®ÉõÖÁ¸ù±¾²»¶®µÄÐÂÊÖ£»
     --------------------------µ«×ÜÌåÏÔµÃÓеãÂÒ-------------------------
     ±¾ÎÄÕÂÒÔDelphi 7ºÍSQL Server 2000ΪÀý£¬¿Ø¼þÃû¾ùΪϵͳĬÈÏ£¬ÈçUnit1,DataModule1,Edit1,ADOCommand1,ADODataS ......

ʹÓÃDelphiÄÚÖú¯Êý¶ÁдINIÎļþ


ÀûÓÃWindows APIº¯ÊýWritePrivateProfileString ºÍGetPrivateProfileString¿É¶Ô.INIÎļþ½øÐжÁд²Ù×÷¡£Æäʵ£¬¶Ô.INIÎļþµÄ¶ÁдÍêÈ«¿ÉÒÔÀûÓÃDelphiµÄÄÚÖú¯ÊýÀ´ÊµÏÖ¡£ÏÂÃæ¾Í½éÉÜһЩ¶Ô.INIÎļþ¶ÁдʱÏà¹ØµÄÀ༰ÆäÊôÐÔ·½·¨¡£
1¡¢TIniFile¶ÔÏó
ÒÔDelphiÖУ¬¶¨ÒåÁËÒ»¸öTIniFile¶ÔÏ󣬽«.INIÎļþ·â×°ÔÚÆäÖУ¬²¢ÌṩһЩ·½·¨£ ......

unicodeÓëGB2312ת»»µÈDelphiº¯Êý


{ º¯Êý : RESULTSTRING = HexToBin(HEXSTRING)
{ Ä¿µÄ : °ÑÊ®Áù½øÖÆ×Ö·û´®×ª»»Îª¶þ½øÖÆ×Ö·û´®
{
{===============================================================}
{ º¯Êý : RESULTINTEGER = HexCharToInt(HEXCHAR)
{ Ä¿µÄ : ת»»Ò»¸öÊ®Áù½øÖÆ×Ö·ûΪÕûÊý
{==================================================== ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ