Link to home
Start Free TrialLog in
Avatar of wfuller6
wfuller6

asked on

CeReadRecordPropsEx (RAPI) on desktop not working. always returning 0 . CeGetLastError=0 GetRapiLastError=2147942414 ???

Hello Experts.

I have again hit another wall on my relentless efforts to complete a Win CE project that seems to have no end.

I'm trying to pull records off a Win CE database using CeReadRecordPropsEx on the desktop application.
The function call and arguments are identical to the Win CE app where the function performs correctly.

1.The RAPI session initializes correctly
2.dbase open correctly
3.I'm able to seek 1st record correctly.

However; when I try to read the record I get a rapi error code = 2147942414.  Any idea on what this is. Can't find any reference on the web.

Thanks

Call in code is below:

      WORD wProps;
      PCEPROPVAL pRecord;
      PBYTE pBuff;
      DWORD dwRecSize;
      BOOL rvalue=TRUE;
      CEOID rec;
      int i;
      pBuff=0;

      rec=CeReadRecordPropsEx(
            h_db,
            CEDB_ALLOWREALLOC,
            &wProps,
            NULL,
            &(LPBYTE)pBuff,
            &dwRecSize,
            0);
ASKER CERTIFIED SOLUTION
Avatar of cookre
cookre
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial