Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Type casting a variable
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Type casting a variable
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP SP1
Miscellaneous
Thread ID:
00962054
Message ID:
00962054
Views:
42
I am trying out the Winsock compenent of the company Xceed. Everything is working fine till a point where u have to apply an interface onto a variable cause otherwise it won't work. The code in VB .Net is something like this.

Dim xLocalSocket As XceedWinsockLib.ConnectionOrientedSocket
xLocalSocket = xIncomingSocket

Where xIncomingSocket is a parameter which has a different type. Obviously VB type casts the variable on its own but when i Try the same code in VFP it overrides the variable and doesn't change the type. I created implemenets to that interface (IdXWConnectionOrientedSocket).

Local xLocalSocket As IdXWConnectionOrientedSocket
xLocalSocket = Createobject("IdXWConnectionOrientedSocket")
xLocalSocket = xIncomingSocket && xIncomingSocket is a parameter different type

Does anybody have any idea how to solve the problem or is somebody using this component?

Thanks beforehand
Regards
Next
Reply
Map
View

Click here to load this message in the networking platform