English 中文(简体)
利用COM/SxS3d的团结网4.0 DL?
原标题:Using a .NET 4.0 DLL in Unity3d via COM/SxS?

为了试图夸大我的问题,我试图把问题 short到:

采用“团结”模式的Im,我有2个DLs:

  1. A .NET 3.5 assembly (acting as a COM client)
  2. A .NET 4.0 assembly (with an interface exposed via COM)

3.5 利用COM与4.0合作。 视像仪表象使用3.5组装,通过SxS型、GetTypeFromCLSID()或类型GetTypeFromProgID(我与SxStrace确认)装载4毫升,并且可以使用其功能刚好。 (窗户提到,它依赖4.0 DLL,通过一份显示,I m不登记COM DL。)

I m trying to use the .NET 4.0 DLL in Unity. Obviously I can t use it directly, since the current flavor of Mono that Unity uses only supports up to 3.5, thus I created the 3.5 assembly to be my middleman. I m able to use the 3.5 assembly fine in unity, but either of the Type methods I mentioned before throw NotImplementedException(s), as apparently they aren t supported by Unity (or rather, Mono), so I m at a loss.

任何想法?

问题回答

Although this question was made 1 year ago..sadly the middleman tactic still wont work, it is not possible to use .NET 4.0 dlls within Unity3D since Mono is just not supporting the dependencies. You could try to remove any 4.0 dependencies from the dll and compile it as 3.5, if that is possible for you.





相关问题
How can i add a button to all windows explorer instances?

I am trying to add a button to one of the existing tool bars in any windows explorer instance. After much research i figured out that BHO (browser helper objects) are the best way to hook to ...

Hunting memory leaks

I m finding leaked heap blocks by using the following command in WinDbg !heap –l With each leaked heap block I get, I m running to following to get the stack trace. !heap -p -a leakedheapblock The ...

Why use CComBSTR instead of just passing a WCHAR*?

I m new to COM. What exactly is the advantage of replacing: L"String" with CComBSTR(L"String") I can see a changelist in the COM part of my .NET application where all strings are replaced in this ...

IThumbnailProvider and IInitializeWithItem

I am trying to develop an IThumbnailProvider for use in Windows 7. Since this particular thumbnail would also be dependant on some other files in the same directory, I need to use something other than ...

Getting a byte array from out of process C++ COM to C#

What s the best way to get a chunk of memory (i.e. void*) from a COM server to C#? We have been using an IStream (using CreateStreamOnHGlobal) and passing that back, which worked. However when we ...

COM Basic links

folks can you provide me the tutorial link or .pdf for learning basic COM?. i do google it.. still i recommend answers of stackoverflow so please pass me.. Thanks

热门标签