From: Tomasz Staroszczyk on
Thank you for the replies, though I still have a few questions
concerning RIL. What do I actually need the ril.lib and ril.h for if I
would be able to get the ril.dll file? It seems that the dll is
available on the Windows CE devices but is not available in the VS2008
libs and in the net. If I got the dll, would the VS2008 Pocket PC
emulator support and simulate the RIL functions? Would the same
application work on all devices equipped with Windows CE?
From: " ctacke/>" on
You can't take a DLL from a CE image and use it. It won't work. The lib
and header are for building and linking C++ applications. From a C#
perspective you use the header to know how to define the functions, but
you'll use P/Invoke to dynamically load the functions from the DLL, so the
lib isn't used.


--

Chris Tacke, eMVP
Join the Embedded Developer Community
http://community.opennetcf.com



"Tomasz Staroszczyk" <tomaszstaroszczyk(a)wp.pl> wrote in message
news:uhlgTs7TIHA.5208(a)TK2MSFTNGP04.phx.gbl...
> Thank you for the replies, though I still have a few questions concerning
> RIL. What do I actually need the ril.lib and ril.h for if I would be able
> to get the ril.dll file? It seems that the dll is available on the Windows
> CE devices but is not available in the VS2008 libs and in the net. If I
> got the dll, would the VS2008 Pocket PC emulator support and simulate the
> RIL functions? Would the same application work on all devices equipped
> with Windows CE?


From: Tomasz Maciąg on
Dnia 05-01-2008 o 17:50:26 Tomasz Staroszczyk <tomaszstaroszczyk(a)wp.pl>
napisa³:

> What do I actually need the ril.lib and ril.h for if I would be able to
> get the ril.dll file?

If you already have ril.dll, the only task is writing managed wrapper for
this unmanaged DLL.
Example of native prototype:

HRESULT RIL_GetCellTowerInfo(HRIL hRil);

Counterpart in C#:

[DllImport("ril.dll")]
public static extern int RIL_GetCellTowerInfo( arguments_here ) // don't
know what is HRIL type

Let me guess: you are trying to get MNC,MMC,LAC codes. Bad news for you:
don't be surprised, if most your RIL function will not work. Basically, it
depends on device you are using. For example, on many devices with Windows
Mobile 5.0, these functions are returning "no implemented" error codes :/

--
T.M.