Click here to Skip to main content
14,699,969 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC CListCtrl how to Display SubItem text with tabulator ? Pin
Member 85340357-Nov-15 6:08
MemberMember 85340357-Nov-15 6:08 
GeneralRe: MFC CListCtrl how to Display SubItem text with tabulator ? Pin
Richard MacCutchan7-Nov-15 6:51
mveRichard MacCutchan7-Nov-15 6:51 
GeneralRe: MFC CListCtrl how to Display SubItem text with tabulator ? Pin
Member 85340357-Nov-15 7:30
MemberMember 85340357-Nov-15 7:30 
GeneralRe: MFC CListCtrl how to Display SubItem text with tabulator ? Pin
Richard MacCutchan7-Nov-15 8:16
mveRichard MacCutchan7-Nov-15 8:16 
QuestionRe: MFC CListCtrl how to Display SubItem text with tabulator ? Pin
David Crow8-Nov-15 10:24
MemberDavid Crow8-Nov-15 10:24 
AnswerRe: MFC CListCtrl how to Display SubItem text with tabulator ? Pin
Member 85340358-Nov-15 22:24
MemberMember 85340358-Nov-15 22:24 
AnswerRe: MFC CListCtrl how to Display SubItem text with tabulator ? Pin
David Crow9-Nov-15 2:59
MemberDavid Crow9-Nov-15 2:59 
QuestionHow to make a Windows service to manage SQLite DB Pin
intelstar venus1-Nov-15 12:41
Memberintelstar venus1-Nov-15 12: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 23:07
mveRichard MacCutchan1-Nov-15 23:07 
GeneralRe: How to make a Windows service to manage SQLite DB Pin
Richard MacCutchan2-Nov-15 6:01
mveRichard MacCutchan2-Nov-15 6:01 
GeneralRe: How to make a Windows service to manage SQLite DB Pin
intelstar venus2-Nov-15 6:20
Memberintelstar venus2-Nov-15 6:20 
GeneralRe: How to make a Windows service to manage SQLite DB Pin
Richard MacCutchan2-Nov-15 6:22
mveRichard MacCutchan2-Nov-15 6:22 
GeneralRe: How to make a Windows service to manage SQLite DB Pin
intelstar venus2-Nov-15 6:41
Memberintelstar venus2-Nov-15 6:41 
GeneralRe: How to make a Windows service to manage SQLite DB Pin
Richard MacCutchan2-Nov-15 7:25
mveRichard MacCutchan2-Nov-15 7:25 
GeneralRe: How to make a Windows service to manage SQLite DB Pin
intelstar venus2-Nov-15 7:44
Memberintelstar venus2-Nov-15 7:44 
QuestionRe: How to make a Windows service to manage SQLite DB Pin
David Crow2-Nov-15 10:14
MemberDavid Crow2-Nov-15 10:14 
AnswerRe: How to make a Windows service to manage SQLite DB Pin
intelstar venus2-Nov-15 22:28
Memberintelstar venus2-Nov-15 22:28 
AnswerRe: How to make a Windows service to manage SQLite DB Pin
jschell3-Nov-15 17:12
Memberjschell3-Nov-15 17:12 
GeneralRe: How to make a Windows service to manage SQLite DB Pin
intelstar venus4-Nov-15 2:05
Memberintelstar venus4-Nov-15 2:05 
GeneralRe: How to make a Windows service to manage SQLite DB Pin
jschell7-Nov-15 5:58
Memberjschell7-Nov-15 5:58 
Questionsocket:send integer Pin
Member 114755491-Nov-15 5:51
MemberMember 114755491-Nov-15 5:51 
QuestionRe: socket:send integer Pin
Richard MacCutchan1-Nov-15 6:36
mveRichard MacCutchan1-Nov-15 6:36 
AnswerRe: socket:send integer Pin
Member 114755496-Nov-15 5:15
MemberMember 114755496-Nov-15 5:15 
GeneralRe: socket:send integer Pin
Richard MacCutchan6-Nov-15 5:17
mveRichard MacCutchan6-Nov-15 5:17 
AnswerRe: socket:send integer Pin
Jochen Arndt1-Nov-15 22:07
professionalJochen Arndt1-Nov-15 22: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.