Using .NET dll

CodE GurU

New Member
I have written a class in VB.NET called tracking_DLL.DLL which I would like to use in Progress 9.1.
It is a DLL to read tracking data of a webservice.
The DLL works great once implemented in an VB.NET application, but refuses to work in Progress 9.1.

This is what I have by now:

DEF VAR RESULT AS LOGICAL.

DEFINE VARIABLE chTracking AS COM-HANDLE.
DEFINE VARIABLE chTrackingWeb AS COM-HANDLE.
CREATE "Tracking_DLL.Tracking" chTracking.
CREATE "Tracking_DLL.be.geodynamics.secure.IntegrationWebservice" chTrackingWeb.

And in my procedure:

RESULT= chTrackingWeb:GetTrackingData("20060808","VCH956").
('GetTrackingData' is a call to the webservice en the parameters are Date and License Plate Number.)

Can someone help me out on this one, or does someone has any suggestions ?

Thx in advance,

Greetz, CodE GurU.
 
Never mind my question; I figured it out myself allready.

This may be of interest to who is experiencing the same trouble:

It is not easy to use a .NET component with Progress, but (deep down inside !) I found Visual Studio .NET 2003 has the ability to create OCX-controls, of which I came upon by accident...
(TWIMC: First create a class in VS2003, choose 'add item' - choose 'COM-class' and there you go !!!)

So the above code works now...

Greetz, CodE GurU.
 
Back
Top