Re: Convert (managed) FILETIME to (unmanaged) FILETIME
- From: Mattias Sjögren <mattias.dont.want.spam@xxxxxxxx>
- Date: Fri, 05 Jan 2007 21:25:27 +0100
That simply moves my dilemna inside the wrapper, which _is_
preferrable, but ultimately I still have to convert from
System::Runtime::InteropServices::FILETIME * to _FILETIME*. (since the
function ultimately being called takes a _FILETIME pointer.)
Right, but it's usually easier to handle it on the C++ side with
type-unsafe casts and memcpys.
In this case, however, since FILETIME is such a trivial struct, I
would simply declare a temporary (Win32) FILETIME variable, fill that
with the values from the managed struct (member by member) and pass it
on to the native code.
Mattias
--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
.
- References:
- Convert (managed) FILETIME to (unmanaged) FILETIME
- From: rob . zumwalt
- Re: Convert (managed) FILETIME to (unmanaged) FILETIME
- From: Mattias Sjögren
- Re: Convert (managed) FILETIME to (unmanaged) FILETIME
- From: rob . zumwalt
- Convert (managed) FILETIME to (unmanaged) FILETIME
- Prev by Date: ClickOnce issue - a file cannot be found
- Next by Date: MHT/MSHTML displaying in the WebBrowser
- Previous by thread: Re: Convert (managed) FILETIME to (unmanaged) FILETIME
- Next by thread: Re: Convert (managed) FILETIME to (unmanaged) FILETIME
- Index(es):
Relevant Pages
|