Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using a VFP OLE Server from C++
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Using a VFP OLE Server from C++
Miscellaneous
Thread ID:
00634350
Message ID:
00634350
Views:
37
We have an OLE Server written in VFP that run as an out of process server. It is an exe that starts up and initializes, open databases etc. It does this by creating the object for COM, then running a Startup method and not releasing the server. The server then sits idle until requests are made by other clients.
This all works great as long as the client is VFP program.

In the client programs we pass a parameters to the server. One method accepts an array as a parameter for example:
lo=CREATEOBJECT("tw.tw")
DIMENSION temparr(1,8)
temparr[1,1]="ACC1 "
temparr[1,2]="T. Wasser "
temparr[1,3]="3398 R Drive "
temparr[1,4]=" "
temparr[1,5]="San Fran "
temparr[1,6]="CA "
temparr[1,7]="94991 "
temparr[1,8]="USA "
laddrno=lo.yGETADDR(@temparr)
?laddrno
This returns an address number key for the existing address or for the new address record added .

The other method we want to use validates passed char(10) data and generates an output char(30) field. Again this works fine with VFP.

Has anyone used a VFP COM server from C++? Everything I try seems to lock up the COM server. Any ideas at all would be appreciated.

TIA,
Tom
Next
Reply
Map
View

Click here to load this message in the networking platform