Click here to Skip to main content
16,011,711 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Process's CPU usage Pin
BlackSmith9-Jan-02 8:43
BlackSmith9-Jan-02 8:43 
GeneralRe: Process's CPU usage Pin
Joaquín M López Muñoz9-Jan-02 13:17
Joaquín M López Muñoz9-Jan-02 13:17 
GeneralRe: Process's CPU usage Pin
Mustafa Demirhan9-Jan-02 12:14
Mustafa Demirhan9-Jan-02 12:14 
GeneralRe: Process's CPU usage Pin
Mustafa Demirhan9-Jan-02 12:16
Mustafa Demirhan9-Jan-02 12:16 
GeneralAppearing/Disappearing Asterisk in Title Bar Pin
Marc Tompkins9-Jan-02 7:33
Marc Tompkins9-Jan-02 7:33 
GeneralRe: Appearing/Disappearing Asterisk in Title Bar Pin
Carlos Antollini9-Jan-02 7:47
Carlos Antollini9-Jan-02 7:47 
GeneralRe: Appearing/Disappearing Asterisk in Title Bar Pin
Joaquín M López Muñoz9-Jan-02 7:57
Joaquín M López Muñoz9-Jan-02 7:57 
Questionhow to see if one list item is also in a second list Pin
Kuniva9-Jan-02 6:47
Kuniva9-Jan-02 6:47 
Uh, i've tried a few dozen times to write a function that sees if a certain item of a list is also in another list but it just wouldn't work. And there's also a second difficulty, but i'll explain by giving the information needed:

First of all, its not really a list, but its several strings i can get after eachother. I have to parse a line of text wich uses '#' as a seperator like this:
cookoo#woowoo#blabla#weewee

this is the string(mystring) and i parse it with AfxExtractSubString(...) like this:


int index=0;
while(AfxExtractSubString(Item, LPCTSTR(mystring), index++, '#')
{
if(Item!="")
// Item is a good string so...
}
}


This is the same way for the two lists/strings only that the second string/list contains less or as much substrings as the first string/list and the strings the second string/list contains are always in the first one. BUT! it is possible that certain string(s) in the second one have '[' in front of it and ']' behind like this:
weewee#[woowoo]#gaga#blabla

i need to see this and make a difference between strings that have [] and strings that dont.
So the main goal is to see if any items from the first string/list are in the second one and if they have [] or not.
Can anyone help me with this as my brain seems to lack stamina for this.

Kuniva
--------------------------------------------
God gave man a penis and a brain but not enough blood to make both of 'em work at the same time.
AnswerRe: how to see if one list item is also in a second list Pin
Bill Wilson9-Jan-02 9:48
Bill Wilson9-Jan-02 9:48 
Generalip posting Pin
Nnamdi Onyeyiri9-Jan-02 6:06
Nnamdi Onyeyiri9-Jan-02 6:06 
GeneralRe: ip posting Pin
James R. Twine9-Jan-02 6:22
James R. Twine9-Jan-02 6:22 
GeneralRe: ip posting Pin
Nish Nishant9-Jan-02 6:47
sitebuilderNish Nishant9-Jan-02 6:47 
GeneralRe: ip posting Pin
James R. Twine9-Jan-02 12:50
James R. Twine9-Jan-02 12:50 
GeneralOutlook Style Address Control Pin
James R. Twine9-Jan-02 5:57
James R. Twine9-Jan-02 5:57 
GeneralRe: Outlook Style Address Control Pin
Bill Wilson9-Jan-02 9:52
Bill Wilson9-Jan-02 9:52 
GeneralRe: Outlook Style Address Control Pin
James R. Twine10-Jan-02 8:24
James R. Twine10-Jan-02 8:24 
GeneralProblem disabling Controls in Win 2k Pin
Semlo9-Jan-02 5:51
Semlo9-Jan-02 5:51 
GeneralRe: Problem disabling Controls in Win 2k Pin
Nish Nishant9-Jan-02 6:49
sitebuilderNish Nishant9-Jan-02 6:49 
GeneralRe: Problem disabling Controls in Win 2k Pin
Semlo10-Jan-02 2:06
Semlo10-Jan-02 2:06 
GeneralProblem with registring server Pin
9-Jan-02 5:49
suss9-Jan-02 5:49 
GeneralRe: Problem with registring server Pin
James R. Twine9-Jan-02 6:05
James R. Twine9-Jan-02 6:05 
GeneralRe: Problem with registring server Pin
9-Jan-02 22:28
suss9-Jan-02 22:28 
GeneralRe: Problem with registring server Pin
James R. Twine10-Jan-02 5:06
James R. Twine10-Jan-02 5:06 
GeneralWith a little help from my friends Pin
Joaquín M López Muñoz9-Jan-02 5:17
Joaquín M López Muñoz9-Jan-02 5:17 
GeneralStretchBlt question Pin
jafrazee9-Jan-02 5:05
jafrazee9-Jan-02 5:05 

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.