|
vc writes dll, I can only write int type functions:
__stdcall int CALLBACK CalcSum(int a,int b);
You can declare in vb:
Private Declare Function MySum Lib "d:\MyDLL.dll" (ByVal S As Integer, ByVal D As Integer) As Integer
This can be used in vb, but now I want to write a function in dll that can return a string, and use the label control of vb to display the string returned by the function. How do I write it in dll? How do I declare it in vb? How does the label control call it? Please help! |
|