Click here to Skip to main content
15,891,633 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Pragma Pin
Alpha Siera20-Sep-04 3:06
Alpha Siera20-Sep-04 3:06 
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 
Technically, MFC is also using the WIN32 API, but your point is taken nonetheless. I like to say that an apple is a fruit, but a fruit is not an apple.

Try this for starters:

LPCSTR  lpszSource = ":Nick!Stuff@=HostOrSomething.eggormuffin PRIVMSG #channel :hi\r\n",
        lpszPtr;
TCHAR   szStr1[32],
        szStr2[32],
        szStr3[32],
        szStr4[32];
 
lpszPtr = strchr(lpszSource, '!');
lstrcpyn(szStr1, lpszSource, lpszPtr - lpszSource + 1);
lpszSource = lpszPtr + 1;
 
lpszPtr = strchr(lpszSource, ' ');
lpszSource = lpszPtr + 1;
lpszPtr = strchr(lpszSource, ' ');
lstrcpyn(szStr2, lpszSource, lpszPtr - lpszSource + 1);
lpszSource = lpszPtr + 1;
 
lpszPtr = strchr(lpszSource, ' ');
lstrcpyn(szStr3, lpszSource, lpszPtr - lpszSource + 1);
lpszSource = lpszPtr + 2;
 
lpszPtr = strchr(lpszSource, '\r');
lstrcpyn(szStr4, lpszSource, lpszPtr - lpszSource + 1);



"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen


GeneralRe: String stuff Pin
Archer28220-Sep-04 13:16
Archer28220-Sep-04 13:16 
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 

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.