Blacked-out tool box on my VB IDE

Legacy support with Phidget21
garyb
Phidgetsian
Posts: 6
Joined: Sat Feb 14, 2015 4:47 pm
Contact:

Blacked-out tool box on my VB IDE

Postby garyb » Tue Feb 17, 2015 9:06 am

For - Sample calls to Phidgets21.dll - With Events
Please see:

VB Calls to Phidgets21.dll - Stp 1067 - Enc 1057 - Ikit 1012

viewtopic.php?f=21&t=7469
Last edited by garyb on Thu Sep 08, 2016 8:18 am, edited 2 times in total.

garyb
Phidgetsian
Posts: 6
Joined: Sat Feb 14, 2015 4:47 pm
Contact:

Re: Sample calls to Phidgets21.dll - With Events

Postby garyb » Tue Feb 17, 2015 9:19 am

----
Last edited by garyb on Thu Sep 08, 2016 8:11 am, edited 1 time in total.

User avatar
Patrick
Lead Developer
Posts: 3064
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Sample calls to Phidgets21.dll - With Events

Postby Patrick » Tue Feb 17, 2015 9:51 am

We provide a COM library for VB6... I'm not sure why you would want to go through the work of circumventing it?

-Patrick

garyb
Phidgetsian
Posts: 6
Joined: Sat Feb 14, 2015 4:47 pm
Contact:

Re: Sample calls to Phidgets21.dll - With Events

Postby garyb » Tue Feb 17, 2015 2:10 pm

I tried the ActiveX control. It works very nicely except that I get a blacked out tool box on my VB IDE.

I suspect that your COM library makes calls to the Phidget21.dll just like C++ does. I would like my VB program to function like the C++ programs.

Thanks for the reply
Last edited by garyb on Thu Sep 08, 2016 8:14 am, edited 1 time in total.

garyb
Phidgetsian
Posts: 6
Joined: Sat Feb 14, 2015 4:47 pm
Contact:

Re: Sample calls to Phidgets21.dll - With Events

Postby garyb » Tue Feb 17, 2015 6:04 pm

----
Last edited by garyb on Thu Sep 08, 2016 8:13 am, edited 1 time in total.

User avatar
Patrick
Lead Developer
Posts: 3064
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Sample calls to Phidgets21.dll - With Events

Postby Patrick » Wed Feb 18, 2015 9:40 am

Hi,

The ActiveX controls are black because VB6.0 is not supported on Windows 7 and this is just a side effect - it is only cosmetic and doesn't affect the usability of the controls.

The COM library is a C++ wrapper library which calls the C library - the overhead of this is negligible. I'm not sure if you way is faster, but it's certainly more work for you, and one of our primary goals is to make things easy for our customers...

The digital inputs are all read at the same time. If you need to guarantee that you read their states back simultaneously, I would read them back from the input change event (just read them all back, ignore the index) - so that there isn't any chance of them changing as you read them.

-Patrick


Return to “VB 6.0”

Who is online

Users browsing this forum: No registered users and 1 guest