Click here to Skip to main content
15,907,328 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help me Creating a Setup.exe Pin
garfield18517-May-07 0:37
garfield18517-May-07 0:37 
AnswerRe: Help me Creating a Setup.exe Pin
toxcct17-May-07 0:51
toxcct17-May-07 0:51 
QuestionHi All !(CString Class) Pin
Bravoone_200616-May-07 20:52
Bravoone_200616-May-07 20:52 
AnswerRe: Hi All !(CString Class) Pin
_AnsHUMAN_ 16-May-07 21:28
_AnsHUMAN_ 16-May-07 21:28 
AnswerRe: Hi All !(CString Class) Pin
prasad_som16-May-07 21:32
prasad_som16-May-07 21:32 
AnswerRe: Hi All !(CString Class) Pin
Anurag Gandhi16-May-07 21:35
professionalAnurag Gandhi16-May-07 21:35 
AnswerRe: Hi All !(CString Class) Pin
ajitatif angajetor16-May-07 21:36
ajitatif angajetor16-May-07 21:36 
AnswerRe: Hi All !(CString Class) Pin
garfield18516-May-07 21:38
garfield18516-May-07 21:38 
First of all, I haven´t found a Left member inside the CString class Confused | :confused:

I would do that way:

char sCod[20];
strcpy(sCod,m_cod.GetWindowText());
if (strcmp(sCod[0],"4")==0)
{
//Here write your code
}
else
{
MessageBox("Incorrect number");
}

I hope it may help you!
Good luck from Bilbao! (SPAIN) Big Grin | :-D
GeneralRe: Hi All !(CString Class) Pin
prasad_som16-May-07 21:42
prasad_som16-May-07 21:42 
GeneralRe: Hi All !(CString Class) Pin
garfield18516-May-07 21:48
garfield18516-May-07 21:48 
GeneralRe: Hi All !(CString Class) Pin
Bravoone_200616-May-07 21:45
Bravoone_200616-May-07 21:45 
NewsRe: Hi All !(CString Class) Pin
Bravoone_200616-May-07 21:40
Bravoone_200616-May-07 21:40 
NewsRe: Hi All !(CString Class) Pin
Bravoone_200616-May-07 21:59
Bravoone_200616-May-07 21:59 
GeneralRe: Hi All !(CString Class) Pin
_AnsHUMAN_ 16-May-07 22:22
_AnsHUMAN_ 16-May-07 22:22 
GeneralRe: Hi All !(CString Class) Pin
_AnsHUMAN_ 16-May-07 22:28
_AnsHUMAN_ 16-May-07 22:28 
QuestionRe: Hi Pin
Hamid_RT18-May-07 18:39
Hamid_RT18-May-07 18:39 
AnswerRe: Hi All !(CString Class) Pin
GuyM17-May-07 1:13
GuyM17-May-07 1:13 
QuestionHow to call MFC Dll in C# Project Pin
Anurag Gandhi16-May-07 20:17
professionalAnurag Gandhi16-May-07 20:17 
AnswerRe: How to call MFC Dll in C# Project Pin
Hamid_RT16-May-07 22:31
Hamid_RT16-May-07 22:31 
Questionhow to get the string width?? Pin
sdhtyjnniutnbjnhbghb16-May-07 19:56
sdhtyjnniutnbjnhbghb16-May-07 19:56 
AnswerRe: how to get the string width?? Pin
prasad_som16-May-07 21:38
prasad_som16-May-07 21:38 
AnswerRe: how to get the string width?? Pin
John R. Shaw16-May-07 22:00
John R. Shaw16-May-07 22:00 
GeneralRe: how to get the string width?? Pin
sdhtyjnniutnbjnhbghb16-May-07 23:36
sdhtyjnniutnbjnhbghb16-May-07 23:36 
GeneralRe: how to get the string width?? Pin
John R. Shaw17-May-07 0:13
John R. Shaw17-May-07 0:13 
GeneralRe: how to get the string width?? Pin
sdhtyjnniutnbjnhbghb20-May-07 17:10
sdhtyjnniutnbjnhbghb20-May-07 17:10 

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.