Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Translating DECLARE statement from VB example into VFP
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00329588
Message ID:
00329592
Views:
18
>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?

Bill, drop the open and close parenthesis. That should do it.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform