When I use "regsvr32 foo.dll" i get a "The specified module cannot be
found" error.
The error is being caused because regsvr32 cannot find
the file even though it is the current folder.
I have specified the full path, and it still doen't work. Any ideas????
...
I am developing a .NET application (using C#) that needs to massage some Adobe InDesign files and output their content as PDFs. I could use InDesign's scripting but the COM interfaces seem a bit cleaner for this non-interactive work.
Unfortunately, I have to guess at the semantics of InDesign's COM interfaces because I don't know where ...
Hi all,
I've got a really strange error and any light that anyone can shed on this would be greatly appreciated. We're under the gun (as usual) and I need to find an answer for this quickly.
I made some changes to some VB6 source which builds a COM object. The automated build which builds our app returned an error. No problem I thou...
What are my options for interacting with a COM control from silverlight?
In my particular project, I have a legacy ActiveX authentication control which I would like to leverage in my silverlight application. Without too many boring details, the control takes a couple of parameters, prompts the user for credentials or tokens, and raises ...
I'm using an interoped COM assembly in my 1.1 VB.NET code, and when I try to set a property of the class, I get an INvalidCastException error with the message "QueryInterface for Interface xxx failed". Any ideas on this?
...
I have a VCL gui developed in Codegear. I have created a DropTarget for the mainform and the DropTarget object implements the IDropTarget interface which allows me to drag and drop files from explorer. Now because I only want some of the child components to be drop targets (not the whole form), I only have the DragEnter method return S_O...
As a developer, I'm trying to setup a development environment on our brand new VMWare ESX server. Things are not working out: somewhere during the SharePoint Product & Technologies Configuration Wizard, the application just disappears, and in the event log I find the following error:
.NET Runtime version 2.0.50727.3082 - Fatal Execution...
How would you implement this property in IDL:
public int[] Params
{
get
{
return _Params;
}
set
{
_Params = value;
}
}
I tried the idl code below
[propget, helpstring("The click through parameters")]
HRESULT Params([out, retval] int *rVal);
[pro...
I have a VC++ COM component with a type library. The type library of this component declares an interface and a co-class:
[
object,
uuid( ActualUuidHere),
dual,
nonextensible,
oleautomation,
hidden,
helpstring( ActualHelpStringHere )
]
interface IWorkflow : IDispatch
{
//irrelevant properties here
}
...
Hi,
I encountered strange behaviour of my application. I would like to close frame window in MDI application, so I send WM_SYSCOMMAND (SC_CLOSE) to that window. After that, I receive OnSysCommand. Then I call CMDIChildWnd::OnSysCommand to proceed processing.
The problem is, that sometimes base implementation of OnSysCommand calls OnCl...
In the Microsoft.Office.Interop.Visio library each entity (for e.g Shape), is described as a class (ShapeClass) and an interface, Shape.
So for each element you have:
interface Shape { ... }
class ShapeClass : Shape { ... }
interface Page { ... }
class PageClass : Page { ... }
...
Why is it designed like this?
...
I want to invoke GetClientSite on a .net control. For this purpose I am trying to cast a control (in example Windows.Forms.Form) to IOleObject which returns null.
What should I do to get IOleObject?
using System;
using System.Runtime.InteropServices;
using System.Security;
using System.Windows.Forms;
namespace Test001
{
public cla...
Does anyone know of good reference material for creating a com addin for the VBA Editor enviroment, i know its exactly the same as writing a com addin for common enviroments using the addin model provided by microsoft using the IDTExtensibility2 interface. just registering the com registry keys to a different location, Where is that loca...
..for an out-of-process-server, or can I call a dispatch interface without registering a proxy/stub?
The interface in question is very high level, so performance is a non-issue, and I could make the whole thing registration-free, which is a big plus
...
I have an Exchange server with lots of mountpoints. Given the path to the database files is there a way to find out what volume they are on? The problem is that they are typically not at the volume mount point, but further down the tree. I'm using Powershell, so I need a solution preferably using WMI but could also use any .NET or COM...
I guess I do have to release also late bound COM objects.
But how is this done directly?
In my situation I use the following code from C# to get the focused point from Google Earth (simplified):
Type oClassType = Type.GetTypeFromProgID("GoogleEarth.ApplicationGE");
object oGE = Activator.CreateInstance(oClassType);
object oCamera = oGE...
Hi,
I'm experimenting with writing ActiveX controls and noticed that I can't seem to create an ActiveX control in Visual Basic (6.0) which features slightly more sophisticated controls. Simple controls like labels, buttons and check boxes seem to work fine, but as soon as I try to add e.g. a tree control to my form, the ActiveX control ...
I'm trying to call a function Size() from a custom COM DLL from PHP. That function should return a struct with 4 members (top, left, bottom, right) however when I call that function from PHP I get the following error:
Error [0x80070057] The parameter is
incorrect.
I don't pass it any parameter and according to the specs it should...
Hello,
I'm writing a .NET component to be used both by other .net clients and by legacy applications via COM interop. During recearch I faced expected problem: there is no configuration in case assembly was invoked via interop.
So now I need to design a workaround for cases my component was invoked via COM (using some default configura...
I know I'm missing something simple, I have next to no experience with these com things.
I would like to do this within an interface in an idl
[id(5), helpstring("Returns true if the object is in a valid state.")]
HRESULT IsValid([out, retval] boolean bValid);
However this gives : [out] paramter is not a pointer.
Ok, I understand th...