beautypg.com

Path, Error codes, Path error codes – Rockwell Automation 2711P Software Development Kit User Manual User Manual

Page 99

background image

Publication 2711P-UM005A-EN-P - March 2007

Messages 99

Path

The notion of path is much the same as any other Windows or DOS
system. WinCE searches the following path for a module:

1. The .EXE launch directory

2. The windows (\windows) directory

3. The root (\) directory

4. An OEM-dependent directory defined by the registry key

SystemPath

The key \HKLM\Loader\SystemPath in the Windows CE Registry
to specify a search path to use with the LoadLibrary and
CreateProcess functions.

For Example:

\storage card\bin\ \storage card\ \ storage card2\bin\
\storage card2\ \storage card3\bin\ \storage card3\ is the
default path.

Error Codes

Whenever a program reports a failure, a numeric code is frequently
provided.

For example:

KeyPad: Unable to load external '\Storage Card\Platform\kh.dll'
keypad

handler [1150]. Loading stub…

Typically the number is returned by GetLastError(). A good starting
point in the failure analysis would be a scan for the number in the file
WINERROR.H, which contains a complete list of the Win 32 API error
codes. The file is found at:

...\Windows CE Tools\wce410\PanelViewPlusCE\Include\X86

Alternatively, use Error Lookup in the Tools command in Microsoft
eMbedded Visual C++ 4.0.