including windows.h or more specifically writing code to control mouse in MPLab(PIC?)

Discussion in 'C' started by codoll53, Mar 29, 2007.

  1. codoll53

    codoll53 New Member

    Feb 23, 2007
    Likes Received:
    Trophy Points:
    I tried using the windows.h files and included them in a project in MPLab. I am getting numerous syntax errors and am starting to think that even if you include all the code from these files in your project it won't work. What I am basically trying to do is control a mouse in MPLab, I have code to do so using the windows.h files, but don't know how to do this using a PIC (MPLab) any help would be very much appreciated as this has been giving me a lot of trouble for a very long time.
  2. DaWei

    DaWei New Member

    Dec 6, 2006
    Likes Received:
    Trophy Points:
    Semi-retired EE
    Texan now in Central NY
    Home Page:
    Re: including windows.h or more specifically writing code to control mouse in MPLab(P

    I don't know anything about MPLab.

    Compilers, OSes, and their APIs are implementation specific in many ways. Compilers built to emit code for x86-type processors (and compatible) will not emit code that will run on a processor with a different instruction set, or on a machine that it has not been built to specifically support.

    OSes designed to work with a specific type (or very close, compatible types) of keyboard will not work with another type of keyboard. The same is true of displays, sound, almost anything you care to name.

    Sometimes the differences are addressed with a combination of hardware interfaces and software drivers that can make the necessary translations. This works well when devices are designed to be standard at some level, regardless of the using technology. Disk drives are a prime example. Sometimes the devices are too substantially different to allow such accomodation.

    You will have to determine for yourself what the characteristics of MPLab are in view of those facts. Software is not an end product, although sometimes it seems as if it is. It is always used to direct the operations of a set of hardware. Hardware almost universally makes the rules. Software, through various accomodation methods (specific compilers, for one), complies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice