Click here to Skip to main content
15,796,456 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys,

I have a problem and asking for your help.
I have this API that connects to a Scanner, the Scanner is connected to a machine via a usb cable. It doesn't appear on as USB but as a COM port.

Now i want to talk to the scanner so that it dumps the data that is stored in it in a location on the machine.

Please can you help me.

Below is the code for the API.

/// <summary>
       /// Filter out custom messages
       /// </summary>
       /// <param name="m">Message value - cannot be changed</param>
       /// <returns>false = messages will be prosessed by the appliction, true = message will be deleted and
       /// not processed</returns>
       public bool PreFilterMessage(ref Message m)
           bool res = false;//by default allow the message to be dispatched to the rest of the app
               if (m.Msg == fCustomMSGHandle && m.Msg <= fCustomMSGHandle)
                   if (fCallback!=null)
                       fCallback(m.Msg, (int)m.WParam, (int)m.LParam, (int)m.HWnd.ToInt32());
                   res = true;
           catch (Exception)
               res = false;
           return res;

this is where i get suck. :-) Please can you assist?

Kind Regards,
Updated 3-Oct-11 22:20pm
Sergey Alexandrovich Kryukov 4-Oct-11 3:21am    
Fixed code formatting -- use <pre lang="cs">, not "xml".
ndeza 4-Oct-11 3:24am    
I am using CS
Sergey Alexandrovich Kryukov 4-Oct-11 3:35am    
Well, using... but no, it was written "xml" -- in the text of your code sample. I've fixed it for you. Look at first version of your question; be more careful.

1 solution

There is very little we can help you with when you are using non-standard devices and components as we do not have access to what you are working with.

The only advise is to contact your supplier for further information and troubleshooting.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900