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

Managed C++/CLI

 
QuestionC++ code to access .NET component. Pin
Sitaram Sukumar22-Jul-08 1:33
Sitaram Sukumar22-Jul-08 1:33 
AnswerRe: C++ code to access .NET component. Pin
Mark Salsbery22-Jul-08 4:28
Mark Salsbery22-Jul-08 4:28 
QuestionDirectory:: move Pin
VCsamir21-Jul-08 21:48
VCsamir21-Jul-08 21:48 
AnswerRe: Directory:: move Pin
Mark Salsbery22-Jul-08 4:39
Mark Salsbery22-Jul-08 4:39 
GeneralRe: Directory:: move Pin
VCsamir22-Jul-08 19:20
VCsamir22-Jul-08 19:20 
GeneralRe: Directory:: move Pin
Mark Salsbery23-Jul-08 6:10
Mark Salsbery23-Jul-08 6:10 
QuestionExtending Managed, Sealed Classes in C++/CLI Pin
Skippums21-Jul-08 8:28
Skippums21-Jul-08 8:28 
AnswerRe: Extending Managed, Sealed Classes in C++/CLI Pin
Mark Salsbery21-Jul-08 10:20
Mark Salsbery21-Jul-08 10:20 
You could wrap a System::DateTime in another class.

Here's an example of a ref class wrapper:
public ref class MyDateTime
{
	System::DateTime dateTime;

public:

	static operator System::DateTime(MyDateTime ^val)
	{
		return val->dateTime;
	}

	MyDateTime()
	{
		dateTime = System::DateTime::UtcNow;
	}

	MyDateTime(System::DateTime datetime)
	{
		dateTime = datetime;
	}

	void Foo()
	{
		// do something fooish
	}
};


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

QuestionRe: Extending Managed, Sealed Classes in C++/CLI Pin
Skippums22-Jul-08 3:32
Skippums22-Jul-08 3:32 
AnswerRe: Extending Managed, Sealed Classes in C++/CLI Pin
Mark Salsbery22-Jul-08 4:29
Mark Salsbery22-Jul-08 4:29 
AnswerRe: Extending Managed, Sealed Classes in C++/CLI Pin
Luc Pattyn22-Jul-08 4:30
sitebuilderLuc Pattyn22-Jul-08 4:30 
QuestionMultiple forms calling same form object Pin
Xaria20-Jul-08 15:44
Xaria20-Jul-08 15:44 
QuestionWindows Service (C++/CLI) and MFC Pin
xuesyuan17-Jul-08 10:51
xuesyuan17-Jul-08 10:51 
AnswerRe: Windows Service (C++/CLI) and MFC Pin
Mark Salsbery17-Jul-08 11:08
Mark Salsbery17-Jul-08 11:08 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
xuesyuan17-Jul-08 12:01
xuesyuan17-Jul-08 12:01 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
Mark Salsbery17-Jul-08 12:07
Mark Salsbery17-Jul-08 12:07 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
xuesyuan17-Jul-08 12:50
xuesyuan17-Jul-08 12:50 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
xuesyuan17-Jul-08 12:20
xuesyuan17-Jul-08 12:20 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
launchck22-Jul-08 18:24
launchck22-Jul-08 18:24 
AnswerRe: Windows Service (C++/CLI) and MFC Pin
led mike17-Jul-08 12:11
led mike17-Jul-08 12:11 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
xuesyuan17-Jul-08 12:44
xuesyuan17-Jul-08 12:44 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
led mike17-Jul-08 18:01
led mike17-Jul-08 18:01 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
xuesyuan17-Jul-08 23:41
xuesyuan17-Jul-08 23:41 
GeneralRe: Windows Service (C++/CLI) and MFC Pin
Mark Salsbery18-Jul-08 5:46
Mark Salsbery18-Jul-08 5:46 
QuestionColumn width change in List View control Pin
Xaria16-Jul-08 21:00
Xaria16-Jul-08 21:00 

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.