Forum - Topic #23
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" ?
[ Back to the list of topics ]
Top

Site running with GuppY v3.1 - GNU Public License - © 2002-2024
Page loaded in 0.02 second