Page loading

  
    
     
trans

 

CPDB.Net

 

[fr]
trans
[en]

 

Welcome
Welcome

 

News
News

 

Downloads
Downloads

 

Forum
Forum

 

Stats
Stats

 

 

Admin
Admin

trans

Return to :

PPCompiler

trans

Index

CPDB library
1- Add CPDB support to your application
2- Open and close databases
3- Browse operations
4- Fields operations
5- Functions of modification of a database
6- Sort and search operations
7- Index of functions
8- Error codes
Documentation
CPDB Conduit
CPDB Features

trans

Webmaster

Webmaster : Palmipod

E-mail : phc­@­palmipod­.­com

This site requires web browsers to be at least version 4.

trans

Visits (since August 2006)

  visitors

  visitors online

trans

trans

Forum - CPDB.Net (GB/US) - Topic #23

Post an answer [ Post an answer ]


Topic #23 

CPDB error to compile
    -  by Paul A. 11/03/2004 @ 03:39

I am writing a small program to open an search record on a pdb file. The steps that I follow was (using cpdb wizard to make easy):
1. Add CPDB support to a C/C++ project: I locate my main app.c and app.h files an process the script.
2. Open database. The code generated was:
Err errResult;
UInt8 hmydb;
Err = CPDB_Open(0, "mydb", dmModeReadWrite, &hmydb);
I put this code on a click event of a button on a project form.
3. I gererate an Advanced Search as follow and put this after the code of item 2:
Err errResult2;
Boolean bFound;

errResult2 = CPDB_Search(hmydb, "Description", "test", CPDB_SEARCH_FROMCURRENT | CPDB_SEARCH_WITHIN);
errResult2 = CPDB_IsFound(hmydb, &bFound);

When I try to compile I receive the messages:
parse error before '='
CPDB_SEARCH_FROMCURRENT undeclared
CPDB_SEARCH_WITHIN undeclared

Please, how to solve this problem?

There is a complete example learning how to use CPDB to make some database operations?

Thanks!
Paul


Answer #1

by Palmipod 20/03/2004 @ 18:54

have you try to compile the "Ordo Sample" or "HiScore" ?

[ Answer to this message ]


[ Back to the list of topics ]

Mobile

Mobile version of CPDB.net

trans

Library

CPDB.net Library

This PalmOS library is compiled in C. It is provided with its .h file and documentation.


The library can be used by all applications developed with CodeWarrior, Falch.net or PRC-Tools.


Included :
Generic conduit for CPDB.net and CPDBWizard


The generic conduit CPDBConduit allows to convert a PC database in a CSV-like format into a Palm database (CPDB format).


CPDBWizard enables you to describe your data bases and generates for you the source code necessary to their exploitation.

trans

Search

trans

trans

trans

Top

trans

GuppY - http://www.freeguppy.org/
Site running with GuppY v3.1 - GNU Public License - © 2002-2024

trans

Page loaded in 0.03 second