16541.html
来自「以电子书的形式收集了VB一些常见问题解决方法,可以很方便的查找自己需要解决的问题」· HTML 代码 · 共 50 行
HTML
50 行
<html>
<head>
<title>VB 使用 DLL 档的错误讯息</title>
</head>
<body bgcolor="#FFFFFF" vlink="#808080">
<center>
<h1>VB 使用 DLL 档的错误讯息</h1>
</center>
<hr size=7 width=75%>
<hr size=7 width=75%><p>
Posted by <a href="mailto:u3340686@cc.ncu.edu.tw">黄牛</a> on August 03, 1999 at 03:20:38:<p>
我有一个用 VC 写的 DLL : EXCHANGE.DLL<br>里面有一个函数 void SetExchangeData( float test )<p>我想用 VB 来使用这个 DLL 档<br>于是在我的程式里写下了:<p>Private Declare Function SetExchangeData Lib "EXCHANGE" (ByVal test as Single)<p>Private Sub Command1_Click()<br> SetExchangeData (Val(Text1.Text))<br>End Sub<p>不过执行后,却出现了错误讯息 (49) :<br>DLL 呼叫格式不正确<p>请问是我哪里写错了吗?<br>谢谢!
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 16541-->
<!--top: 16614--><li><a href="16614.html">Re: VB 使用 DLL 档的错误讯息</a> <b>Arthur</b> <i>14:25:28 8/04/99</i>
(<!--responses: 16614-->0)
<ul><!--insert: 16614-->
</ul><!--end: 16614-->
<!--top: 16545--><li><a href="16545.html">Re: VB 使用 DLL 档的错误讯息</a> <b>dino</b> <i>09:35:15 8/03/99</i>
(<!--responses: 16545-->5)
<ul><!--insert: 16545-->
<!--top: 16560--><li><a href="16560.html">更正一下</a> <b>黄牛</b> <i>13:15:44 8/03/99</i>
(<!--responses: 16560-->2)
<ul><!--insert: 16560-->
<!--top: 16571--><li><a href="16571.html">Re: 更正一下</a> <b>琏琏</b> <i>17:30:50 8/03/99</i>
(<!--responses: 16571-->1)
<ul><!--insert: 16571-->
<!--top: 16582--><li><a href="16582.html">Re: 更正一下</a> <b>黄牛</b> <i>20:41:52 8/03/99</i>
(<!--responses: 16582-->0)
<ul><!--insert: 16582-->
</ul><!--end: 16582-->
</ul><!--end: 16571-->
</ul><!--end: 16560-->
<!--top: 16550--><li><a href="16550.html">Re: VB 使用 DLL 档的错误讯息</a> <b>黄牛</b> <i>11:32:54 8/03/99</i>
(<!--responses: 16550-->1)
<ul><!--insert: 16550-->
<!--top: 16553--><li><a href="16553.html">Re: VB 使用 DLL 档的错误讯息</a> <b>琏琏</b> <i>12:01:15 8/03/99</i>
(<!--responses: 16553-->0)
<ul><!--insert: 16553-->
</ul><!--end: 16553-->
</ul><!--end: 16550-->
</ul><!--end: 16545-->
</ul><!--end: 16541-->
<br><hr size=7 width=75%><p>
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?