all groups > dotnet interop > june 2004 > threads for june 1 - 7, 2004
Filter by week: 1 2 3 4 5
Finalize doesn't run
Posted by MacDermott at 6/7/2004 11:22:14 PM
I have a VB.NET DLL, which contains a class I instantiate from a VB 6.0
application.
The instance is named NetTest, and functions very nicely.
When I'm through with it, I execute this line of code in VB 6.0:
Set NetTest = Nothing
I can step through the code and see this line executing.
... more >>
[Encoder] NS_E_NO_VALID_OUTPUT_STREAM
Posted by Riley Phelps at 6/7/2004 5:21:03 PM
Hi everybody
I am using the WM9 Encoder SDK in C# and have created an encodin
application
My piece of software is (was) working fine for weeks now, encodin
WMV's and AVI's into WMV's ... just fin
Now I have found an .avi movie that my encoder does NOT want t
encode
My Encoder.PrepareToEncod... more >>
vb.net server application (like vb6 ActiveX EXE)
Posted by RJH at 6/7/2004 5:16:02 PM
My VB6 app was a single instance ActiveX EXE. This meant that multiple applications could connect to the single instance to control it. After porting to VB.NET, how do I get this same functionality? I have tried adding a COM interface to the app, but when the class is created, a new class is created... more >>
Out of process ActiveX controls - WebBrowserControl......
Posted by Robin Tucker at 6/7/2004 4:10:50 PM
I have problem with my project with respect to "out of process" controls.
One of these controls is the WebBrowser control and the other an in-house
OLE control that has had the ActiveX interfaces bolted onto it to try and
get it to work with VB.NET.
When I attempt to use either of these contro... more >>
Avoid exception handling within search of collections
Posted by Patrick Kowalzick at 6/7/2004 11:40:37 AM
Dear all,
I use Visual Studio .NET 2003 and C# to create an Excel Add-In.
I always run in the same problem when I want to test if a named member in a
collection exists. The only way I get it running is with exception handling.
For just checking "if" something exist, I think it is not too nic... more >>
Calling Unmanaged Framework API StrongNameSignatureGeneration() via P/Invoke
Posted by Jacek at 6/7/2004 10:05:42 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi All!
My manged code has to sign created assemblies programatically. I have
found handy function provided by .NET Framework Unmanaged API -
StrongNameSignatureGeneration. I experimented with it but despite
success return values assemblies a... more >>
C# just unable to produce compatible components? (strings revisited)
Posted by Christopher Robert at 6/7/2004 7:38:05 AM
I thought my C# COM handler could take all variety of VBScript string
parameters when I used code like the following:
public void COMFunc(object strParam) {
string str=strParam.ToString();
}
But although it worked for strings and null values, it turns out not to work
with ADO strings. ... more >>
Recordset - Object Required
Posted by rob at 6/7/2004 6:23:57 AM
Dear All,
I have a COM+ component that returns an ADODB.Recordset. In an include file
that is included by an aspx page I assign that returned recorset to an
ADODB._Recordset. Unfortunately, this assignment breaks and after many days
I still couldn't figure out why. Therefore, any help is highl... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ActiveX Control written in C# Socket problem
Posted by mjcast at 6/7/2004 6:21:08 AM
I have been working on an ActiveX control in C#. It is packaged in a Windows Control library and the code is in a user control. The control is used as an automation receiver that is used to update a page dynamically through the use of event listeners in javascript
That works, the problem is that wh... more >>
Reading raw data from a HID-device
Posted by David Mulford at 6/6/2004 5:16:31 PM
Hi,
I'm trying to read raw input from a HID-device. I have tried both C# and
VB.NET with no success.
Right now I'm trying to list the raw input devices using
GETRAWINPUTDEVICELIST. My problem, I think, is that the function
GETRAWINPUTDEVICELIST needs a pointer to a structure called RAWINPUT... more >>
QueryInterface discution
Posted by Renato Aloi at 6/4/2004 3:49:33 PM
Is there a more elegant way to solve the authentication problem when using
COM components in ASP.NET application? I have found some tips on how to
solve this issue, but the only one that worked to me was setting identity
impersonate element at web.config file to a valid user. The problem of this
... more >>
How to interop ArrayList?
Posted by roynorthyork NO[at]SPAM yahoo.com at 6/4/2004 11:30:03 AM
I had created a class library which return ArrayList or has ArrayList
as a parameter.
After interop, inside type library, i.e.
VARIANT_BOOL SetDomain([in] _ArrayList* agentObjects);
How can I use it in C++ client? I fail to find any matched type.
Thanks a lot!... more >>
Delphi VarArrayCreate() to C#
Posted by Bill Gaddis at 6/4/2004 8:01:05 AM
I am needing to know how to translate the VarArrayCreate method in Delphi into c#. Let me step back and explain the scenario
I am in the process of converting a Delphi program over to C#. The ActiveX component is Tidestone's F1Book spreadsheet that was developed prior to the .Net craze. And, of ... more >>
VB.Net Get Users NT Groups (No ADS)
Posted by bertoneill NO[at]SPAM hotmail.com at 6/4/2004 2:27:05 AM
Hi
I am looking to get the NT Groups a user belongs too, using VB.Net.
Our systems are not Active Directory Service enabled (NT 4).
I have trolled the web and can find very little example code on how to
do this in VB.Net
I would be very grateful if you could provide me with some snippet of... more >>
Marshal structure problem - strings and byte arrays get NULL terminated.
Posted by Lee Gillie at 6/3/2004 2:53:11 PM
I have a structure I want to marshal to and from a byte array.
But I find the process is shortening my strings by one byte, and a
zero byte replaces it. And also byte arrays are shortened by one
element, and a zero byte replaces it. I would like to avoid the
zero-byte replacements in both ca... more >>
Bi-directional communication between IE(aspx) and embedded Win Ctrl
Posted by RBisch at 6/3/2004 9:16:01 AM
Hi all,
I have a web application (asp.net) that is communicating with an embedded windows control (local ctrl) hosted by Internet Explorer. I have been passing data and raising events fine via Interface programming (IDispatch). However, the only data I've been passing has been strings, bool, and ... more >>
COMException "Unable to process message at this time"
Posted by Samuel Jack at 6/3/2004 8:36:03 AM
Hello
I have a COM Interop problem
I am using reflection ( typeName.InvokeMember(methodName BindingFlags.InvokeMethod, null, object, args) ) to do late bound calls to methods on a COM object. Most of the time this works fine: occasionally (and unpredictably) however, I get a COMException "Unab... more >>
IDispose/Finalize and COM interop
Posted by Nick Hall at 6/2/2004 2:14:25 PM
I'm trying to work out the best way of handling the following situation.
I have a class which instantiates a COM object in its constructor and calls
an Advise method on it (the object does not implement the usual connection
points interfaces so I can't just listen for events as I would like to)... more >>
Using window handles in managed code
Posted by Clyde at 6/2/2004 1:56:02 PM
In a managed class implemented as a com object, I want to pass a window handle from the client into the com object and use it as the parent of a form shown as a dialog. How can I convert the handle (passed as a long) into a IWin32Window object
... more >>
Passing Arrays from ASP to .Net and back again
Posted by Odie at 6/2/2004 12:51:04 PM
We're having problems passing arrays from ASP pages to .NET (Interop) classes.
Let's assume that we just want to pass a string array (byref) from ASP to .Net. The first problem is that unless we declare the array as object[] in .Net, we get a error from ASP. This may be a mistake, but let's conti... more >>
calling .NET lib from Win32
Posted by EdgarBM at 6/2/2004 9:09:34 AM
Hi,
I think is possible to call a .NET library (managed code)
from a Win32 library (unmanaged code) if the NET library
is COM registered, is it true?
Any way, is there any other way?
Thank you in advance,
Edgar... more >>
SAPI 5.1 Audio Event
Posted by Brian Long at 6/1/2004 12:27:34 PM
Hi,
I'm doing some COM Interop against SAPI 5.1 using an Interop Assembly.
Many simple things are working fine - the Word & Sentence events fire well.
However the Audio event does not fire at all meaning I can't add a VU meter
I have specified the required event in the EventInterests pro... more >>
MSHTML passing a RemotableHandle C#
Posted by msoliven NO[at]SPAM fssnet.com at 6/1/2004 11:58:14 AM
Hi People,
I'm having trouble passing a Windows Handle ( regardless of whether it
is a Bitmap or Printer Handler ) to the MSHTML Active X control's
IHTMLElementRender interface to the DrawToDC() method using C#.
The first approach that I did was to use the RemotableHandle structure
exposed ... more >>
|