Hi all,
I have been having a prolonged encounter with the beast known as COM Interop...
I am currently trying to generate a .tlb from a .idl file generated by the OLE/COM Object Viewer. However when trying to run Midl.exe to compile it I get an error:
.\Sim.API.IDL(236) : error MIDL2025 : syntax error : expecting a type s
pecificatio...
Hi all,
I have 2 .net dll's which I expose to COM using REGASM. In order to simplify referencing within a COM client I would like to make these into one file.
I have tried converting both files to IDL and then copying the contents of the Library section of one into the other and then compiling back to .tlb with MIDL. This works fine fo...
I have a C# WCF application that references another .NET DLL that is actually a COM+ application.
If I build my C# WCF application, the COM+ DLL naturally gets placed in the output folder.
The contents of this output folder is then used for building the deployment package (MSI).
After the application is installed on the target system,...
I'm in the process of upgrading a Visual C++ 6 project to Visual Studio 2010, and I've been replacing the post-compile steps of copying files to a common location with having the output file put directly in the final location. However, for the *.tlb files that are being generated, there is an option (in project properties -> MIDL -> Outp...
I have a (VS 2008) C# project that needs to use a 3rd-party COM object. For that, I'm told, I need to register the COM objects's tlb file. So I do
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\regtlibv12.exe blahblah.tlb
which gives me
Registration of FREngine.tlb successful.
But then I can't add a reference to it in the C# p...
I have a .NET library that I'm trying to use via COM (hMailServer's VBScript scripts). I got it all working on my local, development box (Windows 7 x64). However, after copying the DLL to my server (Windows Server 2008 x64) I keep getting the following error when the VBScript runs:
Error: 800A01AD - Description: ActiveX
component...
I have a very old (VC++ 5.0) proprietary DLL which I need to use from C# (Visual Studio 2010). The example specifies that to access this component I need to call CreateDispatch("application") which indicates towards OLE.
The following is the example code (C++):
IComponentServer Server;
Server.CreateDispatch("Component.Server");
I a...
Current configuration is:
The main application is unmanaged.
It contains DLL, containing TLB, which describes functions, exposed to COM model.
To support ASMX web services, it loads .NET framework, and starts ASP.NET domain that serves web service calls.
To serve web service calls, it needs data from the main application. So, we'r...
Hi!
We got a DLL written by C# programmers, compiled to usable as COM object.
We consult these developers to get the function names, and syntaxes, and we can use it after we registered it with regasm.
This is ok, but we have more questions to produce faster development (on changes), and some things are not understandable or not workin...
Having started porting my VB6 code to .NET, I find .NET doesn't allow me to use the COM interface for the base program: "The ActiveX type library xxx.tlb was exported from a .NET assembly and cannot be added as a reference"
The problem is that the interface to the .NET assembly doesn't work, but the standard COM interface does. Is there...
I am maintaining a VS2010 project which has a number of cross-referenced COM libraries. I am trying to configure the project in such a way that it is buildable from a random workstation which has VS2010 installed. The workstation could be both 32 and 64 bit, so if I configure project to "register output", the build will fail to build on ...
I'm wondering if there is a way to insert blank pages near the beginning of a large (multi-GB) file that I have open with mmap(). Obviously it would be possible to add a page or two to the end, and move everything forward with memcpy(), but this would dirty every page and require an awful long time when eventually flushed to disk.
I'm ...
Getting this error on a call inside the Delphi Initialization section of an Impl unit on a line like.
TAutoObjectFactory.Create(ComServer, TmyClass, Class_myclass, ciMultiInstance, tmApartment);
the type is defined as
Tmyclass = class(TAutoObject, IConnectionPointContainer, Imyclass)
and it results ultimately in a "Runtime error...
I was convinced that there is no way to find COM dependencies of an ActiveX but to my surprise OLEVIEW shows some comments Like:
// TLib : // TLib : OLE Automation : {00020430-0000-0000-C000-000000000046}
importlib("stdole2.tlb");
// TLib : Visual Basic runtime objects and procedures : {EA544A21-C82D-11D1-A3E4-00A0C90AEA82}
...