Click here to Skip to main content
14,329,837 members

Managed C++/CLI

 
AnswerRe: why c++ is still being used? Pin
Afzaal Ahmad Zeeshan24-Nov-16 1:38
mveAfzaal Ahmad Zeeshan24-Nov-16 1:38 
AnswerRe: why c++ is still being used? Pin
Munchies_Matt28-Mar-17 23:56
memberMunchies_Matt28-Mar-17 23:56 
AnswerRe: why c++ is still being used? Pin
Rollin Shultz19-Aug-18 4:16
memberRollin Shultz19-Aug-18 4:16 
QuestionUsing Electric Cloud Accelerator with C++/CLI code Pin
John Schroedl31-Oct-16 9:07
professionalJohn Schroedl31-Oct-16 9:07 
AnswerRe: Using Electric Cloud Accelerator with C++/CLI code Pin
Afzaal Ahmad Zeeshan24-Nov-16 1:45
mveAfzaal Ahmad Zeeshan24-Nov-16 1:45 
QuestionC# Reading XML Pin
Member 1221232410-Oct-16 15:09
memberMember 1221232410-Oct-16 15:09 
QuestionRe: C# Reading XML Pin
Richard MacCutchan10-Oct-16 21:53
protectorRichard MacCutchan10-Oct-16 21:53 
QuestionWorking with date_t and time_t Pin
for study23-Sep-16 22:13
memberfor study23-Sep-16 22:13 
I am receiving a date structure in "24-9-2016 13:30" format. Now I want to convert time value to specific timezone, I am doing calculations and have number of hours to add or substract.

So I don't know: how can I initialize tm struct with the date value I have? how to add or substract hours in tc struct variable to get required date?

my intention is
Date received "24-9-2016 13:30" and 5 Hours to add so final Date: "24-9-2016 18:30"

//Temporarily init time to local
time_t tempTime
time(&tempTime);
struct tm *initStruct = localtime(&tempTime);//initialize it with local time
//now modify it to user defined date
initStruct ->tm_year = 2016;
initStruct->tm_mon = 9;
initStruct->tm_hour = 13;
.
.
.
 //Not sure how can I subtract or add hours in this struc to get desired date value


please provide inputs.

modified 24-Sep-16 4:55am.

AnswerRe: Working with date_t and time_t Pin
Richard MacCutchan23-Sep-16 22:53
protectorRichard MacCutchan23-Sep-16 22:53 
GeneralRe: Working with date_t and time_t Pin
for study23-Sep-16 22:59
memberfor study23-Sep-16 22:59 
AnswerRe: Working with date_t and time_t Pin
Richard MacCutchan23-Sep-16 23:05
protectorRichard MacCutchan23-Sep-16 23:05 
GeneralRe: Working with date_t and time_t Pin
for study23-Sep-16 23:33
memberfor study23-Sep-16 23:33 
GeneralRe: Working with date_t and time_t Pin
Richard MacCutchan23-Sep-16 23:58
protectorRichard MacCutchan23-Sep-16 23:58 
GeneralRe: Working with date_t and time_t Pin
for study24-Sep-16 0:11
memberfor study24-Sep-16 0:11 
GeneralRe: Working with date_t and time_t Pin
Richard MacCutchan24-Sep-16 0:29
protectorRichard MacCutchan24-Sep-16 0:29 
GeneralRe: Working with date_t and time_t Pin
for study24-Sep-16 0:37
memberfor study24-Sep-16 0:37 
GeneralRe: Working with date_t and time_t Pin
Richard MacCutchan24-Sep-16 0:48
protectorRichard MacCutchan24-Sep-16 0:48 
GeneralRe: Working with date_t and time_t Pin
for study25-Sep-16 19:18
memberfor study25-Sep-16 19:18 
QuestionAdding gtkmm lib to visual studio 2015 Pin
Osikwemen12-Sep-16 23:04
memberOsikwemen12-Sep-16 23:04 
AnswerRe: Adding gtkmm lib to visual studio 2015 Pin
Alexandre Bencz23-Sep-16 8:53
memberAlexandre Bencz23-Sep-16 8:53 
QuestionMFC CDialogBar drawing issue on High DPI screen Pin
Taiming J4-Sep-16 23:06
memberTaiming J4-Sep-16 23:06 
NewsMicrosoft wants to hear about issues C++/CLI devs are having Pin
John Schroedl23-Aug-16 8:28
professionalJohn Schroedl23-Aug-16 8:28 
SuggestionRe: Microsoft wants to hear about issues C++/CLI devs are having Pin
Richard Deeming23-Aug-16 8:31
mveRichard Deeming23-Aug-16 8:31 
GeneralRe: Microsoft wants to hear about issues C++/CLI devs are having Pin
John Schroedl23-Aug-16 8:34
professionalJohn Schroedl23-Aug-16 8:34 
GeneralRe: Microsoft wants to hear about issues C++/CLI devs are having Pin
Richard Deeming23-Aug-16 8:50
mveRichard Deeming23-Aug-16 8:50 

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.