Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using ActiveX DLL in VFP
Message
From
17/05/2002 03:09:47
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
16/05/2002 14:51:48
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00657689
Message ID:
00658020
Views:
23
>Why it does not work?
>--
>SET OLEOBJECT ON
>#INCLUDE D:\GMS.X000\RSLinxOPCAuto.dll
>RSLinxServer = CreateObject('RSLinxOPCAutomation.OPCServer')
>--
>
>Same code in VB works good:
>--
>Dim oServer As RSLinxOPCAutomation.OPCServer
>Set oServer = New RSLinxOPCAutomation.OPCServer
>--
>
>Alexey

Same code ???
Assuming it's registered :

local RSLinxServer
RSLinxServer = CreateObject('RSLinxOPCAutomation.OPCServer')

* If you have VFP7 you could also make the declaration like this :
local oServer As RSLinxOPCAutomation.OPCServer
oServer = NewObject('RSLinxOPCAutomation.OPCServer')

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform