Click here to Skip to main content
15,881,172 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Arithmetic Encoding Pin
shiraztk17-Oct-04 23:16
shiraztk17-Oct-04 23:16 
GeneralTC++PL By Bjarne Pin
Anonymous16-Oct-04 18:37
Anonymous16-Oct-04 18:37 
GeneralRe: TC++PL By Bjarne Pin
morten4117-Oct-04 6:28
morten4117-Oct-04 6:28 
Generalgetting colors in bitmaps... Pin
the_augy16-Oct-04 17:19
the_augy16-Oct-04 17:19 
GeneralRe: getting colors in bitmaps... Pin
Azghar Hussain16-Oct-04 21:42
professionalAzghar Hussain16-Oct-04 21:42 
GeneralRe: getting colors in bitmaps... Pin
Christian Graus17-Oct-04 10:52
protectorChristian Graus17-Oct-04 10:52 
Generalcrossword puzzle alogrithm Pin
Mohsen Saad16-Oct-04 13:42
Mohsen Saad16-Oct-04 13:42 
Generalvc++ string Find problem Pin
koo916-Oct-04 11:20
koo916-Oct-04 11:20 
hi all

I got the text from the popupmenu item using GetMenuString like so:

TCHAR itemText[MAX_PATH] = {0};
GetMenuString(m_hList,i,itemText,MAX_PATH,MF_BYPOSITION);

then i try to find if certain sequence is in the itemText like so:

TCHAR strTOSearch[2]="(";

if(_tcsstr(itemText,strToSearch)!=NULL)
{
....
}

now if the strToSearch does not contain any white space, it works fine, but then strToSearch[4]="h h";

then it won't find the string even though itemText does contain "h h",

what am I missing?

thx

koo9

GeneralRe: vc++ string Find problem Pin
ryuki16-Oct-04 12:11
ryuki16-Oct-04 12:11 
GeneralRe: vc++ string Find problem Pin
koo916-Oct-04 13:26
koo916-Oct-04 13:26 
GeneralRe: vc++ string Find problem Pin
ryuki16-Oct-04 21:10
ryuki16-Oct-04 21:10 
GeneralRe: vc++ string Find problem Pin
koo917-Oct-04 6:43
koo917-Oct-04 6:43 
Generalmemory utilization and the minimize box Pin
Marc Clifton16-Oct-04 7:36
mvaMarc Clifton16-Oct-04 7:36 
GeneralRe: memory utilization and the minimize box Pin
PJ Arends16-Oct-04 7:57
professionalPJ Arends16-Oct-04 7:57 
GeneralRe: memory utilization and the minimize box Pin
Marc Clifton16-Oct-04 9:30
mvaMarc Clifton16-Oct-04 9:30 
GeneralRe: memory utilization and the minimize box Pin
Graham Bradshaw16-Oct-04 14:43
Graham Bradshaw16-Oct-04 14:43 
Generalinserting characters in a char* Pin
Anonymous16-Oct-04 5:48
Anonymous16-Oct-04 5:48 
GeneralRe: inserting characters in a char* Pin
toxcct16-Oct-04 6:56
toxcct16-Oct-04 6:56 
GeneralRe: inserting characters in a char* Pin
lino_i16-Oct-04 15:26
lino_i16-Oct-04 15:26 
GeneralRe: inserting characters in a char* Pin
Maximilien16-Oct-04 15:42
Maximilien16-Oct-04 15:42 
GeneralRe: inserting characters in a char* Pin
lino_i16-Oct-04 15:51
lino_i16-Oct-04 15:51 
GeneralRe: inserting characters in a char* Pin
Maximilien17-Oct-04 1:48
Maximilien17-Oct-04 1:48 
GeneralRe: inserting characters in a char* Pin
toxcct17-Oct-04 5:29
toxcct17-Oct-04 5:29 
GeneralRe: inserting characters in a char* Pin
lino_i17-Oct-04 5:43
lino_i17-Oct-04 5:43 
GeneralRe: inserting characters in a char* Pin
toxcct17-Oct-04 8:35
toxcct17-Oct-04 8:35 

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.