The simplest solution is to add SIP(True) or SIP(false) somewhere in your code.
The reason for this is a bit complex.
If you'll delete the source code ControlsExDevice.cs from Basic4ppc libraries folder it will also work.
However when the compiler sees this file (and you have a reference to ControlsExDevice.dll) the compiler tries to merge it in the executable. Merging is done by compiling the code together with your code.
To compile this library a reference to Microsoft.WindowsCE.Forms.dll is required.
Basic4ppc doesn't add a reference to this library by default.
Basic4ppc only adds a reference to this dll if it knows that this dll is needed.
The SIP method requires a reference and therefore adding it will solve this problem.
Another solution is to edit the LibrariesException.txt file (found under Basic4ppc folder).
Basic4ppc v6.50 will be distributed with a modified LibrariesException file that will fix this problem.
|