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

Managed C++/CLI

 
GeneralRe: LocationApi.dll having issue while trying to fetch location. Pin
Richard MacCutchan15-Mar-19 0:05
mveRichard MacCutchan15-Mar-19 0:05 
GeneralRe: LocationApi.dll having issue while trying to fetch location. Pin
Anurag__15-Mar-19 0:26
Anurag__15-Mar-19 0:26 
NewsC++/CLI + /std:c++latest is broken in VS 2017 15.9.6 Pin
John Schroedl14-Feb-19 5:22
professionalJohn Schroedl14-Feb-19 5:22 
Questionwhere to include new class in c# , windows forms, visual studio Pin
Member 1412466126-Jan-19 6:50
Member 1412466126-Jan-19 6:50 
AnswerRe: where to include new class in c# , windows forms, visual studio Pin
Richard MacCutchan8-Feb-19 4:03
mveRichard MacCutchan8-Feb-19 4:03 
SuggestionRe: where to include new class in c# , windows forms, visual studio Pin
Richard Deeming8-Feb-19 7:15
mveRichard Deeming8-Feb-19 7:15 
GeneralRe: where to include new class in c# , windows forms, visual studio Pin
Richard MacCutchan8-Feb-19 23:40
mveRichard MacCutchan8-Feb-19 23:40 
QuestionHow to format DATETIME Pin
Member 1412466121-Jan-19 1:56
Member 1412466121-Jan-19 1:56 
I am trying to build some simple examples as part of my learning process.
I have created a form which includes the dateTimePicker and tried several combinations which have failed. The output initially displays time as HH:MM:00 and only dis[plays correct time when I include
...AddHours(0)...
I'd like to format - say
"MMMM dd, yyyy - dddd"

My standard output is
20/02/2019 00:00:00


private: System::Void button3_Click(System::Object^  sender, System::EventArgs^  e) {
	String ^myText = "1&2-END";
	dateTimePicker2->CustomFormat = "MMMM dd, yyyy - dddd";
	dateTimePicker2->Value = DateTime::Now.AddDays(+30).Date;//dateTimePicker2->Value = DateTime::Today;
	myText = myText + "\r\n" + dateTimePicker2->Value;
	dateTimePicker2->Value = DateTime::Now.AddDays(+30).AddHours(0);//dateTimePicker2->Value = DateTime::Today;
	myText = myText + "\r\n" + dateTimePicker2->Value;
	//myText = myText->Format('YYYY-MM-DD');
	myText= myText + "\r\n" + "& 3 -END"; 
	//dateTimePicker2.DateTimePickerFormat -> "MMMM dd, yyyy - dddd";
	//dateTimePicker2.DateTimePickerFormat.Custom;;
	myTB2->Text = myText;
}


I am using Visual Studio 2017, C++/CLi, W10 Professional
Guess I am missing some declaration - I have in .cpp
#include "MyFirstForm.h"
#include <iostream>
#include <fstream>
#include <string>

//#include 
using namespace System;
using namespace System::Windows::Forms;
using namespace System::IO;
[STAThreadAttribute]


Any help appreciated.
Looks like great way to develop FORM & C++ based programs

AnswerRe: How to format DATETIME Pin
Richard MacCutchan21-Jan-19 2:57
mveRichard MacCutchan21-Jan-19 2:57 
GeneralRe: How to format DATETIME Pin
Member 1412466121-Jan-19 3:42
Member 1412466121-Jan-19 3:42 
GeneralRe: How to format DATETIME Pin
Richard MacCutchan21-Jan-19 3:44
mveRichard MacCutchan21-Jan-19 3:44 
GeneralRe: How to format DATETIME Pin
Member 1412466121-Jan-19 4:30
Member 1412466121-Jan-19 4:30 
GeneralRe: How to format DATETIME Pin
Richard MacCutchan21-Jan-19 4:48
mveRichard MacCutchan21-Jan-19 4:48 
GeneralRe: How to format DATETIME Pin
Member 1412466121-Jan-19 4:57
Member 1412466121-Jan-19 4:57 
GeneralRe: How to format DATETIME Pin
Richard MacCutchan21-Jan-19 5:52
mveRichard MacCutchan21-Jan-19 5:52 
GeneralRe: How to format DATETIME Pin
Member 1412466121-Jan-19 7:08
Member 1412466121-Jan-19 7:08 
GeneralRe: How to format DATETIME Pin
Richard MacCutchan21-Jan-19 7:24
mveRichard MacCutchan21-Jan-19 7:24 
Questionserial port, threads, events Pin
jeff rhodes 1240020410-Jan-19 21:30
jeff rhodes 1240020410-Jan-19 21:30 
AnswerRe: serial port, threads, events Pin
Victor Nijegorodov11-Jan-19 4:28
Victor Nijegorodov11-Jan-19 4:28 
GeneralRe: serial port, threads, events Pin
jeff rhodes 1240020411-Jan-19 17:51
jeff rhodes 1240020411-Jan-19 17:51 
GeneralPlease Upvote: C++/CLI: std::move causes std::unique_ptr parameter to be destructed before function call Pin
John Schroedl3-Jan-19 3:13
professionalJohn Schroedl3-Jan-19 3:13 
GeneralRe: Please Upvote: C++/CLI: std::move causes std::unique_ptr parameter to be destructed before function call Pin
Richard MacCutchan3-Jan-19 3:23
mveRichard MacCutchan3-Jan-19 3:23 
GeneralRe: Please Upvote: C++/CLI: std::move causes std::unique_ptr parameter to be destructed before function call Pin
John Schroedl3-Jan-19 3:28
professionalJohn Schroedl3-Jan-19 3:28 
QuestionHow to catch exception caused by third party dll in c++? Pin
Sampath5797-Dec-18 1:22
Sampath5797-Dec-18 1:22 
AnswerRe: How to catch exception caused by third party dll in c++? Pin
Richard MacCutchan7-Dec-18 3:39
mveRichard MacCutchan7-Dec-18 3:39 

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.