html에서 파라미터를 넘기고 델파이에서 파라미터 값을 받아서 출력하는데
파라미터값이 안넘어 옵니다. 아시는 분 꼭 답글 남겨주세여~
html 소스
-------------------------------------------------------------------
<HTML>
<H1> Delphi 6 ActiveX Test Page </H1><p>
You should see your Delphi 6 forms or controls embedded in the form below.
<HR><center><P>
<OBJECT
classid="clsid:36181731-647E-4618-AC86-B4815CB668C9"
codebase="http://192.168.3.14/test1Proj1.cab#version=1,0,12,0"
width=777
height=515
align=center
hspace=0
vspace=0
>
<PARAM NAME="USRID" VALUE="huni">
</OBJECT>
</HTML>
--------------------------------------------------------------------
델파이 소스 (파라미터를 받는부분)
test1impl.pas
--------------------------------------------------------------------
public
{ Public declarations }
usrid : String;
procedure Initialize; override;
end;
procedure Set_usrid(const Value: WideString); safecall;
procedure Ttest1.Set_usrid(const Value: WideString);
begin
usrid := String(Value);
end;
procedure Ttest1.Button1Click(Sender: TObject);
begin
Label1.Caption := usrid;
end;
--------------------------------------------------------------------
test1Proj1_TLB.pas
--------------------------------------------------------------------
procedure Set_usrid(const Value: WideString); safecall;
property usrid: WideString writeonly dispid 18;
property usrid: WideString index 18 write SetWideStringProp;
--------------------------------------------------------------------