Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling functio from a DLL
Message
General information
Forum:
Visual Basic
Category:
ActiveX controls
Title:
Calling functio from a DLL
Miscellaneous
Thread ID:
00086732
Message ID:
00086732
Views:
63
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?
Next
Reply
Map
View

Click here to load this message in the networking platform