Solved

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

Posted on 2006-11-10
3
366 Views
Last Modified: 2010-10-05
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);
0
Comment
Question by:wfuller6
3 Comments
 
LVL 22

Accepted Solution

by:
cookre earned 250 total points
Comment Utility
That's an Out Of Memory error.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is an explanation of a simple data model to help parse a JSON feed
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now