C installer issue...

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

I'm writting an installer for the PPC.

I'm trying to write a C installer, to avoid using .NET on the desktop.
Moreover I'm trying to detect if .NETCF is already installed on the PPC.

Apparently I had to use function like CeRapiInitEx() and its siblings from
"rapi.h"

However rapi.h doesn't seems to be included in VS.NET include files, so I
downloaded and installed eVC++

and add to my include path:
C:\windows ce tools\wce300\Pocket PC 2002\support\ActiveSync\inc

and add to my lib path:
C:\windows ce tools\wce300\Pocket PC 2002\support\ActiveSync\lib
(along with rapi.lib)

however when I try to compile I had heaps of insult message like
c:\windows ce tools\wce300\Pocket PC 2002\support\ActiveSync\inc\rapi.h(97):
warning C4013: 'STDMETHOD' undefined; assuming extern returning int

c:\windows ce tools\wce300\Pocket PC 2002\support\ActiveSync\inc\rapi.h(97):
error C2065: 'SetRapiStat' : undeclared identifier

etc ...

hu ...
what could I do about that ?
 
Hi,

RAPI comes included with Microsoft Activesync.

Regarding your problem, instead of including the rapi.lib at compile time,
try loading the dll during runtime using LoadLibrary() and use function
pointers to access the RAPI functionality. This way your application wont
crash in systems which doesn't have activesync installed.

For detecting whether .NET CF is already present the following article mgiht
be useful to u
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/compactfxtechart.asp

Hope this helps...

Girish.
 
Back
Top