I am new to COM and trying to understand the difference between STA and MTA. I tried to create an example that would show that COM can manage calls to object created in STA that is not thread-safe.
Not sure if the title makes any sense. I have an object that I want to marshal using JAXB that looks like this:
Hey folks, I\'ve been stuck on this for the past few days. I have a custom COM interface that I am able to cast to, but when I call one if it\'s functions I get an AccessViolationException because the
It\'s a pointer to an array of LSA_UNICODE_STRING structures. I found some code that does the inverse, i.e., create a LSA_UNICODE_STRING from a C# string. You can see that in the helper code section b
I\'m attempting to get a KBDLLHOOKSTRUCT from a keyboard-hook\'s lParam. private static IntPtr HookCallback(int nCode, IntPtr wParam, IntPtr lParam)
I\'m trying to subclass an unmanaged statusbar window from my managed COM server using a class inherited from NativeWindow, and am running into a wall trying to make sense of how to properly marshal t
I have some data in a stream which is actually in the format of uint. System.IO.Stream only allows me to read the content out to a byte array, but I don\'t want to read the bytes and then convert them
I\'ve got a few classes that implement Parcelable and some of these classes contain each other as properties. I\'m marshalling the classes into a Parcel to pass them between activities. Marshalling th
Sorry for the verbose introduction that follows. I need insight from someone knowing P/Invoke internals better than I do.
I have a C++ struct that looks like this: struct unmanagedstruct { int开发者_JS百科flags; union { intoffset[6];