How to use with...

Library usage can be examinated from test application testapp. Non-C languages are supported because library supports stdcall calling convention and so can be used with a variety of languages.

C test project is located at 'testapp' directory, C# test project - at 'testcs', VB.NET - 'testvbnet', Delphi 6 - 'testdelphi'. Libraries, headers and other required files are located at 'win32'/'win64','macosx' directories.

Visual C++

Testapp can be built using testapp.sln. It's needed to specify libxidcusb.lib in linker input. Library must be compiled with MS Visual C++ too, mingw-library isn't supported. Make sure that Microsoft Visual C++ Redistributable Package is installed.

NOTE: Example compiled with(MS Visual C++ 2008 SP1 and needs package 9.0.307291 (provided with SDK - vcredist_x86 or vcredist_x64)

Steps to build example:

MinGW

MinGW is a port of GCC to win32 platform. It's required to install MinGW package.

MinGW-compiled testapp can be built with MS Visual C++ or mingw library.

 $ mingw32-make -f Makefile.mingw all

Then copy library libxidcusb.dll to current directory and launch testapp.exe.

C++ Builder

First of all you should create C++ Builder-style import library. Visual C++ library is not compatible with BCB. Invoke:

 $ implib libxidcusb.lib libxidcusb.lib

Then compile test application:

 $ bcc32 -I..\libxidcusb\include -DWIN32 -DNDEBUG -D_WINDOWS testapp.c libxidcusb.lib

.NET

Wrapper assembly for libxidcusb.dll is xidcusbnet.dll. It is provided with two different architectures and depends on .NET 2.0.

Test .NET applications for Visual Studio 2008 is located at testcs (for C#) and testvbnet (for VB.NET) respectively. Just compile, place libxidcusb.dll near the output assemblies and run program.

Delphi

Wrapper for libxidcusb.dll is provided as unit include/xidcusb.pas

Console test application for is located at testdelphi. Tested with Delphi 6 and only 32-bit version.

Just compile, place DLL near the executable and run program.

XCode

Testapp should be built with XCode project testapp.xcodeproj. Use Release configuration. Library is a MAC OS X framework, and at example application it's bundled inside Testapp.app

Then launch application Testapp.app and check activity output in Console.app.

GCC

Make sure that libxidcusb (RPM or DEB package) is installed at your system. Installation of package should be performed with package manager of operating system.

Testapp should be built with:

 $ make all

Then launch application as:

 $ ./testapp