Click here to Skip to main content
15,906,624 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Different methods in objects in a List Pin
CPallini18-Mar-08 3:00
mveCPallini18-Mar-08 3:00 
GeneralRe: Different methods in objects in a List [modified] Pin
Member 75496020-Mar-08 5:25
Member 75496020-Mar-08 5:25 
GeneralDrawing pictures c++ win32 Pin
Hanan88818-Mar-08 1:45
Hanan88818-Mar-08 1:45 
QuestionRe: Drawing pictures c++ win32 Pin
David Crow18-Mar-08 3:25
David Crow18-Mar-08 3:25 
GeneralRe: Drawing pictures c++ win32 Pin
Hanan88818-Mar-08 3:33
Hanan88818-Mar-08 3:33 
GeneralRe: Drawing pictures c++ win32 Pin
Mark Salsbery18-Mar-08 7:06
Mark Salsbery18-Mar-08 7:06 
Generalchar * to TCHAR Pin
Royaltvk18-Mar-08 1:40
Royaltvk18-Mar-08 1:40 
GeneralRe: char * to TCHAR PinPopular
CPallini18-Mar-08 1:59
mveCPallini18-Mar-08 1:59 
Royaltvk wrote:
error C2664: 'stricmp' : cannot convert parameter 1 from 'unsigned short *' to 'const char *'


Probably the error comes instead on parameter 2.

Anyway, change your code as follows

BOOL CShowAndEditSQLDlg::IsSQLKeyword( CString strSQLWord )
{

TCHAR * strKeyword[19] = { _T("SELECT"), _T("FROM"), _T("WHERE"), _T("IN"), _T("ORDER"), _T("GROUP"), _T("BY"),
_T("INNER"), _T("OUTER"), _T("JOIN"), _T("AS"), _T("ON"), _T("MIN"), _T("MAX"), _T("AVG"), _T("SUM"), _T(","), _T("AND"), _T(".")};


for ( int i =0; i < 19; i++ )
if ( _tcsicmp ( strKeyword[i], LPCTSTR(strSQLWord) ) == 0 )
return TRUE;

return FALSE;
}

Smile | :)

OT: sorry Mark no GetBuffer here. Big Grin | :-D

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


GeneralRe: char * to TCHAR Pin
Royaltvk18-Mar-08 2:17
Royaltvk18-Mar-08 2:17 
GeneralRe: char * to TCHAR Pin
CPallini18-Mar-08 3:06
mveCPallini18-Mar-08 3:06 
GeneralRe: char * to TCHAR Pin
Rajesh R Subramanian18-Mar-08 4:11
professionalRajesh R Subramanian18-Mar-08 4:11 
GeneralRe: char * to TCHAR Pin
CPallini18-Mar-08 4:51
mveCPallini18-Mar-08 4:51 
GeneralRe: char * to TCHAR Pin
Mark Salsbery18-Mar-08 7:09
Mark Salsbery18-Mar-08 7:09 
GeneralRe: char * to TCHAR Pin
Cedric Moonen18-Mar-08 2:14
Cedric Moonen18-Mar-08 2:14 
QuestionRe: char * to TCHAR Pin
David Crow18-Mar-08 3:36
David Crow18-Mar-08 3:36 
General[Message Deleted] Pin
preeti sharma18-Mar-08 0:30
preeti sharma18-Mar-08 0:30 
AnswerRe: toolbar on a dialog box Pin
Rajesh R Subramanian18-Mar-08 1:11
professionalRajesh R Subramanian18-Mar-08 1:11 
Generalhourglass cursor not showing in thread Pin
josip cagalj18-Mar-08 0:27
josip cagalj18-Mar-08 0:27 
GeneralRe: hourglass cursor not showing in thread Pin
CPallini18-Mar-08 0:46
mveCPallini18-Mar-08 0:46 
GeneralRe: hourglass cursor not showing in thread Pin
josip cagalj18-Mar-08 5:23
josip cagalj18-Mar-08 5:23 
GeneralRe: hourglass cursor not showing in thread Pin
CPallini18-Mar-08 5:31
mveCPallini18-Mar-08 5:31 
GeneralRe: hourglass cursor not showing in thread [modified] Pin
josip cagalj18-Mar-08 5:50
josip cagalj18-Mar-08 5:50 
GeneralRe: hourglass cursor not showing in thread Pin
CPallini18-Mar-08 6:46
mveCPallini18-Mar-08 6:46 
QuestionDifference between Windows Xp os and Windows Vista os? Pin
rowdy_vc++18-Mar-08 0:02
rowdy_vc++18-Mar-08 0:02 
AnswerRe: Difference between Windows Xp os and Windows Vista os? Pin
Maxwell Chen18-Mar-08 0:14
Maxwell Chen18-Mar-08 0:14 

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.