Accessing OLE Object properties from C#
Thu, 8 Dec 2005 07:29:46 -0800
Hi there,
I am trying to use a COM object (written in C++) from an Excel add-in in C#.
So far, in every directions I looked, I have been unable to access the
properties of my COM component. Here is what I did:
- use Interop conversion
- instantiate the class
- try to access the properties (which are visi ...
|
Authenticode check on a DCOM component
Tue, 6 Dec 2005 10:02:15 +0100
Hi,
We are building an application in which it is important that client
components can verify the authenticity of the server component, in order to
prevent a 'man-in-the-middle' attack, where an adversary could create a COM
component with the same signature (Guid, TypeLib) as the real server
component.
...
|
IDropTarget: How do I detect a drag with the right mouse button?
30 Nov 2005 14:10:09 -0800
It seems that the key state in IDropTarget::Drop never contains
MK_RBUTTON. Is there another way to do this?
...
|
com returning arrays
Tue, 29 Nov 2005 10:18:57 +0100
hallo
from within a com-server i want to fill an array (of int or long) and
return that to a vbscript-client.
i declared the com-method as follows:
[id(11), helpstring("Methode Count")] HRESULT Count([in] VARIANT
CharacteristicFlags, [out] VARIANT*
pIndices, [out, retval] VARIANT* pCount);
the array ...
|
com retuning arrays
Tue, 29 Nov 2005 10:18:41 +0100
hallo
from within a com-server i want to fill an array (of int or long) and
return that to a vbscript-client.
i declared the com-method as follows:
[id(11), helpstring("Methode Count")] HRESULT Count([in] VARIANT
CharacteristicFlags, [out] VARIANT*
pIndices, [out, retval] VARIANT* pCount);
the array ...
|
error LNK2019: unresolved external symbol "void __stdcall _com_issue_error(long)" (?_com_issue_error@@YGXJ@Z) referenced in function
Tue, 29 Nov 2005 02:35:58 -0600
I am using the samrt pointer in DDK
_COM_SMARTPTR_TYPEDEF(IXMLDOMDocument, __uuidof(IXMLDOMDocument));
Getting the error.
error LNK2019: unresolved external symbol "void __stdcall
_com_issue_error(long)" (?_com_issue_error@@YGXJ@Z) referenced in function
any suggestion ...
|
RPC server is unavailable
Mon, 28 Nov 2005 15:51:34 +0700
Hi all,
I have a COM exe which was declare as a windows service, a COM dll, and a
Client.
The server have contain an interface of COM dll
and it has two methods GetObject and SetObject for getting and setting this
variable.
Everything is OK with Get and Set method
But
When client call GetObject to ...
|
|
|
2.) Does every CoClass have to support IClassFactory?
Mon, 28 Nov 2005 08:03:00 +0100
Here is my second question:
2. Is it really true, that every class object must derive from
IClassFactory? Well, Don Box says something different on page 116:
"Class objects are not required to implement IClassFactory, but, for
uniformity, they often do." I understand that there are at least two
situations t ...
|
1.) IRpcProxyBuffer must be the nondelegating unknown???
Mon, 28 Nov 2005 07:59:57 +0100
Hi folks,
I had a very pleasent weekend spent in front of some COM-related
literature. Now I'm confused. I hope you can enlighten me.
1. This is about binary composition. I read the the corresponding
chapter in Don Box's book and got puzzled a bit. Now that I have read it
for the x-th time I think I final ...
|
Impersonation & ROT
Thu, 24 Nov 2005 06:50:25 +0300
Hello,
I want to run program under User1 and to enumerate objects registered in ROT
for User2. I use LogonUser/ImpersonateLoggedOnUser. All is ok if I run code
from a stand-alone executable. The problems occure in such situation:
I have COM object (DLL) with method TestDumpROT. I instantiate this object
i ...
|