Hi All,
I drive into this issue:
I create COM object using C#, register it and managed to work with it using powershell.
when i trying to do the same with JavaScript it fails, but javascript keeps throwing object null errors.
Do you have any advice on how to fix this problem? or maybe you JavaScript doesn't support COM (if so, where can...
I have a php script which lists workgroups/domains, computers in workgroups/domains and shares on computers. The apache is running under specific credentials (so not Local System), so it has access on LAN.
Listing subfolders of the shares is working partially: only with latin characters.
For example if I have a computer named ABC and a...
Hi,
I create a .net COM object (C#), register it using regasm \codebase.
The object work as expected in various languages (powershell, C# etc'), but fail when i' trying to use JScript.
The object is null, i don't know what else can i do (i'm using newActivx(...)).
Maybe the registration was not good? if so - why it works in powershell?
...
Windows SDK features IsEqualGUID() function and operator==() for two GUIDs that return BOOL (equivalent to int):
// Guiddef.h
#ifdef __cplusplus
__inline int IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
{
return !memcmp(&rguid1, &rguid2, sizeof(GUID));
}
#else // ! __cplusplus
#define IsEqualGUID(rguid1, rguid2) (!memcmp(rguid1...
I'm trying to create a COM Class Library for my VBA Project and one of the limitations I've seemed to have stumbled across is using constructors on the New() subroutine. After creating the new COM class a Public Sub New() is created with the following comments
' A creatable COM class must have a Public Sub New()
' with no parameters, ...
i worte a dll of com object
i registered it
where can i find this dll now in my machine
(when we register dll to where the nachine copy the dll)
and more question if i try to use this com object in powerShell everything thong work well
if i try to use it in javaScript i get exception
any idea??? why??
...
I have a COM project that contains a number of IDL files, some of which are imported into other ones. How does Visual Studio decide which ones to compile (using MIDL) first?
I want to control the order. I have a master IDL file which contains my library declaration with several imports, and I get a build error if it is not the first one...
Hi,
I have C# com object and i'm trying to call function from jscript.
This function get parameters (other com object) and use another dll to do something.
The object created but when i'm calling the function i'm getting this error:
Could not load file or assembly 'MyDLL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of i...
I am moving some old vb6 code from nero burning sdk to IMAPIv2. To prolong its life a little longer
I randomly (not very often) get this error "Automation error. Class already exists" -1062599675
Any suggestions as to what is causing it and how to fix it?
My guess is that my code isn't properly releasing the COM objects its creating.
H...
I'm trying to create a COM Object from a dll in a new thread in Python - so I can run a message pump in that thread:
from comtypes.client import CreateObject
import threading
class MessageThread(threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
self.daemon = True
def run(self):
pri...
I have an application that uses the Crystal Report COM SDK to create and manipulate reports against a Crystal Enterprise 10 repository. I would like to upgrade from Crystal Enterprise 10 to BusinessObjects XI and try to minimize changes to the existing application. I remember that the initial BusinessObjects XI release had a COM SDK pro...
How do I create a dynamic COM/OLE/ActiveX object in C# 4.0 from a program identifier or ProgID (such as "Word.Application") without referencing a library?
In C# 3.5 I'd have to write something like
Type comObjectType = Type.GetTypeFromProgID(progId, true);
Activator.CreateInstance(comObjectType);
Is there an easier way to do it in C#...
I have a legacy COM object written in C++ that I need to debug from a C# client. I just need to step through the C++ code, not the C# code. Is this possible? How does one go about setting this up?
...
Hi. I have an WPF Full Tust explorer application that uses a COM assembly.
In some computers it works fine, in other ones it fails. There are too kind ok exceptions I got: ComException and FileNotFoundException. In the first case the dll arrives to clinet but the COm generator isn´t found (wich is the Com generator?? must i add it to th...
I have a COM interface method definition in IDL as follows:
[id(8)]
HRESULT GetBinData([in,out,size_is(dataLen)]BYTE data[], [in]LONG dataLen);
It is mapped automatically to this .NET IL code (note that no MarshallAs LPArray is used on data):
.method /*06000021*/ public hidebysig newslot virtual
instance void GetBinData([in][o...
I have a C# method that is calling a C++ method.
The C++ method uses WMI, so it calls CoInitializeEx(0, COINIT_MULTITHREADED) and then CoInitializeSecurity etc... before making the WMI select.
My Problem, CoInitializeEX if failing with code 2147417850 (RPC_E_CHANGED_MODE)
I tried to create a new STA thread from c# and call the c++ meth...
I'm creating a COM type library with over one hundred interfaces. Defining all of the interfaces and coclasses in a single library is unreasonable... the IDL file becomes thousands of lines long! So I'm trying the idea of putting each interface in its own file, and using imports to satisfy its dependencies.
What strategies can I use to ...
I have two questions.
1)Does Windows Phone 7 support COM? .NET Framework knows such attributes like ComVisible, but I am not sure after all.
2)System.Runtime.InteropServices.Marshal misses any COM functions. Particularly, if the first question is answered positive, I miss StringToBSTR and GetObjectForNativeVariant. I am sure both funct...
I'm currently working on some .Net based software (.Net Framework 3.5 SP1) that integrates with HP Quality Center 10.0 through it's COM Client API (often referred to as TDApiOle80 or TDApiOle80.TDConnection).
We are using XUnit 1.6.1.1521 and Gallio 3.1.397.0 (invoked from an msbuild file)
We go through a process of:
Creating a conne...
I want to write a Delphi function to register a dll. I want the function to check if OleInitialize has already been called before it does so. I guess I'm trying to avoid the consequences of initializing twice because I'm not sure what they might be. I'm worried that my function won't handle as wide a variety of dlls as regsvr32.exe.
...