MC92N0 c# sample application CoreScanner registration

F Felix Veillette-Potvin 3 years 7 months ago
116 2 0

Hi,
I am trying to get the c# smaple application from the Scanner SDK for windows. Every time I run the following lines:
static CoreScanner.CCoreScannerClass cCoreScannerClass;
static void Main(string[] args){
          int status;
          cCoreScannerClass = new Corescanner.CCoreScannerClass();
}
 
on a computer it works fine. If i try to deploy it on my handheld device (MC92N0), i get the following error:
COM object with CLSID '{9F8D4F16-0F61-4A38-98B3-1F6F80F11C87}' cannot be created due to the following error: Class not registered.
 
I am deploying it with visual sutdio 2008. I checked the option to deploy the latest version of the framework on the device. Both the emdk for windows and the Scanner SDK are installed on the computer.I just do not understand how to make it work.

Please Register or Login to post a reply

2 Replies

E Efkan YILMAZ

The scanner SDK for Windows is for Desktop windows.  The OS on the Windows versions of the MC92N0 are CE based.  Desktop Windows apps will not work on those devices.  If you are trying to use the built in scanner,  you would want to use the EMDK for .Net.  There will be sample apps on your PC if you have that loaded.  You should find the samples in C:\Users\Public\Motorola EMDK for .NET\v2.9\Samples VS2008\C#\ 

F Felix Veillette-Potvin

This is what I have realised. I found EMDKfordotNET in C:\Users\Motorolad EMDK for .net\v2.9\Help Files\EMDKfordotNet.hmtl yesterday and got my scanner to work with those classes.
Thank you.

CONTACT
Can’t find what you’re looking for?