ActiveX DLL Functions

Postby Jeff Barnes » Fri Aug 10, 2007 1: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)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Postby Antonio Linares » Fri Aug 10, 2007 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Fri Aug 10, 2007 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Jeff Barnes » 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)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Postby Jeff Barnes » Fri Aug 10, 2007 4: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)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Postby Antonio Linares » Fri Aug 10, 2007 5: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Fri Aug 10, 2007 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Jeff Barnes » 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)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Jeff Barnes » 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)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Postby Antonio Linares » Sun Aug 12, 2007 3:37 pm

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: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Sun Aug 12, 2007 4: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 74 guests