ActiveX DLL Functions

User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Post by Jeff Barnes »

James,

If I check with OleView it is listed under "Type Libraries"

Jeff
Thanks,
Jeff Barnes

(FWH 12.01, xHarbour 1.2.1, Bcc582)
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Jeff,

It does not look as an ActiveX control. I thought it was a DLL to be used with OLE automation, but after some tests I think it is an ActiveX library (it provides an activex interface, but no a visual control interface).

I got the provided EXE running, but it gives an error when pressing the "Get Version" button. Don't know if it should work ok without the hardware. Could you ask the manufacturer about this ?

I am trying on Vista 32. Now I am going to try on XP.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Jeff,

Same error on XP when pressing the "Get Version" button, testing their provided EXE.

Please contact the manufacturer about it, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Post by Jeff Barnes »

Antonio,

The "Get Version" does require the hardware to be connected.
Thanks,
Jeff Barnes

(FWH 12.01, xHarbour 1.2.1, Bcc582)
User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Post by Jeff Barnes »

Antonio,

Is it possible to use an ActiveX Library with FWH?

Is yes, how would I make a call to the functions inside the DLL?


Thanks,
Thanks,
Jeff Barnes

(FWH 12.01, xHarbour 1.2.1, Bcc582)
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Jeff,

> Is it possible to use an ActiveX Library with FWH?

We have never tested it before and it seems as something goes wrong

We have tried to build a test with Borland C++ builder, using your DLL, but we can't get it working too

We keep doing tests
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Jeff,

Couldn't you ask the manufacturer if they could provide you a plain standard DLL with exported functions, not an ActiveX one ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Post by Jeff Barnes »

I just sent them an email.

Enrico had mentioned in another post:
"As far as I know, you can't return a string from a DLL function"

These are communication functions that need feedback from the device.

Will a standard DLL work?
Thanks,
Jeff Barnes

(FWH 12.01, xHarbour 1.2.1, Bcc582)
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Jeff,

>
Enrico had mentioned in another post:
"As far as I know, you can't return a string from a DLL function"
>

You can do it using a GlobalAlloc() chunk of memory, that the DLL client will free later on

> Will a standard DLL work?

Yes, why not ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Jeff Barnes
Posts: 912
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada
Contact:

Post by Jeff Barnes »

Antonio,

Here is the reply from the manufacturer

>>
our DLL files are in Visual Basic or ActiveX DLL as you described. We are presently not working in "C" code. You might be able to try installing MSI and this might assist you.
<<
Thanks,
Jeff Barnes

(FWH 12.01, xHarbour 1.2.1, Bcc582)
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Jeff,

ok, thanks for the info. We are going to do some tests with VB
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Jeff,

We are unable to build and run their sample using Visual Basic Express(free from Microsoft).

Do they expect that their users will just use the latest Visual Basic version ? They should consider to deliver a standard C DLL so everyone can use it, not just Visual Basic users
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply