interop

How can I wrap a COM object in a native .NET class?

醉酒当歌 提交于 2019-12-03 01:54:06
I'm using an extensive existing COM API (could be Outlook, but it's not) in .NET (C#). I've done this by adding a "COM Reference" in Visual Studio so all the "magic" is done behind the scenes (i.e., I don't have to manually run tlbimp ). While the COM API can now be "easily" used from .NET, it is not very .NET friendly. For example, there are no generics, events are strange, oddities like IPicture , etc. So, I'd like to create a native .NET API that is implemented using the existing COM API. A simple first pass might be namespace Company.Product { class ComObject { public readonly global:

Erlang Universal Binary Format? Anyone using it?

我的梦境 提交于 2019-12-03 00:23:50
I recently stumbled upon this 2002 conference paper ( Getting Erlang to talk to the outside world by Joe Armstrong) and I was wondering whether this is a standard that was ignored or if there was any adoption? Should I focus on Apache Thrift for inter-platform communication? (whatever solution I choose will involve at least Erlang) You might find the following information helpful about UBF (i.e. UBF User's Guide). http://ubf.github.com/ubf/ubf-user-guide.en.html This might help answer some of your questions about UBF. There is also an Erlang server and client implementation of Thrift using the

Attempting to convert C++ into C# with interop

佐手、 提交于 2019-12-02 22:15:32
问题 I've got a program that calls to EGL in C++. I want to make the same call in C#, but there doesn't seem to be an equivalent concept in C#. I'm getting a read/write access denied error when the execution context enters the C++ EGL code. This is the code in the C++ program that I'm trying to convert to C#: PropertySet^ surfaceCreationProperties = ref new PropertySet(); surfaceCreationProperties->Insert(ref new String(EGLNativeWindowTypeProperty), somethingOtherThanAWindow); mEglSurface =

C# / IronPython Interop with shared C# Class Library

倖福魔咒の 提交于 2019-12-02 21:18:41
I'm trying to use IronPython as an intermediary between a C# GUI and some C# libraries, so that it can be scripted post compile time. I have a Class library DLL that is used by both the GUI and the python and is something along the lines of this: namespace MyLib { public class MyClass { public string Name { get; set; } public MyClass(string name) { this.Name = name; } } } The IronPython code is as follows: import clr clr.AddReferenceToFile(r"MyLib.dll") from MyLib import MyClass ReturnObject = MyClass("Test") Then, in C# I would call it as follows: ScriptEngine engine = Python.CreateEngine();

Loading .net 3.5 wpf-forms in a .net 2.0 application

旧街凉风 提交于 2019-12-02 19:40:45
问题 I'm trying to load and host a WPF control in a .net 2.0 windows forms application. The WPF control should only be loaded if .net 3.5 is installed. I found a link to Hosting WPF Content in an MFC Application and that is about what I'm trying to do but my C++ knowledge isnt sufficient to be able to 'translate' it to .net. Anyway, here is another link: Hosting WPF Content in a Java Application that doest the same again but I dont know where to start writing that code in .net. 回答1: To host a WPF

.NET and Lotus Notes Interop

社会主义新天地 提交于 2019-12-02 19:39:29
I've Lotus Notes database file (.nsf) at some location, let's say: http://intranet.mycompany.com/somewhere/data.nsf Is it possible in any way to read from that location using any .NET language? Konamiman Take a look at these resources: http://www.ibm.com/developerworks/lotus/library/domino-msnet/index.html http://www.codeproject.com/KB/cs/lotusnoteintegrator.aspx http://www.builderau.com.au/architect/database/soa/Create-an-ODBC-connection-to-a-Lotus-Notes-database/0,339024547,320282240,00.htm You can use the ReadViewEntries URL option and that returns data as XML --> http://www-12.lotus.com

Processing Microsoft Office Outlook 2003/2007 email messages

♀尐吖头ヾ 提交于 2019-12-02 19:11:32
问题 Summary It's been while now that I receive emails on a specific work-related domain, and I'd like to build up a database based on the information that is provided within these emails messages. These messages are work related items about some needs and requirements in the computer science industry in my corner of the world. I would like to parse or analyze these emails in an automatic way so that I can get recurring information into a database and build a business intelligence-like database

How can I save a very large MATLAB sparse matrix to a text file?

十年热恋 提交于 2019-12-02 18:19:05
I have a 30000x14000 sparse matrix in MATLAB (version 7), which I need to use in another program. Calling save won't write this as ASCII (not supported). Calling full() on this monster results in an Out of Memory error. How do I export it? Matt You can use find to get index & value vectors: [i,j,val] = find(data) data_dump = [i,j,val] You can recreate data from data_dump with spconvert, which is meant to "Import from sparse matrix external format" (so I guess it's a good export format): data = spconvert( data_dump ) You can save to ascii with: save -ascii data.txt data_dump But this dumps

Associating git commits with Team Foundation work items

喜欢而已 提交于 2019-12-02 17:33:52
Context A GitHub Enterprise installation used for development. Every developer has his own public repo, and the organization has the authorative repo. Pull requests are used for code reviews, and we loosely follow nvie's git flow branching model. A TFS installation used for issue tracking and deployment (the release branch). We mirror the release branch into a TFS repo. Work Items Now the hard part is: How do we associate git commits (that may originally be done on the public branches of the developers) with TF work items? What I did I've looked at the following projects for help: Git-TFS Git

CUDA for .net?

纵然是瞬间 提交于 2019-12-02 17:31:56
I know that there are a lot of CUDA language bindings, such as PyCUDA, but are there any good bindings for .Net? The only one I've seen is this one , but I'd like to know if there are any others. torial Here's another library: http://sourceforge.net/projects/brahma-fx/ Edit : I've been looking at the documentation for the project you initially listed, and can say that the interface makes me think: what is the point of using .Net. The project I've listed has a cleaner interface but no documentation. The project you listed seems to be more dedicated in the development path ( a recent 2.1 release