|
|
导航: |
论坛 -> 文档资料
斑竹:liumazi,ruralboy |
|
作者: |
|
2004/2/14 11:55:01 |
标题: |
|
加入我的收藏 |
楼主: |
function ShellExecute(hWnd: HWND; Operation, FileName, Parameters,Directory: PChar; ShowCmd: Integer): HINST; stdcall; 怎么用字符串变量用在filename参数 var str:string; begin str:='fei@163.com'; shellapi.shellexecute(form1.Handle,'open',str,nil,nil,SW_SHOWNORMAL); end;
----------------------------------------------
- |
作者: |
|
2004/2/14 13:30:20 |
1楼: |
谢谢各位观临,小弟我终于找到了答案 只要用pchar(str)就可以了^_^ -----------^_^^_^ str:='mailto:dfdds@163.com'; shellapi.shellexecute(form1.Handle,'open',pchar(str),nil,nil,SW_SHOWNORMAL); -----------^_^^_^
----------------------------------------------
-
|
作者: |
Giver (Giver) |
★☆☆☆☆ |
-
|
盒子活跃会员 |
|
2004/2/14 18:12:37 |
2楼: |
对啊pascal和c的字符串有点不同
----------------------------------------------
http://www.gaiwei.com
|
|