Hi all
We are given in-proc-server (.dll) with threading model "Both".i noticed the threading model in registry editor.as we know com object created with "Both" will take the threading model of the thread in which the object is created. i instantiated the object in a STA thread to make sure call to com object should go through only one ...
I am developing a COM dll and trying to export the DllGetClassObject() method with the __declspec(dllexport).
Here is my declaration:
extern "C" HRESULT __declspec(dllexport) __stdcall DllGetClassObject(REFCLSID rclsid,
REFIID riid, void** ppv)
But I kept get this error:
...
I am trying to create a gadget which uses a COM visible .net 2.0 dll.
And I have been trying to make it work since last one week.
Here are a few instructions that I found to make it work:
http://markmail.org/message/jkbjk2kjbyyqozc6
But I am not able to understand the 3rd step.
I have manually registered the dll classes in the regi...
What is a COM visible .net 2.0 dll? (I have got one)
Can I register this dll to the windows registry and use it as an ActiveXObject?
For all the dll's registered in registry (HKCR) that have the child node InprocServer32, are accessible with the ProgID through ActiveX?
[I am new to this]
Thank you.
...
In VB6, it was a simple matter to write applications that served up COM classes, the application would run as a system-wide singleton and would be able to serve COM classes to multiple processes. I believe this is called a COM LocalServer.
What's the equivalent in .NET? How can I make a single executable that handles requests from multi...
I am using a COM object (MODI) from within my .net application. The method I am calling throws a System.AccessViolationException, which is intercepted by Visual Studio. The odd thing is that I have wrapped my call in a try catch, which has handlers for AccessViolationException, COMException and everything else, but when Visual Studio (...
I have an classic ASP application which calls a VB6 activeX dll component. The DLL uses Office web component(v11.0) to create spread sheet. I'm getting an error when i try to create an instance of OWC11 Spread sheet.
Dim oSS As OWC11.Spreadsheet
Set oSS = New OWC11.Spreadsheet -- ActiveX component can't create object(error id 429)
T...
I have a C# based windows exe using a WPF GUI. My GUI app. polls another window service every minute running on same machine for some updates. Can i expose a COM interface into my WPF GUI exe so that i can remove polling and instead window service make a COM call into the WPF GUI exe app to provide updates?
...
I have a WIN32 COM DLL.
And I want to Convert .NET DLL.
Is it possible?
Thanks.
...
After going through MSDN Shell Extensions I am not quite sure if I can extend the behaviour of Shell Click or Click Event of explorer. Any suggestion or Code Snipet, article or Walk through?
...
"ActiveX controls — small program building blocks — can serve to create distributed applications that work over the Internet through web browsers. Examples include customized applications for gathering data, viewing certain kinds of files, and displaying animation." (wikipedia)
is an Object an instance of a Control?
...
I read about adjustor thunk from here. Here's some quotation:
Now, there is only one QueryInterface
method, but there are two entries, one
for each vtable. Remember that each
function in a vtable receives the
corresponding interface pointer as its
"this" parameter. That's just fine for
QueryInterface (1); its interface
...
For debugging purposes, when I'm writing an app, the first thing I do is put the following into the stdafx.h:
// -- leak detection ----------------------------------------------------------
#ifdef _DEBUG
// http://msdn.microsoft.com/en-us/library/e5ewb1h3(v=VS.80).aspx
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg...
I want to know purpose of .NET and COM ,
Is .NET has the same purpose as that of COM ? Because main purpose of COM is to allow language interoperability so as that of .NET ?
If so Why many companies still using COM for their development projects ?
Is it worth learning COM when we can use .NET ?
...
I am thinking to learn COM.But I heard that Microsoft launched .NET as an alternative to COM.
So is it worth to learn COM?
actually I started learning COM for UMDF device driver.
Is there any alternate way to work on UMDF except COM?
...
Hi guys,
I have a question about how CoCreateInstnace() method locate and create an instance of a CoClass contained in a COM DLL.
Accroding to MSDN:
The CoCreateInstance function provides
a convenient shortcut by connecting to
the class object associated with the
specified CLSID, creating an
uninitialized instance, and rele...
Hi,
I have a COM Component DLL.
I can use this DLL in VB.NET.
But I must configurate Project Properties Compile Settings.
I write "Win32=True" to "Custom Constant" area and application succesfully run.
But I Cant find this configuration for C# application.
How can I do?
...
Hi!
I use CDHtmlDialog to work with DOM of some HTML content from given URLs. I need to disable all possible popup messages (e.g Security alerts) that can appear as in case of InternetExplorer Browser. In JScript I can set property Silent to true
var oIE = WScript.CreateObject("InternetExplorer.Application","EventIE_");
oIE.Silent = tr...
I have two C++ COM projects in Visual Studio. In ProjectA I define InterfaceA in MIDL. In ProjectB I would like to define InterfaceB which inherits from InterfaceA. Is this possible to do without importing IDL or H files from ProjectA?
Here's how the code is laid out, which might be clearer. The libraries are large so I put things in se...
I have a server application which I am debugging which basically parses scripts (VBscript, Python, Jscript and SQl) for the application that requests it.
This is a very critical application which, if it crashes causes havoc for a lot of users. The problem I am facing is how to handle exceptions so that the application can continue and ...