Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Logic PD support staff and engineers participate, Logic PD does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Logic PD engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Logic PD product download, please subscribe to the TDG Forum of interest.

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 29 Dec 2008 08:44 AM by  mikea@logicpd.com
DRIVER TROUBLE
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages
matt123
New Member
New Member
Posts:


--
15 Jul 2004 09:54 AM
    Let me preface this email with the fact that I'm a WinCE newbie - no windows programming experience at all. Overall goal is to write a stub driver and access it with a stub application....get used to when things are called and how.

    I have Platform Builder 4.2 and have created driver stub code and an sample application. Both build fine. I have my driver integrated with the OS image. After loading the OS image, I execute my sample application which calls RegisterDevice. I know this is depricated, but I don't want to deal with the registry right now From the debugger, I can see that the call loads the driver dll, but I get an error returned, ERROR_INVALID_FUNCTION. It then unloads the dll (witnessed through the debug output).

    This error points to the fact that something is not right with my dll functions....I think....but I can't fathom at this point what could be wrong. I'm out of ideas....

    I have all the stream driver entry points defined and I've double checked the prototypes. I have a *.def file with the minimum LIBRARY and EXPORTS sections (tried the __declspec(dllexport), but during build - maybe link - time, PB complains if I don't have a *.def file in the driver folder). My Init function returns something other than zero....I'm at a loss. I do have MessageBox calls littered throughout my function stubs, except XXX_PowerUp and XXX_PowerDown - they just return, so my next attempt is to change all those calls over to the DEBUGMSG macro call. I can't think of anything else to do.

    HELP!
    Matt
    Anonymous
    Posts:


    --
    15 Jul 2005 05:57 PM
    Matt,

    Logic has a Sample Windows CE driver posted to the website as a reference for Windows CE development. This driver will work under both 4.2 and 5.0. and can be downloaded at the following link:

    http://www.logicpd.com/do...FOO_tag_50_1_1_0.zip
    eehyfust@gmail.com
    New Member
    New Member
    Posts:


    --
    26 Dec 2008 01:28 AM
    Posted By aaronlpd on 15 Jul 2005 5:57 PM
    Matt,

    Logic has a Sample Windows CE driver posted to the website as a reference for Windows CE development. This driver will work under both 4.2 and 5.0. and can be downloaded at the following link:

    http://www.logicpd.com/do...FOO_tag_50_1_1_0.zip



    The link don't work. It say

    You have requested a page to which you do not have access (Error: 403)

    pls fix the link, thank you!
    mikea@logicpd.com
    New Member
    New Member
    Posts:


    --
    29 Dec 2008 08:44 AM
    Do you have a registered LH7A400-10 Development Kit? You must be registered on our website and have access to the LH7A400 download page. If you have a kit, please create an account on our website and register your kit. I've tested the link and it is good.

    Thank you,
    -Mike
    You are not authorized to post a reply.