com

IWebBrowser2 issues - how to open documents in new windows?

别等时光非礼了梦想. 提交于 2019-12-08 08:06:08
问题 I have IWebBrowser2 ctrl embedded into my own dialog. I want to simply display a promo banner within it from my url. How to disable all popup menu items from the control and force it to open links in new window (currently when I click on link in the banner, it is being opened within the same control). Regards Dominik 回答1: Have a look at the following article: WebBrowser Customization 回答2: I don't know if there is a more convenient way of doing this - but you could always intercept

NUnit test with Fortran DLL

半世苍凉 提交于 2019-12-08 08:03:51
问题 I have a ServerCom DLL that comes from Fortran. I generate automatically using tlbimp a MyFortran.dll from the ServerCom.dll that can be referenced directly from C#. In a C# Class Library I have referenced MyFortran.dll. I created a console application that use the MyFortran.dll and generated the correct manifest (in order to have a free-interopt COM environment). It works perfectly in the console application. Now, I wrote a simple NUnit test and I got a COM Exception. System.Runtime

Import a dll file into another IDL file

久未见 提交于 2019-12-08 07:48:59
问题 I am working on a project for developing a proxy COM component for the given component in visual C++. If "Comp" is the original component and Proxy_Comp is the proxy component, then Proxy_Comp should be capable of having the same Interfaces as of the original component. I think this should be done by importing only the "Comp.dll". One of my friends has done this successfully before. But I cannot do it. Could anyone please help? 回答1: I'll assume you are talking about the importlib directive in

Directshow in C# for windows mobile- strategy?

不问归期 提交于 2019-12-08 07:31:11
问题 I'm trying to figure out how to add some directshow capabilities to a C# application (.net cf 3.5 running on mobile 6 and up), and I'm having a hard time figuring out how to bridge the gap between using unmanaged c++ class(es) in managed C#. I've already written the functionality I need in C++: Basically, I have a manager class that uses COM to tap into the needed directshow functionality. Quick Disclaimer: I'm new to COM, and I'm VERY new to integrating C++ with C#. I'm really hoping that

How can a C# program use a COM dll of any version?

我的梦境 提交于 2019-12-08 07:19:07
问题 This question is a sequel of this question We're creating a dll, written in C++, providing access to some hardware. This dll implements and is accessed using COM interfaces. We also have a C# program that uses this dll through the COM objects. We're having an issue with the versions. Indeed, when running the C# program, it absolutely wants to use the exact COM/C++ dll version it used when compiling. I.e. if the C# program was compiled using COM/C++ dll 1.2.3.4, then the program will refuse to

R & COM-Objects: How to connect to a OLAP cube on Windows

℡╲_俬逩灬. 提交于 2019-12-08 07:18:55
问题 I would like to use a .COM object in R to establish a ADODB.Connection to an OLAP cube. And for that I'm using the rscproxy, rcom and the statconnDCOM packages. However, I am not really successful in finding any useful documentation for the rcom package, and therefore, I am struggling big times with using .COM objects in R. I am able to create a .COM object, but I have no idea about the next steps. What I want to do: set the connection string open the R <-> cube connection execute an mdx

Deploying .NET COM dll, getting error (0x80070002)

心已入冬 提交于 2019-12-08 07:06:50
问题 I have a .NET COM assembly I am attempting to deploy to a web server (IIS 6 Win 2003). We have successfully deployed this assembly to our test environment, but the production environment is not working. The assembly is being called from a classic ASP page. Every time that page tries to initialize the assembly with “ Set LTMRender = CreateObject("LTMRender.Render") ”, I get an error “ Error Type:, (0x80070002) ”. This error seems to indicate a permission denied, or file not found type problem.

COM typelibrary for Office 2010 IM integration

↘锁芯ラ 提交于 2019-12-08 07:04:33
问题 I am integrating Office applications with custom IM solution. I have implemented the COM class as suggested by http://msdn.microsoft.com/en-us/library/office/jj900715.aspx I have also registered the COM implementation and hosted the COM server in my exe. Do I also need to additionally register the typelibrary of my com class ? I am seeing issues with type library regsitration and lync client 2013. When I uninstall the type library, Lync Client breaks Generic COM Exception. Code is 0x80080005.

How do I deploy a native code library dependent on several hundred files to Windows Azure most conveniently?

心已入冬 提交于 2019-12-08 06:42:32
问题 This guide shows how to deploy a COM object consisting of a single .dll file to a Windows Azure role using the start-up task mechanism. Now I have a COM object that depends on several hundred other files - .dll files (I build them myself as well) and some binary data required for its operation that need to be deployed as a directory tree. Including that into the role project (as it is done for the single file in the guide) seems rather dumb - those files don't belong to the role functionality

New process after CoCreateInstance?

谁说我不能喝 提交于 2019-12-08 06:35:37
问题 I'm fairly new to COM programming so please excuse if this is a stupid question. After (successfully) creating a COM object using CoCreateInstance or CoCreateInstanceEx with class context CLSCTX_LOCAL_SERVER is there any way to tell if this call caused a new process to be spawned? 来源: https://stackoverflow.com/questions/32165388/new-process-after-cocreateinstance