activex

Resetting project compatibility in vb6

女生的网名这么多〃 提交于 2019-11-29 19:03:24
问题 When we break compatibility in a vb6 dll I have to do the following: Set to no binary compatibility Recompile Set compatibility again Remove reference to changed dll from all projects that use it Add reference back to all projects that use it Recompile all those projects Do the same for any projects that use those projects, etc. Of course that's a little bit simplified but anyone who's done it before should know what I'm talking about. My question is: Have you found a better way to do this,

Why does GetSafeHwnd() return zero in an ActiveX control?

淺唱寂寞╮ 提交于 2019-11-29 18:17:04
I have developed a MFC Activex control which is windowless and invisible in runtime, while i assumed that basically an activex is a control that would manipulate a windows handle, i have used GetSafeHwnd() to get windows handle, but unfortunately this method returns zero when it runs. maybe i had set wrong option when creating my activex. how i can create a windowless activex which could manipulate windows hanlde? By definition, windowless ActiveX control doesn't have a window, and rendered as part of its parent. If you want to work with Windows messages in the control, you can create worker

How to Embed Microsoft office in Win form?

偶尔善良 提交于 2019-11-29 17:51:41
I am in trouble to host the MS Office in Win form. After doing google i have come across that microsoft has removed dsoframer.ocx. So can anyone please help me how should i host MS office in a winform? I have found some third party tools like Edraw. But i want to do it by own without using any third party tools? Any help would be appreciated. What you are looking for is called OLE, Object Linking and Embedding. Originally released in 1990, Microsoft Office was the last main Microsoft product that still supported it. Time has not been kind to OLE, the protocol was complicated and very hard to

32 bit ActiveX Control in a 64 bit .NET App

假如想象 提交于 2019-11-29 15:29:56
I'm creating a C#.Net application which I want to be able to compile for "All CPUs". I also want to include a specific ActiveX control in the UI of this app, but the ActiveX control I'm trying to use does not support 32 bit. Is there some trick or work around I can use to use get this control to work? What about embedding the ActiveX control in a Web-browser control? Would this even work? You have to run the ActiveX control in a separate 32-bit process. That's going to be difficult, it would have its own window that isn't going to be part of the UI of your 64-bit process. Although it is

OLE Container for .NET

我与影子孤独终老i 提交于 2019-11-29 14:46:06
I'm working on a project that requires me to load an OLE object and render it in a .NET WinForm app (C#). Unlike VB6 .NET has no built in OLE container, and the recommended approach is to use the WebBrowser control which supports displaying ActiveX content. The issue I have is the provider of the OLE object in question does not have an ActiveX control available. Simply put is there any way to load an OLE object onto a WinForm? Or will I need to write an ActiveX control that loads the OLE Object? If the latter, does anyone have an example of this, or recommended reading material? cheers, Marc.

How to create, save a txt file with javascript compatible cross-browser

♀尐吖头ヾ 提交于 2019-11-29 14:38:04
Do you know any cross-browser method to create and save a file with javacript in client-side?! Considerations: Can't save it in server because the file is going to be read from a fiscal printer. The server can't access the client, this is obvious because we are talking about a web application in the web. So the server can't access a client folder. new ActiveXObject("Scripting.FileSystemObject"); is ONLY for IE and even in the IE not for all versions. We are talking about printing on fiscal printer, so I can't ask the cashier in the supermarket to download the text file and save it in a folder

VBA Windows 7 style buttons

若如初见. 提交于 2019-11-29 14:20:09
问题 I'm pretty sure this question has been asked a lot around the web and I've read a lot of the questions and their "answers" on several forums but I've never seen a clear answer so I'd like to know: Is is possible, to use Windows 7 style buttons in Excel VBA or do I have to use these grey things looking like they come from ? I dont want to use images, I mean importing these "ActiveX Controls", I think thats their name. 回答1: Buckle up, you're in for a ride. First, create a new C# (or VB.NET..

Python and Excel: Overwriting an existing file always prompts, despite XlSaveConflictResolution value

你离开我真会死。 提交于 2019-11-29 14:02:45
I'm using the Excel.Application COM object from a Python program to open a CSV file and save it as an Excel workbook. If the target file already exists, then I am prompted with this message: "A file named '...' already exists in this location. Do you want to replace it?" That message comes up despite the fact that I have set the XlSaveConflictResolution value to xlLocalSessionChanges, which is supposed to automatically overwrite the changes without prompting -- or so I thought. I'm using Microsoft Office Excel 2007 (12.0.6535.5002) SP2 MSO and ActivePython 2.6.5.14. I have tried all three of

How to use ActiveX component in ClassLibrary without Winforms

[亡魂溺海] 提交于 2019-11-29 12:37:26
How is it possible to use an ActiveX control in a ClassLibrary type project? I intend to call it later from WPF application but I don't want to place a control anywhere on the form, so I don't want to use WindowsFormsHost ; mainly because I would like to use this my library in Console App and Windows Service. In this case, the ActiveX control I want to use is a video analysis component. Additionally I want my component to register itself in deployed environment. I think that the common knowledge is that you need Winforms to be able to use ActiveX control. Well, not entirely true. You need

How to sign an ActiveX DLL with a Certificate

流过昼夜 提交于 2019-11-29 12:12:35
I have created a DLL that I am exposing via COM that I need to sign with a certificate. I have created a Visual Studio 2008 project and it has a class library which contains the code for my ActiveX object. I then created an ASP.net page that is using it: <script type="text/javascript"> var x = new ActiveXObject("Foo.Bar"); x.SomeMethod(); </script> I ran the site and was getting a bunch of errors with security. I ran regasm /tlb /codebase foo.dll and installed it this way. I also changed a bunch of my security settings in IE to allow me to run unsigned ActiveX controls and everything worked