all groups > dotnet interop > june 2005 > threads for june 22 - 28, 2005
Filter by week: 1 2 3 4 5
Is OleInitialize required in this case
Posted by **Developer** at 6/28/2005 4:28:22 PM
You must initialize Component Object Model (COM) with CoInitialize or
OleInitialize prior to calling SHGetFileInfo
This statement appears in the Help at location Window Shell and Control.
Does it apply for DotNet VB?
I'm using SHGetFileInfo without initialize and it appears to be wo... more >>
How to correctly set a conformant array argument if a function of an interface is implemented?
Posted by Michael Kremser at 6/27/2005 11:28:36 PM
Hi NG!
I have a class that derives of an interface (IASysCls) which implements
a function with this argument list (the function is then later be called
by a caller):
public void GetSObjDesc(int Start, int Size, out int Length, out Lib.SOD
ODs)
In the IDL file I found this:
HRESULT ... more >>
how to Invoke Static .Net Members from COM application
Posted by mohammad via DotNetMonster.com at 6/27/2005 8:41:50 PM
Hi,
I am trying to use my .Net component from COM application.
I have some static members in my .Net component.
I tried to use reflection to invoke static members.
Any body has example of invoking static members?
Thanks
Mohammad
namespace Mcc.TestAutomation.Utilities
{
public class... more >>
reflection with com
Posted by alexk at 6/27/2005 9:07:21 AM
Hi,
Is reflection (e.g. GetField) is possible on a __ComObject ?
10x, Alex.
... more >>
Marshaling of nested structures
Posted by Luigi at 6/25/2005 2:06:01 AM
I have an ActiveX DLL written in VB6. This library has a class with two
public structures like these
Public Type MyInnerPublicType
...
End Type
Public Type MyPublicType
...
aField(7) as MyInnerPublicType
...
End Type
The same public class as a method like this
P... more >>
impersonation and Excel
Posted by zino at 6/24/2005 1:14:04 PM
on window 2000, I'm automating Excel (server side).
If I set the impersonation in the webConfig file as:
<authentication mode="Windows" />
<identity impersonate="true" userName="myDomain\myUserID"
password="myPassword" />
and run this code :
Dim xl As Object
xl =... more >>
VB6 types marshaling
Posted by Luigi at 6/24/2005 2:59:01 AM
Hi all
I have a COM DLL written in VB6 that exposes a public class with a method
that can be summarized as follow
public function MyPublicMethod(...) as Variant
...
MyPublicMethod = AnotherMethod(...)
...
end function
AnotherMethod is a function that returns a user defined... more >>
calling com+ objects from clients
Posted by volkan at 6/24/2005 12:00:00 AM
H all...
I created a com+ server component but I have a strange problem when calling
it from the client machines on the local network (clients machines can be a
member different domain or has no domain )
when calling com+ object from some clients it works well but some clients
give me an erro... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
CAPICOM: Utilities.ByteArrayToBinaryString and odd number of bytes
Posted by smveloso NO[at]SPAM gmail.com at 6/23/2005 9:41:27 AM
Hi,
I know this subject has been brought up before, but I noticed that
several solutions were suggested, so I ask:
[1] Is it really true that Utilities.ByteArrayToBinaryString does not
correctly handle the convertion of byte arrays with an odd number of
bytes ? I do have a problem valid... more >>
Runtime creation of an OLE Object in C++/CLI
Posted by None at 6/23/2005 5:38:14 AM
Hello
I have an OCX control Xyz.ocx. This is a non UI control. My aim is to
create one of the objects from this control dynamically.
1. I used AxImp on this control and created XYZLib.dll.
2. I then attempted to create the object dynamically in this fashion and
then use one of its expos... more >>
COM/threading and difference between Service and Console App
Posted by PJChan at 6/22/2005 6:40:01 PM
Hi, I've got an app that starts a thread to listen on a tcp port, then starts
another thread to accept the socket connection and exchange some data with
the client. This second thread creates a COM object for internal use.
My problem is that if I test with a console app, the thread that create... more >>
TlbImp marshals array as single ref
Posted by Walter L. Williams at 6/22/2005 2:44:15 PM
When I run TlbImp.exe on my COM dll, the IDL following has an array of
longs:
[local] HRESULT SomeMethod ([in] short nNumBlocks, [in, size_is(nNumBlocks)]
long *alBlocks, [out, retval] long *plRetVal);
The output creates this method, with a ref int where the array should be:
int SomeMet... more >>
ASP.NET + Excel Download
Posted by George Homorozeanu at 6/22/2005 11:16:05 AM
We create an excel object with Excel/Office Interop Assembly and we want to
offer this excel object as download without creating physically the file.
The download window appears with "Save As.", "Open", etc
Problem: The file we get as download is not the excel object we created.
Instea... more >>
Using Outlook application class throws "The specified module could not be found"
Posted by ohad at 6/22/2005 11:00:02 AM
Hello everyone,
I would like to use my Outlook 2003's address book in my application,
so for that i've added a referece to Outlook 11.0 Object Model to my
project.
Then, my first line of code is:
Microsoft.Office.Interop.Outlook.Application App = new
Microsoft.Office.Interop.Outlook.Appl... more >>
problems with Office XP IAs
Posted by test.file NO[at]SPAM gmail.com at 6/22/2005 4:33:51 AM
Hi,
I'm working on a VS 2003 solution with multiple projects that
provides a facility to automate Excel XP (Sp2). We add a bunch of
menus, provide WinForm screens etc. from Excel, and finally invoke
Excel macros, if needed.
Today, on my colleagues pcs, the code started throwing
Missing... more >>
|