# Friday, November 30, 2007

Would you like to try writing a marshal_as<> specialization? They're super simple, after all. Here's a list of some that we're sure to need:

Array Conversions

FROM TYPE TO TYPE
array<String^>^ std::vector<std::string>
std::vector<std::string>  array<String^>^
array<String^>^ std::vector<std::wstring>
std::vector<std::wstring>  array<String^>^
array<String^>^ CArray<ATL::CStringT<char>>
CArray<ATL::CStringT<char>> array<String^>^
array<String^>^ CArray<ATL::CStringT<wchar_t>>
CArray<ATL::CStringT<wchar_t>> array<String^>^
array<String^>^ CSimpleArray<ATL::CStringT<char>>
CSimpleArray<ATL::CStringT<char>> array<String^>^
array<String^>^ CSimpleArray<ATL::CStringT<wchar_t>>
CSimpleArray<ATL::CStringT<wchar_t>> array<String^>^
array<String^>^ CSimpleArray<CComBSTR>
CSimpleArray<CComBSTR> array<String^>^
array<String^>^ CArray<CComBSTR>
CArray<CComBSTR> array<String^>^
array<T>^ std::vector<T>
std::vector<T> array<T>^
array<T>^ CComSafeArray<T,U>
CComSafeArray<T, U> array<T>^
array<T>^ CArray<T>
CArray<T> array<T>^
array<T>^ CAtlArray<T>
CAtlArray<T> array<T>^
array<String^>^ CAtlArray<ATL::CStringT<char>>
CAtlArray<ATL::CStringT<char>> array<String^>^
array<String^>^ CAtlArray<ATL::CStringT<wchar_t>>
CAtlArray<ATL::CStringT<wchar_t>> array<String^>^
array<T>^ CSimpleArray<T>
CSimpleArray<T> array<T>^

Other Conversions:

FROM TYPE TO TYPE
System::IntPtr ATL::CHandle
ATL::CHandle System::IntPtr
System::DateTime  SYSTEMTIME
SYSTEMTIME System::DateTime
System::Object^ IUnknown*
IUnknown * System::Object^
System::Object ^ com_ptr<IUnknown>
System::Object ^ CComPtr<Iunknown>
System::Object^ VARIANT
VARIANT System::Object^
System::Guid GUID
GUID System::GUID
System::DateTime CTime
CTime System::DateTime
System::DateTime COleDateTime
COleDateTime System::DateTime

I've pasted the table in as I received it, and linked to things we already have. I'd like to come back to this list and add links as you send me things.

Kate

 

posted on Friday, November 30, 2007 8:24:46 AM (Eastern Standard Time, UTC-05:00)  #    Comments [1]
Related posts:
Tracked by:
http://yesihavemoneyy.com [Pingback]
http://realvideopornoo.com [Pingback]
http://tubepornoss.com [Pingback]
http://morningside.edu/mics/_notes/pages/clomid/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/celexa/index.html [Pingback]
http://blastpr.com/wiki/js/pages/lipitor/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/cymbalta/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/melatonin/index.html [Pingback]
http://blastpr.com/wiki/js/pages/clomid/index.html [Pingback]
http://blastpr.com/wiki/js/pages/viagra/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/viagra/index.html [Pingback]
http://blastpr.com/wiki/js/pages/claritin/index.html [Pingback]
http://blastpr.com/wiki/js/pages/paxil/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/cialis/index.html [Pingback]
http://blastpr.com/wiki/js/pages/prozac/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/prozac/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/rainbow-brite/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/lexapro/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/coumadin/index.html [Pingback]
http://blastpr.com/wiki/js/pages/soma/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/accutane/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/nexium/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/claritin/index.html [Pingback]
http://blastpr.com/wiki/js/pages/prilosec/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/effexor/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/hoodia/index.html [Pingback]
http://blastpr.com/wiki/js/pages/celexa/index.html [Pingback]
http://blastpr.com/wiki/js/pages/coumadin/index.html [Pingback]
http://blastpr.com/wiki/js/pages/tramadol/index.html [Pingback]
http://blastpr.com/wiki/js/pages/cymbalta/index.html [Pingback]
http://blastpr.com/wiki/js/pages/ultram/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/tramadol/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/synthroid/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/paxil/index.html [Pingback]
http://blastpr.com/wiki/js/pages/celebrex/index.html [Pingback]
http://blastpr.com/wiki/js/pages/lexapro/index.html [Pingback]
http://blastpr.com/wiki/js/pages/wellbutrin/index.html [Pingback]
http://blastpr.com/wiki/js/pages/cialis/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/wellbutrin/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/celebrex/index.html [Pingback]
http://morningside.edu/mics/_notes/pages/soma/index.html [Pingback]
http://blastpr.com/wiki/js/pages/effexor/index.html [Pingback]
Tuesday, March 24, 2009 10:52:07 AM (Eastern Standard Time, UTC-05:00)
IUnknown * to System::Object^

I was searching around for quite some time to get a solution to this only to find it right under my nose.

LPMAPISESSION ppses;
System::Object ^MAPIOBJECT = System::Runtime::InteropServices::Marshal::GetObjectForIUnknown(System::IntPtr(ppses));

This is from a MAPI project. However, any object that supports IUnknown should marshal to an Object^ without any problems.
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Live Comment Preview