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

C / C++ / MFC

 
GeneralRe: Windows Disk Access Pin
Tim Deveaux2-Mar-01 7:32
Tim Deveaux2-Mar-01 7:32 
QuestionCWnd derived activeX controls not detachable?!?!? Pin
astibich1-Mar-01 13:15
astibich1-Mar-01 13:15 
AnswerRe: CWnd derived activeX controls not detachable?!?!? Pin
l a u r e n2-Mar-01 4:13
l a u r e n2-Mar-01 4:13 
GeneralRe: CWnd derived activeX controls not detachable?!?!? Pin
astibich2-Mar-01 7:21
astibich2-Mar-01 7:21 
GeneralRe: CWnd derived activeX controls not detachable?!?!? Pin
l a u r e n2-Mar-01 10:44
l a u r e n2-Mar-01 10:44 
AnswerRe: CWnd derived activeX controls not detachable?!?!? Pin
2-Mar-01 13:01
suss2-Mar-01 13:01 
GeneralChop up a cstring into parts Pin
1-Mar-01 12:28
suss1-Mar-01 12:28 
GeneralRe: Chop up a cstring into parts Pin
Erik Funkenbusch1-Mar-01 12:49
Erik Funkenbusch1-Mar-01 12:49 
Pretty easily, actually.
CString1 s1 = "cat\r\nmouse\r\ndog";
CString sCat, sMouse, sDog;

sCat = s1.Left(3);
sMouse = s1.Mid(5,5);
sDog = s1.Right(3);
Of course this relies on the fact that you know where the texts are within the string. if you want to just seperate them into three strings based on cr/nl:
CString1 s1 = "cat\r\nmouse\r\ndog";
CString s2, s3, s4;

s2 = s1.SpanExcluding("\r\n");
s1 = s1.Right(s1.GetLength() - (s2.GetLength() + 2));  // assumes that there will always be \r\n
s3 = s1.SpanExcluding("\r\n");
s4 = s1.Right(s1.GetLength() - (s3.GetLength() + 2));  // assumes that there will always be \r\n
Again, this assumes many things, but I think you get the idea that there are lots of ways to attack this problem.
GeneralRe: Chop up a cstring into parts Pin
ov1-Mar-01 20:55
ov1-Mar-01 20:55 
GeneralRe: Chop up a cstring into parts Pin
l a u r e n1-Mar-01 23:22
l a u r e n1-Mar-01 23:22 
QuestionChanging Text in Statics and controls at run time ? Pin
Ariel1-Mar-01 10:59
Ariel1-Mar-01 10:59 
AnswerRe: Changing Text in Statics and controls at run time ? Pin
Christian Graus1-Mar-01 11:42
protectorChristian Graus1-Mar-01 11:42 
GeneralOLE DB Consumer Templates Pin
Luis Barreira1-Mar-01 8:42
Luis Barreira1-Mar-01 8:42 
GeneralRe: OLE DB Consumer Templates Pin
1-Mar-01 16:31
suss1-Mar-01 16:31 
GeneralGlobal variable Pin
Vickie1-Mar-01 7:16
Vickie1-Mar-01 7:16 
GeneralRe: Global variable Pin
Chris Losinger1-Mar-01 7:27
professionalChris Losinger1-Mar-01 7:27 
GeneralRe: Global variable Pin
Vickie1-Mar-01 8:44
Vickie1-Mar-01 8:44 
GeneralRe: Global variable Pin
Todd Wilson1-Mar-01 8:57
Todd Wilson1-Mar-01 8:57 
GeneralRe: Global variable Pin
Todd Wilson1-Mar-01 7:29
Todd Wilson1-Mar-01 7:29 
GeneralGetting Text from IE's "Internet Explorer_Server" class windows... Pin
James R. Twine1-Mar-01 5:37
James R. Twine1-Mar-01 5:37 
GeneralRe: Getting Text from IE's Pin
l a u r e n1-Mar-01 9:50
l a u r e n1-Mar-01 9:50 
GeneralRe: Getting Text from IE's Pin
James R. Twine1-Mar-01 11:03
James R. Twine1-Mar-01 11:03 
QuestionHow to program a ftp-server Pin
1-Mar-01 5:20
suss1-Mar-01 5:20 
AnswerRe: How to program a ftp-server Pin
l a u r e n1-Mar-01 9:45
l a u r e n1-Mar-01 9:45 
AnswerRe: How to program a ftp-server Pin
Erik Funkenbusch1-Mar-01 13:03
Erik Funkenbusch1-Mar-01 13:03 

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.