I have a C++ method with this signatur开发者_如何学Goe: STDMETHODIMP ClassName::FunctionName(long number, BSTR* names, long* status)
I have a VB6 app that uses a C# COM DLL. In managed C++ I can write a function as follows: array<String^>^ GetAManagedArray()
Why does LayoutKind.Sequential work differently if a struct contains a DateTime field? Consider the following code (a console app which must be compiled with \"unsafe\" enabled):
In C# 4.0, say I have List<HSZPAIR> myList with three elements where the HSZPAIR struct is defined by:
In the Compact Framework 3.5, I am attempting to call an ActiveX object that has an IDL function signature:
I am calling a C++ function from C#. As arguments it receives a pointer to an array of structs. struct A
I have bunch of native C++ objects and classes contains DTL maps, maps of maps and lists and vectors.
I need to custom marshal/unmarchal a TDictionary in Delphi (XE). The dictionary is declared as: T开发者_开发知识库MyRecord = record
Here is a concrete example: I create a IWeBrowser2 interface by calling wb.CoCreateInstance(CLSID_InternetExplorer, 0, CLSCTX_SERVER);. This gives me a marshaled interface from my process into whiche
I am looking to write a void* buffer to a MemoryStream in a C++/CLI. As I don\'t think this is possible dire开发者_如何学运维ctly, alternatively I would like to convert this buffer to an array<byte