Hi Ryan,
Thanks for your reply.
But no, it doesn't help. Because the interfaces that I'm using are existing
interfaces. So I can't spcecify custom marshallers on
them.
I think its best to replace or hook the standard date-marshaller, but haven't
found a way to do that...
/P
----- Original Message -----
From: "Ryan Heath" <[EMAIL PROTECTED]>
To: <ADVANCED-DOTNET@DISCUSS.DEVELOP.COM>
Sent: Friday, November 02, 2007 10:02 AM
Subject: Re: [ADVANCED-DOTNET] Marshalling of COM dates
Hi Peter,
Does this help?
http://msdn2.microsoft.com/en-us/library/system.runtime.interopservices.icustommarshaler(VS.80).aspx
// Ryan
On 11/1/07, Peter van der Weerd <[EMAIL PROTECTED]> wrote:
Hi,
The standard marshaller rounds dates to a whole number of seconds while passing
dates from COM into .Net, loosing a lot of
precision.
Is there a way to replace the standard marshaller?
At the moment I supply the dates as a double, doing the conversion myself, but
I find myself more and more handling with doubles
instead of DateTimes... I don't like the solution at Any ideas?
Regards,
Peter
===================================
This list is hosted by DevelopMentor(R) http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com