Click here to Skip to main content
15,122,559 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: why c++ is still being used? Pin
Afzaal Ahmad Zeeshan24-Nov-16 2:38
mveAfzaal Ahmad Zeeshan24-Nov-16 2:38 
AnswerRe: why c++ is still being used? Pin
Munchies_Matt29-Mar-17 0:56
MemberMunchies_Matt29-Mar-17 0:56 
AnswerRe: why c++ is still being used? Pin
Rollin Shultz19-Aug-18 5:16
MemberRollin Shultz19-Aug-18 5:16 
QuestionUsing Electric Cloud Accelerator with C++/CLI code Pin
John Schroedl31-Oct-16 10:07
professionalJohn Schroedl31-Oct-16 10:07 
AnswerRe: Using Electric Cloud Accelerator with C++/CLI code Pin
Afzaal Ahmad Zeeshan24-Nov-16 2:45
mveAfzaal Ahmad Zeeshan24-Nov-16 2:45 
QuestionC# Reading XML Pin
Member 1221232410-Oct-16 16:09
MemberMember 1221232410-Oct-16 16:09 
QuestionRe: C# Reading XML Pin
Richard MacCutchan10-Oct-16 22:53
mveRichard MacCutchan10-Oct-16 22:53 
QuestionWorking with date_t and time_t Pin
for study23-Sep-16 23:13
Memberfor study23-Sep-16 23: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"

C++
//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 23:53
mveRichard MacCutchan23-Sep-16 23:53 
GeneralRe: Working with date_t and time_t Pin
for study23-Sep-16 23:59
Memberfor study23-Sep-16 23:59 
AnswerRe: Working with date_t and time_t Pin
Richard MacCutchan24-Sep-16 0:05
mveRichard MacCutchan24-Sep-16 0:05 
GeneralRe: Working with date_t and time_t Pin
for study24-Sep-16 0:33
Memberfor study24-Sep-16 0:33 
GeneralRe: Working with date_t and time_t Pin
Richard MacCutchan24-Sep-16 0:58
mveRichard MacCutchan24-Sep-16 0:58 
GeneralRe: Working with date_t and time_t Pin
for study24-Sep-16 1:11
Memberfor study24-Sep-16 1:11 
GeneralRe: Working with date_t and time_t Pin
Richard MacCutchan24-Sep-16 1:29
mveRichard MacCutchan24-Sep-16 1:29 
GeneralRe: Working with date_t and time_t Pin
for study24-Sep-16 1:37
Memberfor study24-Sep-16 1:37 
GeneralRe: Working with date_t and time_t Pin
Richard MacCutchan24-Sep-16 1:48
mveRichard MacCutchan24-Sep-16 1:48 
GeneralRe: Working with date_t and time_t Pin
for study25-Sep-16 20:18
Memberfor study25-Sep-16 20:18 
QuestionAdding gtkmm lib to visual studio 2015 Pin
Osikwemen13-Sep-16 0:04
MemberOsikwemen13-Sep-16 0:04 
AnswerRe: Adding gtkmm lib to visual studio 2015 Pin
Alexandre Bencz23-Sep-16 9:53
MemberAlexandre Bencz23-Sep-16 9:53 
QuestionMFC CDialogBar drawing issue on High DPI screen Pin
Taiming J5-Sep-16 0:06
MemberTaiming J5-Sep-16 0:06 
NewsMicrosoft wants to hear about issues C++/CLI devs are having Pin
John Schroedl23-Aug-16 9:28
professionalJohn Schroedl23-Aug-16 9:28 
SuggestionRe: Microsoft wants to hear about issues C++/CLI devs are having Pin
Richard Deeming23-Aug-16 9:31
mveRichard Deeming23-Aug-16 9:31 
GeneralRe: Microsoft wants to hear about issues C++/CLI devs are having Pin
John Schroedl23-Aug-16 9:34
professionalJohn Schroedl23-Aug-16 9:34 
GeneralRe: Microsoft wants to hear about issues C++/CLI devs are having Pin
Richard Deeming23-Aug-16 9:50
mveRichard Deeming23-Aug-16 9: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.