I have written an SDHC driver for my platform. It requires the sdbus.dll to
be included in the build from what I can understand. I am having trouble
figuring out how to include the sdbus.dll into my build. I have tried adding
a bib entry in my platform.bib, but i get the following error during makeimg:
"Error: Can't find import SDHCDGetHCFunctions in sdbus.dll
Error: Can't find import SDHCDGetHCFunctions hint 7 in sdbus.dll
Error: Fatal import error in sdbus.dll"

If I don't include the sdbus.dll entry in my platform.bib, then the build
completes without errors, but during the SDHC driver load, I see the
following error:

"0x8bfcd630: DEVICE!CreateDevice: loading driver DLL 'sdhc_mx21.dll'
0x8bfcd630: DoImport Failed! Unable to import Library 'SDBus.dll' for
'sdhc_mx21.dll'
0x8bfcd630: DEVICE!CreateDevice: couldn't load 'sdhc_mx21.dll' -- error 126
0x8bfcd630: DeleteDevice: deleting device at 0x00040020
0x8bfcd630: CreateDevice: creation of type 'SDH', index 1, lib
'sdhc_mx21.dll' returning 0x00000000, error code 2
0x8bfcd630: DEVICE!I_ActivateDeviceEx: couldn't activate: prefix SDH, index
1, dll sdhc_mx21.dll, context 0x0"

What could I be missing in my bib to cause these errors?

Re: How to include SDBus driver in build (WinCE 5.0) by Steve

Steve
Wed Apr 27 16:19:31 CDT 2005

In the case where you have included SDBus, can you go to your release
directory and perform a "dumpbin /exports sdbus.dll"? This should show that
SDHCDGetHCFunctions is an exported function.

Can you also post your SOURCES file?

--
Steve Schrock
Windows CE Device Drivers and BSPs

This posting is provided "AS IS" with no warranties, and confers no rights.

"Anish Trivedi" <AnishTrivedi@discussions.microsoft.com> wrote in message
news:DE612E93-B6A5-4882-97EF-EE6EF2A73196@microsoft.com...
>I have written an SDHC driver for my platform. It requires the sdbus.dll to
> be included in the build from what I can understand. I am having trouble
> figuring out how to include the sdbus.dll into my build. I have tried
> adding
> a bib entry in my platform.bib, but i get the following error during
> makeimg:
> "Error: Can't find import SDHCDGetHCFunctions in sdbus.dll
> Error: Can't find import SDHCDGetHCFunctions hint 7 in sdbus.dll
> Error: Fatal import error in sdbus.dll"
>
> If I don't include the sdbus.dll entry in my platform.bib, then the build
> completes without errors, but during the SDHC driver load, I see the
> following error:
>
> "0x8bfcd630: DEVICE!CreateDevice: loading driver DLL 'sdhc_mx21.dll'
> 0x8bfcd630: DoImport Failed! Unable to import Library 'SDBus.dll' for
> 'sdhc_mx21.dll'
> 0x8bfcd630: DEVICE!CreateDevice: couldn't load 'sdhc_mx21.dll' -- error
> 126
> 0x8bfcd630: DeleteDevice: deleting device at 0x00040020
> 0x8bfcd630: CreateDevice: creation of type 'SDH', index 1, lib
> 'sdhc_mx21.dll' returning 0x00000000, error code 2
> 0x8bfcd630: DEVICE!I_ActivateDeviceEx: couldn't activate: prefix SDH,
> index
> 1, dll sdhc_mx21.dll, context 0x0"
>
> What could I be missing in my bib to cause these errors?
>