Open project

From TaskDepender
Jump to: navigation, search
(Implementation)
(Implementation)
 
Line 1: Line 1:
''This page describes the method used by the [[Administration]] to start a new project.''
+
''This page describes the method to start a new project.''
  
== Introduction ==
+
== Description ==
  
 
Opening a project can be a new or existing project.
 
Opening a project can be a new or existing project.
Line 19: Line 19:
  
 
<syntaxhighlight lang="cpp">
 
<syntaxhighlight lang="cpp">
int Admin::Open( char *filename )
+
int Admin::Open(char *filename)
 
{
 
{
 +
  int returnValue;
 
   if( filename == NULL )
 
   if( filename == NULL )
 
   {
 
   {
Line 28: Line 29:
 
   {
 
   {
 
     // Try to open the database.
 
     // Try to open the database.
      
+
     returnValue = sqlite3_open_v2( xx, xx, xx );
 +
    if( returnValue == SQL_OK )
 +
 
 
   }
 
   }
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 +
The following errors can be returned by the SQL-open function.
  
The
+
http://www.sqlite.org/c3ref/c_abort.html
 +
 
 +
The following table converts the possible SQLITE error-codes into error-codes for the [[Administration]]
  
 
== Design ==
 
== Design ==

Latest revision as of 09:47, 23 October 2011

Personal tools