Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Delphi...Call DLL....

0 views
Skip to first unread message

臥龍

unread,
Apr 23, 1999, 3:00:00 AM4/23/99
to
今已用VC做了一簡單的測試用DLL,
功能為 : 接受Caller之字串, 然後用MessageBox顯示出來...
如今...
用Delphi來呼叫此C 之DLL...並傳了一測試用字串過去...
但!!所顯示出來的卻是亂碼哩.....
不知是啥原因呀....
^_^
--
[1;33m鳳翱翔於千仞兮 非梧不棲
士伏處於一方兮 非主不依
樂躬耕於隆畝兮 吾愛草廬
聊寄傲於琴書兮 以待天時
臥龍

[m [1;32m※ 來源:‧蛋捲廣場 bbs.tku.edu.tw‧[FROM: 163.30.85.199] [m

gschang

unread,
Apr 26, 1999, 3:00:00 AM4/26/99
to
※ 引述《dky...@bbs.tku.edu.tw (臥龍)》之銘言:
: 今已用VC做了一簡單的測試用DLL,

: 功能為 : 接受Caller之字串, 然後用MessageBox顯示出來...
: 如今...
: 用Delphi來呼叫此C 之DLL...並傳了一測試用字串過去...
: 但!!所顯示出來的卻是亂碼哩.....
: 不知是啥原因呀....
: ^_^

Because the type of string in VC is "PChar", so u need to concern with

the interface unit declaration of your "string" variable in DLL's function.

Good luck, ^_^
--
[1m※Origin: [1;33;44m§國立成功大學電機系BBS§ [m <bbs.ee.ncku.edu.tw> From:[ [1m140.116.22.15 [m]


0 new messages