Click here to Skip to main content
15,904,287 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: list box Pin
Niklas L7-Jul-10 23:27
Niklas L7-Jul-10 23:27 
QuestionMFC SDI multiple resource file Pin
alexander 19837-Jul-10 19:43
alexander 19837-Jul-10 19:43 
AnswerRe: MFC SDI multiple resource file Pin
Iain Clarke, Warrior Programmer7-Jul-10 21:26
Iain Clarke, Warrior Programmer7-Jul-10 21:26 
QuestionBuilding Query using C++ Pin
T.RATHA KRISHNAN7-Jul-10 19:04
T.RATHA KRISHNAN7-Jul-10 19:04 
QuestionRe: Building Query using C++ Pin
«_Superman_»7-Jul-10 19:18
professional«_Superman_»7-Jul-10 19:18 
AnswerRe: Building Query using C++ Pin
T.RATHA KRISHNAN7-Jul-10 19:28
T.RATHA KRISHNAN7-Jul-10 19:28 
GeneralRe: Building Query using C++ Pin
«_Superman_»7-Jul-10 19:31
professional«_Superman_»7-Jul-10 19:31 
GeneralRe: Building Query using C++ Pin
T.RATHA KRISHNAN7-Jul-10 19:42
T.RATHA KRISHNAN7-Jul-10 19:42 
No Compiling Errors. Program crashes when I run this code:

void CGameMenuPlayerProfileState::readFile(stringw& country, int tabId)
{
 stringw query;
 query = L"Select Name from ";
 switch(tabId)
 {
  case 17:
	   query += L"Test";
	   break;
  case 18:
	   query += L"ODI";
	   break;
  case 19:
	   query += L"T20I";
	   break;
  default:
	   query += L"Test";
 }
 query += L" WHERE Team = '";
 query +=country.trim(); 
 query +="'";
 for(int i = 0; i<m_pPlayerBtn.size();i++)
 {
  query += m_pPlayerBtn[i]->getText();
 }
 printf("%S",query);
}

Without the for loop it runs fine.
I've to get each players detail(I've to get the players from button's text) from database and display the details to a tab when a button(the corresponding player's details)is clicked.
GeneralRe: Building Query using C++ Pin
«_Superman_»7-Jul-10 19:47
professional«_Superman_»7-Jul-10 19:47 
GeneralRe: Building Query using C++ Pin
T.RATHA KRISHNAN7-Jul-10 19:52
T.RATHA KRISHNAN7-Jul-10 19:52 
GeneralRe: Building Query using C++ Pin
«_Superman_»7-Jul-10 19:54
professional«_Superman_»7-Jul-10 19:54 
GeneralRe: Building Query using C++ Pin
T.RATHA KRISHNAN7-Jul-10 20:00
T.RATHA KRISHNAN7-Jul-10 20:00 
GeneralRe: Building Query using C++ Pin
«_Superman_»7-Jul-10 20:08
professional«_Superman_»7-Jul-10 20:08 
GeneralRe: Building Query using C++ Pin
T.RATHA KRISHNAN7-Jul-10 20:13
T.RATHA KRISHNAN7-Jul-10 20:13 
GeneralRe: Building Query using C++ Pin
«_Superman_»7-Jul-10 20:28
professional«_Superman_»7-Jul-10 20:28 
GeneralRe: Building Query using C++ Pin
T.RATHA KRISHNAN7-Jul-10 20:28
T.RATHA KRISHNAN7-Jul-10 20:28 
QuestionSpecial case of templates, pointers-to-members, inheritance - works in VC++ 2008, GCC 3.4.4, but fails in VC++ 2005 Pin
Kosta Cherry7-Jul-10 18:42
Kosta Cherry7-Jul-10 18:42 
AnswerRe: Special case of templates, pointers-to-members, inheritance - works in VC++ 2008, GCC 3.4.4, but fails in VC++ 2005 Pin
Kosta Cherry7-Jul-10 19:04
Kosta Cherry7-Jul-10 19:04 
AnswerRe: Special case of templates, pointers-to-members, inheritance - works in VC++ 2008, GCC 3.4.4, but fails in VC++ 2005 [modified] Pin
Aescleal7-Jul-10 21:30
Aescleal7-Jul-10 21:30 
QuestionHow to Connect to DataBase using SQL in VC6 Pin
raju_shiva7-Jul-10 1:50
raju_shiva7-Jul-10 1:50 
AnswerRe: How to Connect to DataBase using SQL in VC6 Pin
Richard MacCutchan7-Jul-10 2:54
mveRichard MacCutchan7-Jul-10 2:54 
GeneralRe: How to Connect to DataBase using SQL in VC6 Pin
raju_shiva7-Jul-10 19:04
raju_shiva7-Jul-10 19:04 
GeneralRe: How to Connect to DataBase using SQL in VC6 Pin
Richard MacCutchan7-Jul-10 21:08
mveRichard MacCutchan7-Jul-10 21:08 
GeneralRe: How to Connect to DataBase using SQL in VC6 Pin
David Crow8-Jul-10 1:59
David Crow8-Jul-10 1:59 
QuestionRe: How to Connect to DataBase using SQL in VC6 Pin
David Crow7-Jul-10 3:43
David Crow7-Jul-10 3:43 

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.