Click here to Skip to main content
14,603,335 members

C / C++ / MFC

 
GeneralRe: MFC CListCtrl how to Display SubItem text with tabulator ? Pin
Member 85340357-Nov-15 5:08
MemberMember 85340357-Nov-15 5:08 
GeneralRe: MFC CListCtrl how to Display SubItem text with tabulator ? Pin
Richard MacCutchan7-Nov-15 5:51
mveRichard MacCutchan7-Nov-15 5:51 
GeneralRe: MFC CListCtrl how to Display SubItem text with tabulator ? Pin
Member 85340357-Nov-15 6:30
MemberMember 85340357-Nov-15 6:30 
GeneralRe: MFC CListCtrl how to Display SubItem text with tabulator ? Pin
Richard MacCutchan7-Nov-15 7:16
mveRichard MacCutchan7-Nov-15 7:16 
QuestionRe: MFC CListCtrl how to Display SubItem text with tabulator ? Pin
David Crow8-Nov-15 9:24
MemberDavid Crow8-Nov-15 9:24 
AnswerRe: MFC CListCtrl how to Display SubItem text with tabulator ? Pin
Member 85340358-Nov-15 21:24
MemberMember 85340358-Nov-15 21:24 
AnswerRe: MFC CListCtrl how to Display SubItem text with tabulator ? Pin
David Crow9-Nov-15 1:59
MemberDavid Crow9-Nov-15 1:59 
QuestionHow to make a Windows service to manage SQLite DB Pin
intelstar venus1-Nov-15 11:41
Memberintelstar venus1-Nov-15 11:41 
I used CppSQLite3_2.zip freeware and wrote some Windows service to manage SQLite DB.
As a simple application, it acts well.
ex. In the application for test, this code reported proper value.
const char* gszFile = "e:\\Test\\Database\\Server.db3";
int TryOpen(char * sql)
{
SQLite3DBCpp *db = new SQLite3DBCpp;
db->open(gszFile);
SQLite3QueryCpp q = db->execQuery("select * from my_settings");
q.finalize();
db->close();
}

But after implemented as a service, it doesn't returned any values.

ex. in the service program, I used the above code directly.
Here I tried to give SQL cmd as a parameter.

AnsiString sQuery; ...
SQLite3QueryCpp q = db->execQuery(sQuery.c_str());

If I give a static command such as "select * from my_settings" instead of sQuery.c_str(), it operated properly, but it doesn't act when it receives a dynamic params.

In fact, if we dumped the sQuery.c_str(), the output was "select * from my_settings".

What's the matter? Please tell me the reason.
I think it'll be no problem in Linux, but I don't know the Windows inside well.

Please help me, Best regards!

-- modified 2-Nov-15 10:51am.
AnswerRe: How to make a Windows service to manage SQLite DB Pin
Richard MacCutchan1-Nov-15 22:07
mveRichard MacCutchan1-Nov-15 22:07 
GeneralRe: How to make a Windows service to manage SQLite DB Pin
Richard MacCutchan2-Nov-15 5:01
mveRichard MacCutchan2-Nov-15 5:01 
GeneralRe: How to make a Windows service to manage SQLite DB Pin
intelstar venus2-Nov-15 5:20
Memberintelstar venus2-Nov-15 5:20 
GeneralRe: How to make a Windows service to manage SQLite DB Pin
Richard MacCutchan2-Nov-15 5:22
mveRichard MacCutchan2-Nov-15 5:22 
GeneralRe: How to make a Windows service to manage SQLite DB Pin
intelstar venus2-Nov-15 5:41
Memberintelstar venus2-Nov-15 5:41 
GeneralRe: How to make a Windows service to manage SQLite DB Pin
Richard MacCutchan2-Nov-15 6:25
mveRichard MacCutchan2-Nov-15 6:25 
GeneralRe: How to make a Windows service to manage SQLite DB Pin
intelstar venus2-Nov-15 6:44
Memberintelstar venus2-Nov-15 6:44 
QuestionRe: How to make a Windows service to manage SQLite DB Pin
David Crow2-Nov-15 9:14
MemberDavid Crow2-Nov-15 9:14 
AnswerRe: How to make a Windows service to manage SQLite DB Pin
intelstar venus2-Nov-15 21:28
Memberintelstar venus2-Nov-15 21:28 
AnswerRe: How to make a Windows service to manage SQLite DB Pin
jschell3-Nov-15 16:12
Memberjschell3-Nov-15 16:12 
GeneralRe: How to make a Windows service to manage SQLite DB Pin
intelstar venus4-Nov-15 1:05
Memberintelstar venus4-Nov-15 1:05 
GeneralRe: How to make a Windows service to manage SQLite DB Pin
jschell7-Nov-15 4:58
Memberjschell7-Nov-15 4:58 
Questionsocket:send integer Pin
Member 114755491-Nov-15 4:51
MemberMember 114755491-Nov-15 4:51 
QuestionRe: socket:send integer Pin
Richard MacCutchan1-Nov-15 5:36
mveRichard MacCutchan1-Nov-15 5:36 
AnswerRe: socket:send integer Pin
Member 114755496-Nov-15 4:15
MemberMember 114755496-Nov-15 4:15 
GeneralRe: socket:send integer Pin
Richard MacCutchan6-Nov-15 4:17
mveRichard MacCutchan6-Nov-15 4:17 
AnswerRe: socket:send integer Pin
Jochen Arndt1-Nov-15 21:07
professionalJochen Arndt1-Nov-15 21:07 

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.