Page loading

  
    
     
trans

 

CPDB.Net

 

[fr]
trans
[en]

 

Welcome
Welcome

 

News
News

 

Downloads
Downloads

 

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

Preferences

Your name : Guest


Users online

( nobody )

trans

Webmaster

Webmaster : Palmipod

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

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

trans

trans

1- Add CPDB support to your application

C language



Introduction

CPDB is a Palm shared library. To add CPDB support to your C application, you must only open the library, it's very easy and some Macro are provided to simplify the manipulation.


 

Install CPDB on the device

The CPDB library, a little prc file, must be installed with your application. For your testing session you must install the lib on the POSE Emulator, like another application.


 

On the POSE emulator :

  •  Run POSE emulator
  •  Drag & drop the CPDBSTD.PRC file on POSE emulator
  •  Save the session with : right-clic/Save on POSE emulator

 

On your Palm device :

  •  Run Hotsync Install tool (in the Palm Desktop section of your program menu)
  •  Clic on [Add] button, browse to select "CPDBSTD.PRC" in your cpdb.net installation directory
  •  Clic on [Done] button
  •  Hotsync the Palm device

 

With Falch.net DeveloperStudio :

It's very easy to install CPDB library each time you run your test or debug session.



  •  Open your project and clic on [Project/Properties] menu
  •  Choose you settings on the combo box, most of time you choose "Debug" settings
  •  Clic on the [Debug] tab
  •  On the right of the "Load Additional Applications" field, clic on the [Add] button (the paper bitmap button)
  •  Browse to select "CPDBSTD.PRC" in your cpdb.net installation directory
  •  Clic on [OK], it's done !

Do the same way to install a CPDB database for use with CPDB.


 

Modify your source code

Some addition must be done on your main.c and your application header file.


In main.c :

- Add the following line before the first function of your code :





// #include ...
CPDB_USELIB
// First function

Note : do not type a ";" on the end.


- Add the following line in your "StartApplication" or PilotMain* function :





static int StartApplication(void)
{
CPDB_OPENLIB

FrmGotoForm(frmMain);
return 0;
}

* Before the first form is opened


Note : do not type a ";" on the end.



- Add the following line in your "StopApplication" or PilotMain* function :





static void StopApplication(void)
{
FrmCloseAllForms();



CPDB_CLOSELIB
}

* Before the end of execution, after the "EventLoop" and AFTER closing forms (by this way, you can close your databases in the FrmClose event).


Note : do not type a ";" on the end.



In the application header file :

- Add the following lines in any place :





#include "CPDBSTD.h"

CPDB_EXTERN_USELIB

You need to put the "CPDBSTD.h" file in your project directory. You can find this file in the CPDB installation directory.


Note : do not type a ";" on the end of the CPDB_USELIB line.


 

Conclusion

Four line to add, your application is CPDB ready !


Creation date : 01/10/2003 @ 05:58
Last update : 01/10/2003 @ 08:53
Category : CPDB library
Page read 7565 times

Print previewPrint preview

  

Print the pagePrint the page

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

Visits (since August 2006)

  visitors

  visitors online

trans

trans

Top

trans

GuppY - http://www.freeguppy.org/
Site running with GuppY v3.0p5mod - GNU Public License - 2002-2004

trans

Page loaded in 0.2 second