Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rapi problem!

Status
Not open for further replies.

toneng

Programmer
Aug 8, 2005
3
FI
I have a problem with RAPI in Delphi. I made a program in Delphi that should detect if Pocket PC is connected. Evrithing else is working fine exept CeRapiUnInit. The CeRapiUnInit is returning nil when loading from Rapi.dll. I am using Rapi.pas from borland examples.

How can I get it to work?

Is there any simpler ways to detect if Pocket PC is connected in Delphi?
 
Thanks for the reply!

It is the examples that I am using.

The call:
@mCeRapiUnInit:= GetProcAddress(RapiModule, 'CeRapiUnInit');
is returning "Inaccessible value", that is propably meaning nil. I am using Delphi 4 and ActiveSync 3.8.
When I was looking closer the CeRapiInit has the same problem but the CeRapiInitEx is working.
By the way I had to include CeRapiInitEx call to the example.

Way is it not working?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top