Click here to Skip to main content
15,881,803 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: why boost define this struct ? Pin
Mohibur Rashid30-Mar-12 22:01
professionalMohibur Rashid30-Mar-12 22:01 
GeneralRe: why boost define this struct ? Pin
Code-o-mat30-Mar-12 22:24
Code-o-mat30-Mar-12 22:24 
AnswerRe: why boost define this struct ? Pin
Code-o-mat30-Mar-12 22:22
Code-o-mat30-Mar-12 22:22 
GeneralRe: why boost define this struct ? Pin
Nelek1-Apr-12 8:57
protectorNelek1-Apr-12 8:57 
GeneralRe: why boost define this struct ? Pin
Code-o-mat1-Apr-12 10:22
Code-o-mat1-Apr-12 10:22 
GeneralRe: why boost define this struct ? Pin
yu-jian2-Apr-12 6:40
yu-jian2-Apr-12 6:40 
GeneralRe: why boost define this struct ? Pin
Code-o-mat2-Apr-12 6:44
Code-o-mat2-Apr-12 6:44 
QuestionDateTime::ParseExact Pin
Mike Certini30-Mar-12 11:38
Mike Certini30-Mar-12 11:38 
CSS
Can someone help me with the getting my ParseExact working? Though following guidance from MSDN site I am still incorrect with my syntax. The error I am receiving is the following:
Error C2665: 'System::DateTime::ParseExact' : none of the 3 overloads could convert all the argument types.
C2665- Error Description: 'function' : none of the number1 overloads can convert parameter number2 from type 'type'


C++
#include <stdio.h>
#include <vcclr.h>
#include <windows.h>
#include <string>

#using <mscorlib.dll>

using namespace std;
using namespace System;
using namespace System::Globalization;
using namespace System::Collections;

void main()
	{
	//System::Collections::IEnumerator^ en = CultureInfo::GetCultures(CultureTypes::SpecificCultures)->GetEnumerator();
	//System::Globalization::CultureInfo^ MyCI = gcnew CultureInfo("en-US",false);
	//System::Globalization::DateTimeFormatInfo^ myDTFI = MyCI->DateTimeFormat;				
		
	std::string dateString = "MAY_03_2010";
	std::string format = "MMM_dd_yyyy";
	//	DateTime dt = DateTime::Now;	
	DateTime dateTime = DateTime::ParseExact(dateString,format,nullptr);
	//System::DateTime dateTimevalue = System::DateTime::ParseExact(dateString,"MMMddyyyy",CultureInfo.InvariantCulture); 

	system("pause");
}

QuestionRe: DateTime::ParseExact Pin
Code-o-mat30-Mar-12 23:17
Code-o-mat30-Mar-12 23:17 
AnswerRe: DateTime::ParseExact Pin
Richard MacCutchan30-Mar-12 23:23
mveRichard MacCutchan30-Mar-12 23:23 
SuggestionRe: DateTime::ParseExact Pin
David Crow31-Mar-12 4:04
David Crow31-Mar-12 4:04 
QuestionDisabling USB ports Pin
softwaremonkey30-Mar-12 6:39
softwaremonkey30-Mar-12 6:39 
AnswerRe: Disabling USB ports Pin
David Crow30-Mar-12 7:02
David Crow30-Mar-12 7:02 
GeneralRe: Disabling USB ports Pin
softwaremonkey30-Mar-12 8:07
softwaremonkey30-Mar-12 8:07 
GeneralRe: Disabling USB ports Pin
David Crow30-Mar-12 9:24
David Crow30-Mar-12 9:24 
QuestionPassing std:: or boost::shared_ptr as a reference to a function Pin
AlexZakharenko29-Mar-12 23:58
AlexZakharenko29-Mar-12 23:58 
QuestionHermite Curve Pin
002comp29-Mar-12 20:25
002comp29-Mar-12 20:25 
AnswerRe: Hermite Curve Pin
Richard MacCutchan29-Mar-12 22:25
mveRichard MacCutchan29-Mar-12 22:25 
GeneralRe: Hermite Curve Pin
002comp29-Mar-12 22:37
002comp29-Mar-12 22:37 
GeneralRe: Hermite Curve Pin
Richard MacCutchan29-Mar-12 23:16
mveRichard MacCutchan29-Mar-12 23:16 
GeneralRe: Hermite Curve Pin
002comp30-Mar-12 1:28
002comp30-Mar-12 1:28 
QuestionDirectShow restart SetOneShot(true) Pin
Stefan_L_0129-Mar-12 9:21
Stefan_L_0129-Mar-12 9:21 
QuestionChart Background Pin
dryleh8729-Mar-12 4:02
professionaldryleh8729-Mar-12 4:02 
AnswerRe: Chart Background Pin
_Flaviu29-Mar-12 5:11
_Flaviu29-Mar-12 5:11 
GeneralRe: Chart Background Pin
dryleh8729-Mar-12 21:30
professionaldryleh8729-Mar-12 21:30 

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.