VDF-GUIdance logo



  Visual DataFlex Logo
  

Shared knowledge leads to accumulated knowledge

        Printer Friendly Page


Winsock communication via ActiveX

by Wil van Antwerpen

Summary

This little project displays how you can communicate over TCP/IP via Visual DataFlex.
In order to do this, the project uses the standard MS activex control as you'll find in MS Visual Studio.
Size: 1300 KB Download
Date Created: 29/03/2006
Date Updated: 29/03/2006
Author: Wil van Antwerpen
Company: Antwise Solutions


TCPIP and VDF


Some time ago i was contacted by Microbase from Melbourne to set up a tcp/ip communication link from his application - written in VDF - to a third party application in order to extend functionality and communicate with an SMS gateway.
There was a couple of ways to connect to the gateway, but we decided that it would be perfect if we could use the tcpip route.
Now we had to make up our minds if we were going to do this the hard way - using a DLL interface - or the easy way, by using COM.
A choice easily made, as activeX is reasonably well implemented in VDF these days.
The included example down here is what was used as the bases for the control build at the time.

Then after a while ... i attended the scanduc and was asked to present "something".
So... this is what i presented and the powerpoint presentation from that time is included in the zipfile.

Installation notes


Tested to work with VDF11.0 but it will probably run on VDF8+
Requirements: A valid developers license for the ms winsock client.
This comes for ex. with MS Visual Studio 6.

There are 2 compiled examples in the workspace, but it also contains the complete
sourcecode for the example.

In order to compile the applications yourself, follow these steps:

  • register the workspace by double clicking on the Antwise.Test.Winsock.ws file
  • (re)generate the compackage (or edit the licensekey property in the cComWinsock.pkg file).
  • Compile, run and enjoy!

Note


In order to be able to use the activeX control which is used in here, you do need a MS license for Visual Studio or similar product. The generated wrapper pkg contains the license key.
The supplied package has these lines removed, so you'll need to regenerate those yourself.
The example also contains executables (vdf11 ?) which should work out of the box and can be used to test with.

Download



Winsock.zip ~ 1.3Mb


Subversion



scanduc-winsock repository