Page 1 of 1

Powerswitch Delphi demo-libusb

Posted: Wed Jul 11, 2007 5:33 am
by winai
In the Delphi demo-libusb of Powerswitch

I have error massage in function btbool(data:word;bit:byte):boolean;
bt ax,bl
E2107 Operand size mismatch
Please Help me for This error and how to delphi work for powerswitch

Posted: Fri Jul 13, 2007 5:25 pm
by iphi
The old wrapper dll doesn't work with the later versions of LibUSB any longer.

Download a working interface from LibUSB to Delphi from here:
http://www.mydarc.de/DG8SAQ/hidden/LibUSB.rar

I have received this update from Yvo Nelemanns, who has also written the original Delphi interface. Thanks Yvo!

The people of obdev should replace the inoperative delphi interface by this new code on their webpage.

The good news: For the late versions of LibUSB there is no wrapper dll required any longer for calls out of Delphi.

Posted: Fri Jul 13, 2007 6:41 pm
by christian
I'd like to update the Delphi project on our site, but since I have no idea about Delphi, I'm not sure what to do with the new LibUSB.

Can you please download our package, make and test a new package with the new LibUSB and mail me the resulting zip file?

Thanks in advance!

Posted: Fri Jul 13, 2007 7:54 pm
by iphi
Hi Christian,

please download the newly prepared and compiled Delphi sources from here: www.mydarc.de/dg8saq/hidden/PowerSwitch ... Source.zip

I have deleted the web reference http://www.xs4all.nl/~ynlmns/ which is Ivo's webpage, from the readme file since Yvo hasn't put up the new version onto the net. I have received it from him by email.

I'm happy to be able to contribute to this fantastic USB project!
Great job of yours!

Posted: Fri Jul 13, 2007 8:05 pm
by christian
Thanks a lot! I have downloaded the package. It should be on our main server tomorrow morning.

Posted: Sat Jul 14, 2007 10:13 am
by iphi
Hello Christian,

you're welcome.

I have just noticed that there is another reference to the outdated webpage in the readme:

"Delphi-libUSB
This is a Pascal wrapper for libUSB-Win32 obtained from
http://www.xs4all.nl/~ynlmns/. We could not determine the name of
the author. It is used by Demo-libUSB."

I think you should remove this section as the code from Yvo Nelemanns wegpage doesn't run any more.

Thanks for also supporting Delphi coders!

Posted: Sat Jul 14, 2007 2:39 pm
by christian
A non-existing link has the same value as a broken link, so I think I'll leave the file as it is just out of laziness.

BTW: It's not us who support Delphi, we just re-distribute a contributed package. Thanks to everyone who supports the project by contributing code!

Posted: Sat Jul 14, 2007 10:42 pm
by iphi
The link still exists, but the package that you can download from there doesn't work any longer with the current versions of LibUSB.
I thought, that this fact might create some confusion.

Posted: Mon Jul 16, 2007 10:58 am
by christian
OK. I've removed the URL from the Readme file.

Posted: Mon Jul 16, 2007 3:43 pm
by winai
WoW! It Work :lol: Thank For All

Posted: Mon Jul 16, 2007 4:05 pm
by Guest
Thanks christian,iphi and Yvo
I'm newbie in USB. I think If you have many Demo It easy for Newbie start. Powerswitch is vary good project for start. If you have it in Visual Basic Project. It very perfect! For Newbie start Project. Because Now It have C and Delphi