interop

CAML to HTML

I'm invoking one of SharePoint's web service APIs that returns a CAML fragment. I've searched the interweb far and wide but I've been unable to figure out how to make this CAML fragment to render as "normal" HTML that I can render in a more sane environment like Plumtree, WLP, Liferay or any other portal besides SharePoint. Without a wa...

Hosting the .NET runtime in a Delphi Program

I was looking into using some .NET code from within a Delphi program, I will need to make my program extensible using .net assemblies and predefined functions (I already support regular DLLs). After a lot of searching online, I found Managed-VCL, but I'm not ready to pay $250 for what I need, I also found some newsgroups with code that...

COM/Interop - Supporting Multiple Versions

I've written a .NET console app that wraps CuteFTP's Transfer Engine - a COM object (ftpte). The version I wrapped is CuteFTP 7.0. I'd like to also support the 8.0 version, as some of the clients I integrate with have that version. I have a reference in my Visual Studio project to the CuteFTP COM object... how can I reference the vers...

How do I get a .NET assembly running under Delphi from a network drive?

I have a Delphi 5 executable that calls into a .NET assembly via the free Delphi .NET code, and for the most part, this works great. However, one of the requirements of my application is that our clients be able to use this from a networked share as well as local. On my test machine, I can't get this to work, I just get an error messag...

Access Ruby objects with Python via XML-RPC?

Hello I am trying to export a Ruby framework via XML-RPC. However I am having some problems when trying to call a method from a class not directly added as a handler to the XML-RPC server. Please see my example below: I have a test Ruby XML-RPC server as follows: require "xmlrpc/server" class ExampleBar def bar() return "hello ...

vb.net byte[] to C++ char*

I am calling an unmanaged C++ dll that expects a char* as one of its parameters and I want to push a byte[] into it. The project is written in VB.NET. What type of marshalling will work for this? ...

pass DataTable to unmanaged environment (visual c# 2005)

Hi, What will the best way to pass a datatable data to unmanaged environments? (c++) Ofer ...

Creating a Mixed Mode C++ Bridge from C to C#?

I hope someone can help me with this, I'm mostly a C# developer so my C and C++ skills are bad. I have a native C dll that is a plugin of a larger application. I cross compile this dll for windows on linux using gcc. In the native dll when I create a D3DSurface I want to call a function in a Mixed Mode C++ dll and pass in the pointer ...

Where do you get XML file formats from

Looking at questions like http://stackoverflow.com/questions/77726/xml-or-sqlite-when-to-drop-xml-for-a-database and http://stackoverflow.com/questions/44207/what-are-good-alternative-data-formats-to-xml it is clear that XML is something you best use for exchanging data between systems, organizations, and software programs. For internal...

Handling custom .Net exceptions in COM+ (VB)?

Hi, I'm about to start writing a .Net component which will be called from a VB COM+ service (the new component is a DLL which calls out to a webservice and returns based on the response). I'm not sure how to handle error conditions that might occur in the .Net code in the calling VB. The two types of errors I'm worried about are: exc...

How to build an ActiveX object in C++ that can be scripted using Javascript

I can use VS08's MFC/ActiveX template to create a C++ ActiveX object that I can load into a HTML page and script with Javascript. But I can't figure out how to create an interface that allows me to call custom methods on my component with Javascript. Could you please tell me how to accomplish that? I have spent over two hours on google ...

Why do I get the exception - Unable to load DLL '?????.dll': The specified module could not be found.

I'm using Emgu.CV which is a C# wrapper for the OpenCV libraries. I changed the Emgu.CV source to invoke from the latest OpenCV library cv110.dll instead of cv100.dll and now I get this error (where ????? is cv110.dll). I have placed the cv110.dll file in all the same locations as the cv100.dll file however this does not help. On a br...

Using VS 2008 (vb.net) I need to create an object I can use in Classic ASP with CreateObject

I am very new to VB.net. I have written these objects in VB6 before. I'm just lost in VB.net, but (kicking and screaming) I have to learn how to do this. I've been googling for hours with only minor steps forward. Can anyone post a link that explains start to finish how to do this? I have managed to write the class object, What I can no...

Call C# methods from C++ without using COM

Hi, Is there a way to create C# objects and call methods from unmanaged C++, but without using COM Iterop? I am looking for something like JNI (but for .Net), where you can manually create the VM, create objects, etc. ...

Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80080005

What is the troubleshooting process for the "Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80080005" errors in .Net? To clarify: I am getting this at runtime, on my XP machine, with client being .net code running under admin account. {XXXX} refers to one of our in-house COM components...

Using C++ COM interface in C# for both client and server

Hi all, I need to make a piece of C# code interact through COM with all kinds of implementations. To make it easeier for users of that integration, I included the interacted interfaces in IDL (as part of a relevant existing DLL, but without coclass or implementation), then got that into my C# code by running Tlbimp to create the types ...

Problems casting an ComObject in VB.net

I have a Word.Field object which is a checkbox and the Type property equals wdFieldFormCheckBox. I am trying to cast the Word.Field object as Word.CheckBox object but I am getting casting errors. Dim chkBox as Word.CheckBox chkBox = DirectCast( myFieldInstance, Word.Checkbox) How do I cast a Word.Field object into Word.CheckBox objec...

Connect to COM events in C# - support both managed and unmanaged servers

Hi, I'm writing C# code that needs to connect to COM events. I implemented the use of IConnectionPointContainer and IConnectionPoint thus: IConnectionPointContainer connectionPointContainer = internalGenerator as IConnectionPointContainer; if (connectionPointContainer == null) { Debug.Fail("The script generat...

Java: JavaFX and Java Interoperability

Can I utilise the new functionality provided by the new JavaFX APIs directly from Java to the same extent as I would be able to using JavaFX Script? Are all the underlying JavaFX APIs purely Java or JavaFX Script or a mix? ...

.NET Error: The dependency 'Microsoft.Office.Interop.Excel' could not be found

My colleague has written a DLL which drives Excel. When I reference his DLL in my .NET app, I get a warning: The dependency 'Microsoft.Office.Interop.Excel' could not be found. My app will compile. However, when I get to the bit that uses my colleague's DLL to access Excel, an exception is thrown, with the message above. We shoul...