Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: wrong output ,error in my program Pin
elchupathingy11-Aug-10 3:41
elchupathingy11-Aug-10 3:41 
QuestionProblem with String Array Pin
T.RATHA KRISHNAN11-Aug-10 0:21
T.RATHA KRISHNAN11-Aug-10 0:21 
AnswerRe: Problem with String Array Pin
CPallini11-Aug-10 0:36
mveCPallini11-Aug-10 0:36 
GeneralRe: Problem with String Array Pin
T.RATHA KRISHNAN11-Aug-10 0:46
T.RATHA KRISHNAN11-Aug-10 0:46 
GeneralRe: Problem with String Array Pin
CPallini11-Aug-10 1:18
mveCPallini11-Aug-10 1:18 
GeneralRe: Problem with String Array Pin
Nuri Ismail11-Aug-10 0:54
Nuri Ismail11-Aug-10 0:54 
GeneralRe: Problem with String Array Pin
CPallini11-Aug-10 1:17
mveCPallini11-Aug-10 1:17 
GeneralRe: Problem with String Array Pin
Nuri Ismail11-Aug-10 1:44
Nuri Ismail11-Aug-10 1:44 
AnswerRe: Problem with String Array Pin
Nuri Ismail11-Aug-10 0:51
Nuri Ismail11-Aug-10 0:51 
GeneralRe: Problem with String Array Pin
T.RATHA KRISHNAN11-Aug-10 0:59
T.RATHA KRISHNAN11-Aug-10 0:59 
GeneralRe: Problem with String Array Pin
Nuri Ismail11-Aug-10 1:04
Nuri Ismail11-Aug-10 1:04 
GeneralRe: Problem with String Array Pin
T.RATHA KRISHNAN11-Aug-10 1:19
T.RATHA KRISHNAN11-Aug-10 1:19 
GeneralRe: Problem with String Array Pin
Nuri Ismail11-Aug-10 1:42
Nuri Ismail11-Aug-10 1:42 
GeneralRe: Problem with String Array[Solved] Pin
T.RATHA KRISHNAN11-Aug-10 1:54
T.RATHA KRISHNAN11-Aug-10 1:54 
GeneralRe: Problem with String Array[Solved] Pin
Nuri Ismail11-Aug-10 2:51
Nuri Ismail11-Aug-10 2:51 
QuestionUnRegisterHotKey problem Pin
wikywin10-Aug-10 22:21
wikywin10-Aug-10 22:21 
AnswerRe: UnRegisterHotKey problem Pin
Niklas L10-Aug-10 22:46
Niklas L10-Aug-10 22:46 
GeneralRe: UnRegisterHotKey problem Pin
wikywin10-Aug-10 22:57
wikywin10-Aug-10 22:57 
GeneralRe: UnRegisterHotKey problem Pin
Niklas L10-Aug-10 23:07
Niklas L10-Aug-10 23:07 
GeneralRe: UnRegisterHotKey problem Pin
wikywin11-Aug-10 17:32
wikywin11-Aug-10 17:32 
GeneralRe: UnRegisterHotKey problem Pin
Niklas L11-Aug-10 20:58
Niklas L11-Aug-10 20:58 
AnswerRe: UnRegisterHotKey problem Pin
Luc Pattyn11-Aug-10 1:55
sitebuilderLuc Pattyn11-Aug-10 1:55 
GeneralRe: UnRegisterHotKey problem Pin
wikywin11-Aug-10 15:34
wikywin11-Aug-10 15:34 
GeneralRe: UnRegisterHotKey problem Pin
Luc Pattyn11-Aug-10 15:47
sitebuilderLuc Pattyn11-Aug-10 15:47 
QuestionAssigning multi valued string. Pin
T.RATHA KRISHNAN10-Aug-10 21:09
T.RATHA KRISHNAN10-Aug-10 21:09 
Hi!
I've to assign a multivalued string to a variable. If I use the following code only the last part is assigned to the variable. ie If I assign "Sri Lanka", only "Lanka" get assigned to the variable. This is the code:

array<stringc> ctyLst = SQLdb.Query("Select DISTINCT Team from Test ORDER BY Team DESC");
array<stringc> playerLst;
char query[512];
for(int i = 0; i<ctyLst.size(); i++)
{
 ctyLst[i].trim();
 printf("%s \n",ctyLst[i].c_str());
 sprintf_s(query,512,"Select Name From Test WHERE Team=(%s) ORDER BY RANDOM() LIMIT 11",ctyLst[i].c_str());
 playerLst = SQLdb.Query(query);
}


What to do to assign the full string to the variable Team?

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.