Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB code to VFP
Message
From
01/02/2003 23:28:26
 
 
To
01/02/2003 23:06:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00748081
Message ID:
00748083
Views:
15
Try:
DECLARE cspInit IN csp32.dll LONG nComPort
One warning:
In VB this declaration (function with no specified return type) means that function returns result of Variant data type. Since DECLARE statement in VFP does not support this data type (See "DECLARE - DLL Command" topic in VFP7 help), I give you statemet without return type specified. If this doesn't work (or return data is useful for you), you can try declare function with some return type (LONG, for instance):
DECLARE LONG cspInit IN csp32.dll LONG nComPort

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Previous
Reply
Map
View

Click here to load this message in the networking platform