com

Moving Windows C++ project from Qt4 to 5 gives hundreds of seemingly unrelated compilation errors [closed]

回眸只為那壹抹淺笑 提交于 2019-12-08 01:26:50
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I upgraded to Qt5/msvc2010 and am now trying to build a project using Qt Creator that was working fine with Qt4/msvc2008 (no source code has changed since it was working). The project uses some COM elements to talk to external audio recording devices via an Olympus SDK. What could cause all of these errors when

COM “Server busy” dialog on MFC

半世苍凉 提交于 2019-12-08 01:18:18
问题 I have MFC application that pops up a server busy dilaog that looks just like here: https://stackoverflow.com/questions/4968872/how-can-i-disable-the-ole-server-busy-dialog-in-a-c-sharp-app This app calls AfxOleInit(). http://support.microsoft.com/kb/248019 explains that i should do AfxOleGetMessageFilter()->SetMessagePendingDelay(nTimeout); to avoid getting the dialog. It also suggest that i use OleInitialize instead of AfxOleInit to suppress the dialog. Does this mean if i don't call

How to migrate from C++ COM to C++CLI

非 Y 不嫁゛ 提交于 2019-12-08 00:57:27
问题 I have a C++ DLL that exposes stuff via COM. I want to convert it to C++/CLI that exposes a managed interface. Ideally I just add CLI and convert interfaces one by one. So far I haven't succeeded in anything, so I'm looking for a specific strategy. More detail: A long time ago, I created an app using COM to communicate back and forth between C# and C++. I'm sick of COM, and the registration and the hoop jumping needed on the C++ side. I want to use C++/CLI, and get the whole thing working as

Need to Find the COM DLL from an interop dll

左心房为你撑大大i 提交于 2019-12-07 23:25:53
问题 I have a Interop dll in a c# project, But I am not able to findout the corresponding COM dll associated with it. Please let me know, how to find out the actual COM dll from its interop dll. 回答1: Got it. One way is to use any one of its class in the project. Then go to definition of it, which will take us to Metadata. we can note down the GUID and then search it in registry, if that is available, like this one. namespace NETWORKLIST { [ClassInterface(0)] [Guid("DCB00C01-570F-4A9B-8D69

Can you call COM components from server side javascript?

蓝咒 提交于 2019-12-07 22:44:33
问题 Is it possible (using one of the server side implementations of javascript .. see http://www.nakedjavascript.com/getting-started-55) to instantiate a COM object and invoke methods on it? 回答1: There is node-win32ole ( npm install win32ole ). 回答2: That depends on which server-side implementation you’re using. When using ASP/JS (or any other framework using Microsoft’s Windows Scripting engine), that’s not a problem using the ActiveXObject constructor. When using JSDB, you can use the ActiveX

run vba code from .net applications

本小妞迷上赌 提交于 2019-12-07 21:47:26
问题 I have a very large amount of code written in VBA that I need to migrate to a .Net application. It isn't practical to rewrite all of it as there is just too much, so I was wondering if there is a way to call these vba functions from .NET Thanks. Update: I've been investigating these and it turns out they aren't appropriate. The application isn't Microsoft Office and doesn't expose any sort of "Run" macro functionality. Having done a comparison of the files produced by our legacy third party

How to enable early binding of VBA object variable to COM classes created in .NET

送分小仙女□ 提交于 2019-12-07 20:31:54
问题 I seem to be having trouble getting my COM class library (.NET-based) to support early binding. I am creating a class library in VB.NET 2003 for use in Office 2003 VBA (and later for Office 2010). Documentation @ StackOverflow and elsewhere has brought me to this bit of code: Imports System.Runtime.InteropServices <InterfaceType(ComInterfaceType.InterfaceIsDual), _ ComVisible(True), _ Guid("<some valid GUID>")> _ Public Interface _TestCOMClass Function Test() As String End Interface

Converting a fairly simple C# Class library into a COM object?

别来无恙 提交于 2019-12-07 19:18:11
问题 Here's my problem: I have to call a web service with a secure header from a classic ASP page that returns a complex data type. For various reasons concerning a 3rd party tool it has to be classic ASP. We decided that I should create an external dll to do this - which I did (in c#) so it returns a dataset (Something ASP can understand). However now I need to expose that function to the ASP page. Because this is classic ASP I think the only straightforward way to do this is to expose this class

Running COM component controls on multiple threads

耗尽温柔 提交于 2019-12-07 18:55:01
问题 I have a helpdesk package for our company that I am attempting to integrate with Remote Desktop. Among the functionalities I am looking to implement is the ability to determine (while you are browsing through the list of our clients) if a remote desktop connection is currently available for the selected system. The library I am using is "Microsoft Terminal Services Control" - (AxInterop.MSTSCLib AxMsRdpClient7) Now my problem is that I want to perform this task (attempt a connection) on a

Automating Saving a file from the web with the IE COM object in Powershell

无人久伴 提交于 2019-12-07 18:19:41
I'm using IE11's COM object in Powershell to authenticate to a website and pull down a list of orders. So far, my script is successfully sending the username and password as well as getting to the orders page and I can even "click" on the link that downloads the file I need. The problem is that instead of saving the file like I need to do the open/saveas dialog comes up and the script bombs. I've attempted to have IE11 automatically save the file by editing the registry and specifying the Excel.CSV type but this didn't work. The download link is actually a button that calls a complicated