I\'d like to do Marshal.AllocHGlobal in managed code, fill it with data, and pass that memory block to unmanaged (C++) code that will then be responsible for freeing it.
I\'m currently working on a library that\'s to be exposed to COM for use in a legacy project that\'s being upgraded. I\'m creating interfaces that are to be exposed, and they have properties on them w
We have some .NET code that does a call out to a COM component (dnsapi.dll) to query whether a domain has MX records associated with it to validate email addresses entered into our site.
Is there a way to call JScript functions or access JScript objects via DLR on the server side (ASP.Net)?
Update: I have modified the post as per comments. This is going to be a slightly long post i apologize for that, but i want people to understand what im trying to do before shooting it down. I\'ve as
I am trying to create a ManagedWrapper dll that can be called from an MFC application that will not be compiled using /clr switch. In a header of my test MFC, I have declared the following:
I added a reference to a COM Type Libary to my C# project.I see the interface and object class created by TlbImp.The signature of one of the interface methods is:
What a nightmare COM interop is proving to me.I have a simple managed DLL containing a WPF window. I have a simple ViewController class that will eventually be launching this window but for now has an
In a C# application I use the following code to determine existing local windows accounts (inkl. filtering build-in security principals for some reasons):
In a callback function from a native library, I need to access an array of espeak_EVENT. The problem is the UNION statement in the original C code: