Click here to Skip to main content
15,911,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUse C++ written class in VB Pin
Logan from Singapore22-Feb-05 23:33
Logan from Singapore22-Feb-05 23:33 
GeneralRe: Use C++ written class in VB Pin
ThatsAlok22-Feb-05 23:52
ThatsAlok22-Feb-05 23:52 
Generalappend CString [] Pin
kittunair22-Feb-05 23:28
kittunair22-Feb-05 23:28 
GeneralRe: append CString [] Pin
ThatsAlok22-Feb-05 23:50
ThatsAlok22-Feb-05 23:50 
GeneralRe: append CString [] Pin
David Nash23-Feb-05 7:03
David Nash23-Feb-05 7:03 
GeneralDate Validation Pin
Renjith Ramachandran22-Feb-05 23:16
Renjith Ramachandran22-Feb-05 23:16 
GeneralRe: Date Validation Pin
David Crow23-Feb-05 2:40
David Crow23-Feb-05 2:40 
GeneralRe: Date Validation Pin
James R. Twine23-Feb-05 2:51
James R. Twine23-Feb-05 2:51 
   Doing it "old school", you can use a call to sscanf(...), which was designed for scanning a formatted string.  For example, if you would build a string using printf(...) with a format string of "%02d/%02d/%02d", you would scan that string back with that same format string, and check the return value of sscanf(...) to make sure you scanned out three tokens/values.

   That would help you verify the format, but not the data... For example, scanning "99/88/77" would be successful, even though it is an invalid date.

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites

GeneralRe: Date Validation Pin
anand_study17-May-05 19:47
anand_study17-May-05 19:47 
Generalmalloc fails Pin
Jay Carter22-Feb-05 23:00
Jay Carter22-Feb-05 23:00 
GeneralRe: malloc fails Pin
$8823-Feb-05 1:33
$8823-Feb-05 1:33 
GeneralRe: malloc fails Pin
Mike Dimmick23-Feb-05 2:30
Mike Dimmick23-Feb-05 2:30 
GeneralRe: malloc fails Pin
Jay Carter23-Feb-05 3:30
Jay Carter23-Feb-05 3:30 
GeneralRe: malloc fails Pin
Neville Franks23-Feb-05 9:02
Neville Franks23-Feb-05 9:02 
QuestionTo set modified time of a file as current time? Pin
Monisankar22-Feb-05 22:50
Monisankar22-Feb-05 22:50 
AnswerRe: To set modified time of a file as current time? Pin
Monisankar22-Feb-05 23:36
Monisankar22-Feb-05 23:36 
GeneralCEdit Line Length Limit Problem Pin
fangzj22-Feb-05 22:17
fangzj22-Feb-05 22:17 
GeneralRe: CEdit Line Length Limit Problem Pin
David Crow23-Feb-05 2:38
David Crow23-Feb-05 2:38 
GeneralRe: CEdit Line Length Limit Problem Pin
fangzj23-Feb-05 3:43
fangzj23-Feb-05 3:43 
GeneralRe: CEdit Line Length Limit Problem Pin
David Crow23-Feb-05 5:57
David Crow23-Feb-05 5:57 
GeneralRe: CEdit Line Length Limit Problem Pin
fangzj23-Feb-05 13:07
fangzj23-Feb-05 13:07 
GeneralRe: CEdit Line Length Limit Problem Pin
David Crow24-Feb-05 3:02
David Crow24-Feb-05 3:02 
GeneralRe: CEdit Line Length Limit Problem Pin
fangzj24-Feb-05 13:22
fangzj24-Feb-05 13:22 
GeneralRe: CEdit Line Length Limit Problem Pin
David Crow24-Feb-05 16:15
David Crow24-Feb-05 16:15 
GeneralGET RESOURCE ID'S Pin
kedar.dave22-Feb-05 22:15
kedar.dave22-Feb-05 22:15 

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.