选中IActiverFormX,点击右键选择添加Method,出现一个界面:attributes中的Name中输入:setlonginparameters中return type选择:HRESULT添加一个参数,Name:Name;Type:BSTR;Modifier[in]点击工具栏的Rrefrsh;文件增加的函数是:procedure TActiveFormX.SetLogin(const name: WideString);而我想添加的函数是function SetLongin(const Name: WideString): Integer;该怎么操作啊参考:http://wwyyff80.blog.sohu.com/60239343.html
2、或者你直接在实现单元,Edit->Add to Interface将方法复制进去即可。
第2种方式写代码比较快一些
请看http://hcqi2004.blog.163.com/blog/static/726824182010512112846370/
该网站的最后一张图,
但返回值不知道该怎么设成integerhsmserver
Edit->Add to Interface将方法复制进去即可,这个方法能给个详细的步骤吗?
delphi的edit下拉列表中没有Add to Interface选项啊
我用的delphi7,你说的自动转换,能在给点详细资料吗?