Click here to Skip to main content
15,908,172 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Multithreading Pin
Todd Smith6-Sep-02 18:46
Todd Smith6-Sep-02 18:46 
Generalprocompile question Pin
Year5-Sep-02 17:09
Year5-Sep-02 17:09 
GeneralRe: procompile question Pin
Christian Graus5-Sep-02 17:21
protectorChristian Graus5-Sep-02 17:21 
GeneralAccessing the Internet Pin
Nay205-Sep-02 16:21
Nay205-Sep-02 16:21 
GeneralRe: Accessing the Internet Pin
Jason Henderson5-Sep-02 16:25
Jason Henderson5-Sep-02 16:25 
GeneralCTime and CString Pin
monrobot135-Sep-02 16:02
monrobot135-Sep-02 16:02 
GeneralRe: CTime and CString Pin
Jason Henderson5-Sep-02 16:28
Jason Henderson5-Sep-02 16:28 
GeneralRe: CTime and CString Pin
anju5-Sep-02 18:26
anju5-Sep-02 18:26 
Hi monrobot13
In my project i am using like this,
if you find a better way than this inform to me.
-------------------------------------------------
CTime StrToDate(char * buffer)//char *buffer CString object
{

int dd,mm,yy,H,M,S;
dd=0;mm=0;yy=0;H=0;M=0;S=0;

CString stemp;
stemp.Format("%c%c",buffer[0],buffer[1]);//date
dd=atoi(stemp);
stemp.Format("%c%c",buffer[3],buffer[4]);//month
mm=atoi(stemp);
stemp.Format("%c%c",buffer[6],buffer[7]);//Year
yy=atoi(stemp);
yy=yy+2000;
stemp.Format("%c%c",buffer[9],buffer[10]);//Hour
H=atoi(stemp);
stemp.Format("%c%c",buffer[12],buffer[13]);//Minute
M=atoi(stemp);
stemp.Format("%c%c",buffer[15],buffer[16]);//Seconds
S=atoi(stemp);

CTime time(yy,mm,dd,H,M,S);

return time;
--------------------------------------------------


anju
GeneralImages in CListCtrl report columns Pin
IGx895-Sep-02 15:50
IGx895-Sep-02 15:50 
QuestionHow can I know which computer access the file of my computer? Pin
Member 18556085-Sep-02 13:49
Member 18556085-Sep-02 13:49 
GeneralSending mail ... Pin
Hadi Rezaee5-Sep-02 12:57
Hadi Rezaee5-Sep-02 12:57 
GeneralRe: Sending mail ... Pin
Chris Losinger5-Sep-02 13:14
professionalChris Losinger5-Sep-02 13:14 
GeneralRe: Sending mail ... Pin
Hadi Rezaee5-Sep-02 13:26
Hadi Rezaee5-Sep-02 13:26 
GeneralRe: Sending mail ... Pin
Hadi Rezaee6-Sep-02 8:33
Hadi Rezaee6-Sep-02 8:33 
GeneralRe: Sending mail ... Pin
Chris Losinger6-Sep-02 11:20
professionalChris Losinger6-Sep-02 11:20 
GeneralCSocket new-b question Pin
Anonymous5-Sep-02 12:36
Anonymous5-Sep-02 12:36 
GeneralRe: CSocket new-b question Pin
jparsons5-Sep-02 12:38
jparsons5-Sep-02 12:38 
GeneralRe: CSocket new-b question Pin
anju5-Sep-02 18:45
anju5-Sep-02 18:45 
GeneralRegister DLL in App Pin
Anonymous5-Sep-02 12:05
Anonymous5-Sep-02 12:05 
GeneralRe: Register DLL in App Pin
Joaquín M López Muñoz5-Sep-02 12:20
Joaquín M López Muñoz5-Sep-02 12:20 
GeneralRe: Register DLL in App Pin
Anonymous5-Sep-02 12:29
Anonymous5-Sep-02 12:29 
GeneralRe: Register DLL in App Pin
Joaquín M López Muñoz5-Sep-02 12:41
Joaquín M López Muñoz5-Sep-02 12:41 
GeneralRe: Register DLL in App Pin
Anonymous5-Sep-02 13:24
Anonymous5-Sep-02 13:24 
GeneralCreating Custom Control Pin
MightyThor5-Sep-02 11:15
MightyThor5-Sep-02 11:15 
GeneralRe: Creating Custom Control Pin
Roger Allen6-Sep-02 2:06
Roger Allen6-Sep-02 2:06 

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.