Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Translating DECLARE statement from VB example into VFP
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Translating DECLARE statement from VB example into VFP
Miscellaneous
Thread ID:
00329588
Message ID:
00329588
Views:
57
I have a DLL I need to call from a VFP app. The docs, show the following declaration in a VB example:

Private Declare Function GMW_LoadBDE Lib "C:\GM4\GM4S32.DLL" (ByVal sSysDir As String, ByVal sGoldDir As String, ByVal sCommonDir As String, ByVal sUser As String, ByVal sPassword As String) As Integer

How would this translate into VFP? I thought the following was correct:

DECLARE INTEGER GMW_LoadBDE IN C:\GM4\GM4S32.DLL (STRING sSysDir, STRING sGoldDir, STRING sCommonDir, STRING sUser, STRING sPassword)

But when I reference GMW_LoadBDE, passing 5 strings in, I get an error stating "Too many parameters" I'm guessing I've done something wrong here. Any thoughts?
Oct 31 = Dec 25
Next
Reply
Map
View

Click here to load this message in the networking platform