Click here to Skip to main content
15,891,719 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ and Sqlite connection Pin
Thilek9-Jan-09 3:54
Thilek9-Jan-09 3:54 
GeneralRe: C++ and Sqlite connection Pin
vanishaa9-Jan-09 4:05
vanishaa9-Jan-09 4:05 
GeneralRe: C++ and Sqlite connection Pin
Cedric Moonen9-Jan-09 4:07
Cedric Moonen9-Jan-09 4:07 
GeneralRe: C++ and Sqlite connection Pin
Stuart Dootson9-Jan-09 4:16
professionalStuart Dootson9-Jan-09 4:16 
JokeRe: C++ and Sqlite connection Pin
6Qing889-Jan-09 16:58
6Qing889-Jan-09 16:58 
GeneralRe: C++ and Sqlite connection Pin
Stuart Dootson9-Jan-09 22:16
professionalStuart Dootson9-Jan-09 22:16 
AnswerRe: C++ and Sqlite connection Pin
Stuart Dootson9-Jan-09 4:03
professionalStuart Dootson9-Jan-09 4:03 
GeneralRe: C++ and Sqlite connection Pin
vanishaa9-Jan-09 18:54
vanishaa9-Jan-09 18:54 
hi, i have tried to code the connection. It shows 1 error message. Don't really understand what is it..below is the code and error message.

Code:

// sparta1.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "sqlite3.h"
#include <iostream>
#include "SQLAPI.h"
//#include <stdio.h>
//#include "Sl3API.h"
#pragma comment (lib,"sqlite3.lib")



int main(int argc, _TCHAR* argv[])

{

SAConnection con; //create connection object
SACommand cmd; // create command object
//&SAConnection::setClient;



con.setClient(SA_SQLite_Client);

void Connect(const SAString &sDBString, const SAString &sUserID, const SAString &sPasswords,SAClient_t eSAClient);


con.Connect("WORM.sqlite", "", "","SA_SQLite_Client");
cmd.setConnection(&con);


}


error message:

1>------ Build started: Project: sparta1, Configuration: Debug Win32 ------
1>Compiling...
1>sparta1.cpp
1>c:\users\vani\documents\visual studio 2005\projects\sparta1\sparta1\sparta1.cpp(29) : error C2664: 'SAConnection::Connect' : cannot convert parameter 4 from 'const char [17]' to 'SAClient_t'
1> There is no context in which this conversion is possible
1>Build log was saved at "file://c:\Users\Vani\Documents\Visual Studio 2005\Projects\sparta1\sparta1\Debug\BuildLog.htm"
1>sparta1 - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
GeneralRe: C++ and Sqlite connection Pin
Stuart Dootson9-Jan-09 22:19
professionalStuart Dootson9-Jan-09 22:19 
GeneralRe: C++ and Sqlite connection Pin
vanishaa10-Jan-09 1:32
vanishaa10-Jan-09 1:32 
GeneralRe: C++ and Sqlite connection Pin
Stuart Dootson10-Jan-09 1:57
professionalStuart Dootson10-Jan-09 1:57 
GeneralRe: C++ and Sqlite connection Pin
vanishaa10-Jan-09 2:19
vanishaa10-Jan-09 2:19 
GeneralRe: C++ and Sqlite connection Pin
vanishaa10-Jan-09 2:46
vanishaa10-Jan-09 2:46 
GeneralRe: C++ and Sqlite connection Pin
Stuart Dootson10-Jan-09 3:20
professionalStuart Dootson10-Jan-09 3:20 
GeneralRe: C++ and Sqlite connection Pin
vanishaa10-Jan-09 4:03
vanishaa10-Jan-09 4:03 
GeneralRe: C++ and Sqlite connection Pin
Stuart Dootson10-Jan-09 5:33
professionalStuart Dootson10-Jan-09 5:33 
Questioncommand line Pin
Russell'9-Jan-09 2:37
Russell'9-Jan-09 2:37 
AnswerRe: command line Pin
David Crow9-Jan-09 3:09
David Crow9-Jan-09 3:09 
GeneralRe: command line Pin
Russell'9-Jan-09 4:53
Russell'9-Jan-09 4:53 
QuestionPossible violation in typedefs Pin
6Qing889-Jan-09 2:05
6Qing889-Jan-09 2:05 
QuestionRe: Possible violation in typedefs Pin
CPallini9-Jan-09 2:18
mveCPallini9-Jan-09 2:18 
AnswerRe: Possible violation in typedefs Pin
6Qing889-Jan-09 3:01
6Qing889-Jan-09 3:01 
AnswerRe: Possible violation in typedefs Pin
Stuart Dootson9-Jan-09 2:25
professionalStuart Dootson9-Jan-09 2:25 
GeneralRe: Possible violation in typedefs Pin
6Qing889-Jan-09 3:06
6Qing889-Jan-09 3:06 
GeneralRe: Possible violation in typedefs Pin
Luc Pattyn9-Jan-09 2:44
sitebuilderLuc Pattyn9-Jan-09 2:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.