Sory ! But I am new at this.
I want to call function in a DLL from VB5.0.
I declare the function in the General section like this:
'Declare the FPOLE.DLL functions.
'--------------------------------
Declare Sub SetOleObject Lib "c:\vfp\fpole.dll"(cApp As String)
Declare Sub FoxDoCmd Lib "c:\vfp\fpole.dll"(cCommand As String, BringToFront As String)
Declare Sub FoxEval Lib "c:\vfp\fpole.dll"(cExpression As String, cBuff As String, nLen As Integer)
Declare Sub CloseIt Lib "c:\vfp\fpole.dll"
' -------------------
When I run the from I get the error:
Comments, Fix-length string, array and declare statmentrs not allowed as public members of the object.
Why? and what a my doing wrong?