FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ActiveX DLL Functions
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
ActiveX DLL Functions
Posted: Fri Aug 10, 2007 01:15 AM

James,

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

Jeff

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ActiveX DLL Functions
Posted: Fri Aug 10, 2007 06:50 AM

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ActiveX DLL Functions
Posted: Fri Aug 10, 2007 07:17 AM

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
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
ActiveX DLL Functions
Posted: Fri Aug 10, 2007 12:25 PM

Antonio,

The "Get Version" does require the hardware to be connected.

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
ActiveX DLL Functions
Posted: Fri Aug 10, 2007 04:26 PM

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 16.11, xHarbour 1.2.3, Bcc730)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ActiveX DLL Functions
Posted: Fri Aug 10, 2007 05:01 PM

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ActiveX DLL Functions
Posted: Fri Aug 10, 2007 08:47 PM

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
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
ActiveX DLL Functions
Posted: Fri Aug 10, 2007 11:23 PM

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 16.11, xHarbour 1.2.3, Bcc730)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ActiveX DLL Functions
Posted: Fri Aug 10, 2007 11:51 PM

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
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
ActiveX DLL Functions
Posted: Sun Aug 12, 2007 12:50 PM

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 16.11, xHarbour 1.2.3, Bcc730)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ActiveX DLL Functions
Posted: Sun Aug 12, 2007 03:37 PM

Jeff,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
ActiveX DLL Functions
Posted: Sun Aug 12, 2007 04:17 PM

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

Continue the discussion