activex in winform
I need to put some activeX in my .Net WinForm. The provider had sent me a .tlb and the com .dll. Is this enough? How do I put it on winform? ...
I need to put some activeX in my .Net WinForm. The provider had sent me a .tlb and the com .dll. Is this enough? How do I put it on winform? ...
I have run into an odd problem while attempting to register a vendor-supplied ActiveX control on two different computers. On one computer, I can register the part using regsvr32, and then use it in an Access 2007 form with no problems. On the other computer, after I register the same DLL, it is simply not recognized as a valid ActiveX p...
I have a performance issue where clients are creating hundreds of a particular kind of object "Foo" in my unmanaged (not .NET) C++ application's DOM. Each Foo instance has its own asynchronous work queue with its own thread. Obviously, that doesn't scale. I need to share threads amongst work queues, and I don't want to re-invent the...
Hello, I tried to debug a .NET console app using WinDbg. I normally do this by File -> Open Executable, then WinDbg would load up the selected exe. This was working for the .NET app mentioned. But now I get the following output every time: Microsoft (R) Windows Debugger Version 6.11.0001.404 X86 Copyright (c) Microsoft Corporation. Al...
Hi, I'm trying to convert a normal application to a service. The application uses an installed COM component. When its run as a standalone application, this finds and connects to the COM component, however having converted the app to a service, I get the above error. I understand that this could be related to the fact that in the "env...
What I am trying to do is transfer an object that has been created on the serverside to the client. I have got it to work well when I using c++ on both server and client side, but I do not get my server to work correct with other languages like .Net, It probably doesn't like the pointers! Does this Serversidecode look correct? Server F...
What would the equivalent in C/C++? ...
Hi, From a person wanting to know more about Windows Internals, reading the book "Windows Internals", and wanting to get into driver development, is learning COM programming a good idea? How deep should I get into it? Just understand the basics or should understanding be advanced, taking into account the above. ...
I have some c++ code that is a snap-in for a MMC based application. This snap in uses a .net 2.0 dll via a COM wrapper (AssemblyA). AssemblyA lives in the same directory as the app that launches the MMC session. AssemblyA uses some other .net dlls (OtherAssemblies) which, for reasons beyond my control cannot live in the same directory ...
How to convert DATE data type to a formatted string in UTC without using the library class COleDateTime. I do not have ATLComTime.h on my system I would like to pass it as a DATE data type and return a string in 'yyyy-mm-ddThh:mm:ssZ' ...
We had multi-threaded application. Each thread has to invoke with CoIntialize when it is iniatialized as we use some C++ COM object for our DB operation. The application is working fine for longer time in the production env. But suddently the CoIntialize() API in thread init function failed with below error ThreadInit; HRESULT: 80070008 ...
Is there a way to determine the timezone of a DATE data type that has been converted to a SystemTime value? Let say a C# file using the COM lib set the value below: someComInterface.someDateAttribute = new DateTime(somedate).ToUniversalTime(); In the COM library I want to do something like this if(VariantTimeToSystemTime(DATE, &syst...
Hello, I need to access a component in JScript. I found the Wcript.CreateObject(progid) as well as "new ActiveXObject(progid)" would create an instance of the component. The component should draw graphics in a own window to show, what the JScript script is doing. The operation systems supported must include Windows XP 32 bit as well a...
Hello, I have a program that I run and in the middle I get this message: Managed Debugging Assistant 'ContextSwitchDeadlock' has detected a problem in 'C:\Documents and Settings\Lena G\My Documents\SchoolStuff\IR Information\Home Work\FianlProject\finalProject\finalProject\bin\Debug\finalProject.vshost.exe'. Additional Information: The...
I have a DLL written in C# which is acessed by a native EXE (written in Delphi) via COM. Now I was asked to make it work with Mono (on Windows, not Linux) instead of Microsoft .NET Framework. Is it possible to be done? If it is, how can I do it? ...
I'm currently going through a process of refactoring includes to reduce compile time, and I've come across the following compile error: [C++ Error] some_class.cpp(53): E2015 Ambiguity between 'IID_IDropTarget' and 'Virtualtrees::IID_IDropTarget' The line of code it points to is: if (iid == IID_IUnknown || iid == IID_IDropTarget) If...
I am trying to automate a download of some data from a web application via Powershell/Internet Explorer COM similar to this article. This works fine for normal elements/pull-downs, but how do navigate through tables via the COM object in case I want to click/find out the links inside a table? ...
We do industrial automation application and we need to use VC++ application. As part of that we need windows controls which shall be developed in Visual Basic 6.0. When we run the application with tabbed interfaces, we have approximately 5000 COM objects together. COM object count is expected to grow. Are are any performance overhe...
I created a c++ .net dll, in which I need to implement logging. I decided to go with Microsoft Enterprise Library's Logging. Now, I am calling this dll from a COM application (I created a .tlb from the dll to use in the COM application), and the error I am getting is this: Could not load file or assembly 'Microsoft.Practices.Enterpris...
We're developing a ClickOnce application with a mixture of .NET components and legacy C++ COM components. Currently we're adding the C++ COM components to the users machine using an MSI (this is a prerequisite to installing our ClickOnce app) which means we can register the COM objects on the user's machine beforehand. We can still pu...