Click here to Skip to main content
14,830,510 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: why c++ is still being used? Pin
Afzaal Ahmad Zeeshan24-Nov-16 1:27
mveAfzaal Ahmad Zeeshan24-Nov-16 1:27 
GeneralRe: why c++ is still being used? Pin
Eddy Vluggen24-Nov-16 1:51
professionalEddy Vluggen24-Nov-16 1:51 
GeneralRe: why c++ is still being used? Pin
Afzaal Ahmad Zeeshan24-Nov-16 2:13
mveAfzaal Ahmad Zeeshan24-Nov-16 2:13 
GeneralRe: why c++ is still being used? Pin
Eddy Vluggen24-Nov-16 2:35
professionalEddy Vluggen24-Nov-16 2:35 
GeneralRe: why c++ is still being used? Pin
Afzaal Ahmad Zeeshan24-Nov-16 2:36
mveAfzaal Ahmad Zeeshan24-Nov-16 2:36 
GeneralRe: why c++ is still being used? Pin
Munchies_Matt28-Mar-17 23:31
MemberMunchies_Matt28-Mar-17 23:31 
GeneralRe: why c++ is still being used? Pin
Afzaal Ahmad Zeeshan29-Mar-17 5:32
mveAfzaal Ahmad Zeeshan29-Mar-17 5:32 
GeneralRe: why c++ is still being used? Pin
Munchies_Matt29-Mar-17 21:13
MemberMunchies_Matt29-Mar-17 21:13 
GeneralRe: why c++ is still being used? Pin
Richard Deeming24-Nov-16 1:58
mveRichard Deeming24-Nov-16 1:58 
GeneralRe: why c++ is still being used? Pin
Eddy Vluggen24-Nov-16 2:05
professionalEddy Vluggen24-Nov-16 2:05 
GeneralRe: why c++ is still being used? Pin
Munchies_Matt28-Mar-17 23:33
MemberMunchies_Matt28-Mar-17 23:33 
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
mveRichard 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 
AnswerRe: Working with date_t and time_t Pin
Richard MacCutchan23-Sep-16 22:53
mveRichard 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
mveRichard 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
mveRichard 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 
ok, so here is what I did now-
//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;
//completed it...

int hoursToAdd = 4.5;

initStruct->tm_hour = initStruct->tm_hour + hoursToAdd;

time_t myTime = mktime(initStruct);//this return -1

printf( "%s", ctime( &myTime));//this prints null.. 


any idea whats going wrong here?

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.