The Elektor Forum will close. See also this link. From Friday March 1st it is no longer possible to log in to the forum. However, the content of the forum will remain visible until the end of March. As of April 1st the forum will definitely go off the air.

Manual I2CDEMO for Labworx I2C

The book series by Vincent Himpe

Postby calimero88 » Thu Jun 07, 2012 12:00 am

Bonjour.

Please :

Manual for I2CDEMO not present in book Mastering The IC BUS.

I like to have a manual or explanation to use the I2CProbe.

Menu Tools is not correct
Menu Commands is not correct
Menu Connect , Disconnect and Version is correct

Thanks.

Bernard MAIROT
calimero88
 
Posts: 9
Joined: Thu Jan 02, 2014 10:38 am

Postby switching power » Sun Feb 10, 2013 12:00 am

Not only a little manual would be nice, also an updated version of the program would be welcome.

The Tools and Commands menu don't work, and its not compatible with x64 systems

I did look at the source code and there are some what looks like templates for the different chips what could be very handy to have.

Vincent if you have some time left could you update this little program because it could be nice to have for beginners.
switching power
 
Posts: 3
Joined: Thu Jan 02, 2014 10:38 am

Postby vincent_himpe » Mon Feb 11, 2013 12:00 am

x64 support will not be done for the simple fact that there is no 64 bit version of mcHID.dll.

You can however use this as a 32 bit application on x64. Simply tell the compiler it needs to generate 32 bit code output. In the project options you can switch the target between 64 bit or x86 mode. you need x86 mode. This compiles your program as a 32 bit application and it will load the dll happily.
vincent_himpe
 
Posts: 23
Joined: Thu Jan 02, 2014 10:38 am

Postby jla » Mon Feb 11, 2013 12:00 am

mcHID.dll on 64-bit Windows
mcHID.dll is a 32-bit DLL and so can only be linked with 32-bit applications. Since all 64-bit versions of Windows come with the WOW64 emulator to run 32-bit applications, mcHID.dll will work on a 64-bit operating system but only if your application is compiled as 32-bit/x86. If you receive runtime errors such as “An attempt was made to load a program with an incorrect format” or similar messages, then make sure that you are not compiling your program to the “x64″ or “Any CPU” configurations. “Any CPU” configures your program so that it runs as a native 32-bit application on 32-bit Windows and runs as a native 64-bit application on 64-bit Windows. This means that the same executable compiled using “Any CPU” will work fine with mcHID.dll on 32-bit Windows, but will fail on 64-bit Windows. Make sure to compile using the x86 configuration.

info:
http://helmpcb.com/software/usb-hid-template-for-visual-basic-2005

The usb Template is very usefull

suc6
jla
 
Posts: 8
Joined: Thu Jan 02, 2014 10:38 am

Postby vincent_himpe » Tue Feb 12, 2013 12:00 am

Well, that's exactly what i explained. Set your compiler to compile for 32 bit code and it will run on a 64 bit platform.
Set it for 64 bit code and loading the DLL will fail as it is a 32 bit unmanaged dll.
vincent_himpe
 
Posts: 23
Joined: Thu Jan 02, 2014 10:38 am


Return to LabWorX

Who is online

Users browsing this forum: No registered users and 1 guest