Click here to Skip to main content
15,902,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSolution Pin
PaloukiLook28-Jun-05 2:28
PaloukiLook28-Jun-05 2:28 
GeneralRe: Solution Pin
ThatsAlok28-Jun-05 2:31
ThatsAlok28-Jun-05 2:31 
GeneralStoring Information On Main Window and Modeless Dialogs Pin
jerry1211a24-Jun-05 5:34
jerry1211a24-Jun-05 5:34 
GeneralRe: Storing Information On Main Window and Modeless Dialogs Pin
Jack Puppy24-Jun-05 6:46
Jack Puppy24-Jun-05 6:46 
GeneralCopy part Of a String into a new string Pin
ana_bahy24-Jun-05 5:30
ana_bahy24-Jun-05 5:30 
GeneralRe: Copy part Of a String into a new string Pin
Chris Losinger24-Jun-05 5:40
professionalChris Losinger24-Jun-05 5:40 
GeneralRe: Copy part Of a String into a new string Pin
ana_bahy24-Jun-05 5:55
ana_bahy24-Jun-05 5:55 
GeneralRe: Copy part Of a String into a new string Pin
Jack Puppy24-Jun-05 6:58
Jack Puppy24-Jun-05 6:58 
If you know the date will always be 10 characters, use the substr function.

<br />
std::string dateTime = "2000/10/31 12:00";<br />
std::string dateOnly = dateTime.substr(0, 10);<br />


substr(m, n) will return n characters starting at the m zero-based character.

if you're using MFC, use CString::Left. (or Mid)



Suspicious | :suss: Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
GeneralXP-Style selection-rectangle Pin
Luy24-Jun-05 4:20
Luy24-Jun-05 4:20 
GeneralRe: XP-Style selection-rectangle Pin
Blake Miller24-Jun-05 8:17
Blake Miller24-Jun-05 8:17 
GeneralRe: XP-Style selection-rectangle Pin
Luy24-Jun-05 8:46
Luy24-Jun-05 8:46 
GeneralRe: XP-Style selection-rectangle Pin
Blake Miller24-Jun-05 10:19
Blake Miller24-Jun-05 10:19 
GeneralRe: XP-Style selection-rectangle Pin
Luy25-Jun-05 1:56
Luy25-Jun-05 1:56 
GeneralRe: XP-Style selection-rectangle Pin
Blake Miller27-Jun-05 4:17
Blake Miller27-Jun-05 4:17 
GeneralRe: XP-Style selection-rectangle Pin
Luy27-Jun-05 6:15
Luy27-Jun-05 6:15 
GeneralProblem with mixed code of C and C++ Pin
prgr24-Jun-05 3:41
prgr24-Jun-05 3:41 
GeneralRe: Problem with mixed code of C and C++ Pin
Chris Losinger24-Jun-05 5:10
professionalChris Losinger24-Jun-05 5:10 
GeneralRe: Problem with mixed code of C and C++ Pin
Jose Lamas Rios24-Jun-05 9:04
Jose Lamas Rios24-Jun-05 9:04 
GeneralData Scaling Pin
sweep12324-Jun-05 3:36
sweep12324-Jun-05 3:36 
GeneralRe: Data Scaling Pin
Budric B.24-Jun-05 5:35
Budric B.24-Jun-05 5:35 
GeneralRe: Data Scaling Pin
Grahamfff24-Jun-05 9:11
Grahamfff24-Jun-05 9:11 
GeneralRe: Data Scaling Pin
liquid_24-Jun-05 9:12
liquid_24-Jun-05 9:12 
GeneralRe: Data Scaling Pin
Grahamfff25-Jun-05 0:03
Grahamfff25-Jun-05 0:03 
GeneralRe: Data Scaling Pin
liquid_26-Jun-05 9:55
liquid_26-Jun-05 9:55 
Generalcasync socket Pin
_tasleem24-Jun-05 3:25
_tasleem24-Jun-05 3:25 

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.