Hi, people.<br>
I want to run a function defined into a DLL from VB.<br>
P.E., a simple stupyd example...<br>
<br>
long sum (int s1, int s2);<br>
<br>
-----<br>
------ DLLmain developed by the C++'s DLL wizard itself<br>
-----<br>
long sum (int s1, int s2)<br>
{<br>
return (s1 + s2)<br>
}<br>
<br>
OK, I compile this and correctly declare in VB Module:<br>
<br>
Declare Function sum Lib MyDLL (ByVal s1 as Integer, ByVal <br>
s2 as Integer) As Long<br>
<br>
but an error was found during the invocation in VB:<br>
<br>
res = sum ( 1 + 1 )<br>
<br>
something about this: the entry of the DLL couldn't be found<br>
<br>
What this?!<br>
THANX
I want to run a function defined into a DLL from VB.<br>
P.E., a simple stupyd example...<br>
<br>
long sum (int s1, int s2);<br>
<br>
-----<br>
------ DLLmain developed by the C++'s DLL wizard itself<br>
-----<br>
long sum (int s1, int s2)<br>
{<br>
return (s1 + s2)<br>
}<br>
<br>
OK, I compile this and correctly declare in VB Module:<br>
<br>
Declare Function sum Lib MyDLL (ByVal s1 as Integer, ByVal <br>
s2 as Integer) As Long<br>
<br>
but an error was found during the invocation in VB:<br>
<br>
res = sum ( 1 + 1 )<br>
<br>
something about this: the entry of the DLL couldn't be found<br>
<br>
What this?!<br>
THANX