Communicating with .Net

Bendy

New Member
Hi,

Is it possible for Progress to load a .net dll?

I have a requirement to create a Data Access Layer in .Net and have Progress load the dll and pass data to and from that dll.

Thanks, Mark
 
Hi, Thanks for the reply,

We're on 10.2 but moving forward onto 11.0,

I'm not a progress developer so apologies for the vagueness of the question,

Thanks, Mark
 
It is certainly possible to do what you want, although personally I'm not sure of the best way as it's not something I've ever done. I will leave that to people who know what they're talking about.

Off topic slightly: Interested to hear you're already looking at moving to 11. When are you hoping to achive that?
 
The external procedures in DLL can be used since version 8 (I think) but if you are on 10.2B then you can directly access any .Net assembly from Progress just as you'll do from c# or vb.net, there are some restrictions mainly due to the single-threaded nature of Progress client but for the most part you can use any .Net assembly (not that I did that, more on the Java side myself).
 
Hi, I'm not part of the progress development team where I work , but I know that they are looking to move to v11. I don't really know the reasons why,

I'm a .Net developer who's been tasked with allowing Progress to talk to a .Net dll in order to read and write data to SQL server.

My initial idea would be to create a .Net dll with some basic CRUD style methods, GetCustomers, UpdateCustomer, DeleteCustomer etc and have progress call these methods passing in the relevant values.

It's early days and I'm just investigating the options, but this idea relies on progress having the ability to load the dll and pass and recieve data to and from the dll.

Any information would be great, Thanks, Mark
 
Thanks Marian,

I saw the threading restrictions in a document someplace.

I've seen examples where progress is talking to the built in .net classes, buttons etc but I'm unsure if it can create instances of custom built classes.

Thanks. Mark



The external procedures in DLL can be used since version 8 (I think) but if you are on 10.2B then you can directly access any .Net assembly from Progress just as you'll do from c# or vb.net, there are some restrictions mainly due to the single-threaded nature of Progress client but for the most part you can use any .Net assembly (not that I did that, more on the Java side myself).
 
I've seen examples where progress is talking to the built in .net classes, buttons etc but I'm unsure if it can create instances of custom built classes.

don't worry, it can... in some service pack of 10.2B they lifted the restrictions to use only 'visual objects', in V11 it's officially supported even for character mode (well in windows) therefore available even in webspeed/appsrv environment.
 
Thanks for all the responses, I'll start investigating the options now...

Thanks, Mark


don't worry, it can... in some service pack of 10.2B they lifted the restrictions to use only 'visual objects', in V11 it's officially supported even for character mode (well in windows) therefore available even in webspeed/appsrv environment.
 
Look at the manual on ABL GUI for .NET. There is a very competent bridge which allows the use of .NET controls and ABL code. Originally, that was supposed to be only for visual components, but that restriction has been relaxed. In 10.2B, only the Windows GUI client has the bridge, but in 11.0 it will be in all of the relevant executables, e.g., ChUI and AppServer, as well.
 
Back
Top