How to add phidget21.dll library

Supporting Visual Studio on Windows
Hassani

How to add phidget21.dll library

Postby Hassani » Thu Dec 11, 2008 3:20 am

HI
Can any one explain how to add phidget21.dll library in to our program. I am using Visual sutido 2008 with Vista.

Thanks
BR
Hassani

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

Postby Patrick » Thu Dec 11, 2008 10:38 am

If you are using C#, it's the .NET library you want, not phidget21.dll. Add a reference, and pick phidget 21 library from the .NET tab.

-Patrick

Hassani

Postby Hassani » Mon Dec 15, 2008 3:02 am

Hi Patrick,

I got it. Thanks a lot.

BR
Hassani

Hassani

Postby Hassani » Mon Dec 15, 2008 9:58 am

Hi Patrick,

I am facing another problem, whenever I reboot my system after installing phidghets, it becomes crash and does not work. Even phidget does not detect any sensor.

And a long list of errors come to screen.

Whenever I reboot my system, I have to remove and reinstall phidgets, and it works fine until I reboot.

Do you have any solution for this problem.

Thanks in advance.

BR
Hassani

Hassani

Postby Hassani » Mon Dec 15, 2008 9:59 am

Errors are something like this:
Access to the path 'C:\PhidgetWebservice21.xml' is denied.

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

Postby Patrick » Mon Dec 15, 2008 10:58 am

Are you running Vista, or using a non-admin account? The Phidget control panel accesses that .xml file, but you can disable the control panel from starting if it's giving you troubles.

-Patrick

Hassani

Postby Hassani » Tue Dec 16, 2008 3:09 am

Thanks, It works as you told.

I am using Vista. And one thing more, if I want to open control panel again, how can I open it.

BR
Hassani

Hassani

Postby Hassani » Tue Dec 16, 2008 3:13 am

I tried to open Phidget21Manager(control Panel) again but it crashes down as I try to run this. And my program does not detect any sensor and control panel as well.

Hassani

amgadhs
Fresh meat
Posts: 4
Joined: Mon Jan 05, 2009 3:50 am
Contact:

Re: How to add phidget21.dll library

Postby amgadhs » Sat Mar 14, 2009 2:34 pm

That's because you installed it in the root folder (C:\). Uninstall and install it again in its own folder in the program files, e.g. C:\Program Files\Phidgets. All your problems will be solved automatically. It will even appear in Visual Studio's Add Reference dialog box.
CodeHill: Resources for developers

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

Re: How to add phidget21.dll library

Postby Patrick » Mon Mar 16, 2009 9:53 am

We're working on a fix for this, the problem is that we don't take UAC into account properly. You can get things working by running phidget21management.exe as administrator.

-Patrick


Return to “C#.NET”

Who is online

Users browsing this forum: No registered users and 2 guests