Click here to Skip to main content
16,006,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalcircular linked lists Pin
jhorstkamp19-Sep-04 17:42
jhorstkamp19-Sep-04 17:42 
GeneralRe: circular linked lists Pin
Antti Keskinen19-Sep-04 23:28
Antti Keskinen19-Sep-04 23:28 
GeneralString stuff Pin
Timothy Grabrian19-Sep-04 17:02
professionalTimothy Grabrian19-Sep-04 17:02 
GeneralRe: String stuff Pin
Aamir Butt20-Sep-04 0:06
Aamir Butt20-Sep-04 0:06 
GeneralRe: String stuff Pin
David Crow20-Sep-04 6:00
David Crow20-Sep-04 6:00 
GeneralRe: String stuff Pin
Timothy Grabrian20-Sep-04 11:59
professionalTimothy Grabrian20-Sep-04 11:59 
GeneralRe: String stuff Pin
David Crow20-Sep-04 16:52
David Crow20-Sep-04 16:52 
GeneralRe: String stuff Pin
Archer28220-Sep-04 13:16
Archer28220-Sep-04 13:16 
ok, what you need to do is go make a loop to go thorugh each character of the string
im assuming the first character is alwase going to be a ":"
so i would start at position 1 (the second character)

you know the whats between ":" and "!" is the user name (i assume) so make a variable for the user name
if you havent hit a "!" then add that character into the variable for user name,
what i would do is make a an array like

char szMsgInfo[3][512];
szMsgInfo[0] (Username)
szMsgInfo[1] (PRIVMSG)
szMsgInfo[2] (#channel)
szMsgInfo[3] (message)

have a variable to store what element you are on,
if you hit a ":" then you are on 0
if you hit a "!" then you are on 1
when you hit a " " then you are on 2
when you hit another " " then you are on 3
then when you hit another ":" you are on the message

hope that helped some
Generalchanging text color Pin
Jump_Around19-Sep-04 15:19
Jump_Around19-Sep-04 15:19 
GeneralRe: changing text color Pin
Archer28219-Sep-04 16:09
Archer28219-Sep-04 16:09 
GeneralRe: changing text color Pin
Sujan Christo20-Sep-04 1:52
Sujan Christo20-Sep-04 1:52 
Generalmaking your app upgradable Pin
mickelliot19-Sep-04 15:05
mickelliot19-Sep-04 15:05 
GeneralRe: making your app upgradable Pin
Christian Graus19-Sep-04 15:59
protectorChristian Graus19-Sep-04 15:59 
GeneralRe: making your app upgradable Pin
mickelliot19-Sep-04 16:11
mickelliot19-Sep-04 16:11 
GeneralRe: making your app upgradable Pin
mickelliot19-Sep-04 16:13
mickelliot19-Sep-04 16:13 
GeneralRe: making your app upgradable Pin
Christian Graus19-Sep-04 16:15
protectorChristian Graus19-Sep-04 16:15 
GeneralCSocket GetSockName Pin
transfer168919-Sep-04 11:55
transfer168919-Sep-04 11:55 
GeneralCalling my COM server via VBScript Pin
Alexander M.,19-Sep-04 10:12
Alexander M.,19-Sep-04 10:12 
General[edit] Who rated this?[/edit] Re: Calling my COM server via VBScript Pin
Jörgen Sigvardsson19-Sep-04 10:15
Jörgen Sigvardsson19-Sep-04 10:15 
GeneralRe: Calling my COM server via VBScript Pin
Alexander M.,19-Sep-04 10:33
Alexander M.,19-Sep-04 10:33 
GeneralRe: Calling my COM server via VBScript Pin
Michael Dunn19-Sep-04 11:35
sitebuilderMichael Dunn19-Sep-04 11:35 
GeneralKeyboard navigation Pin
Artem Moroz19-Sep-04 8:08
Artem Moroz19-Sep-04 8:08 
Questiongetting a class to output text instead of numbers? Pin
lordmickel19-Sep-04 8:07
lordmickel19-Sep-04 8:07 
QuestionHow can I put my dialog in the system tray? Pin
Larsson19-Sep-04 7:40
Larsson19-Sep-04 7:40 
AnswerRe: How can I put my dialog in the system tray? Pin
Alexander M.,19-Sep-04 8:12
Alexander M.,19-Sep-04 8:12 

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.