all groups > dotnet interop > april 2004 > threads for april 1 - 7, 2004
Filter by week: 1 2 3 4 5
Problem with Winet/HttpOpenRequest & Interop
Posted by o_cardoso NO[at]SPAM yahoo.com at 4/7/2004 7:09:30 PM
Hi,
I'm trying to interop with WinInet.. given this method
HINTERNET HttpOpenRequest(
HINTERNET hConnect,
LPCTSTR lpszVerb,
LPCTSTR lpszObjectName,
LPCTSTR lpszVersion,
LPCTSTR lpszReferer,
LPCTSTR* lpszAcceptTypes,
DWORD dwFlags,
DWORD_PTR dwContext
);
and this pro... more >>
strange activex & mdi child behavior
Posted by Nick Mezei at 4/7/2004 3:32:26 PM
If you have more than one mdi child with an activex control on it the only
way to activate any mdi child is to click on its non client area.
For example:
I have one mdi child with a excel spread sheet ax control. Another with a
outlook pane ax control. A third mdi child with no ax controls. ... more >>
How to marshall an array of structures as out parameters?
Posted by David Hoffer at 4/6/2004 9:09:06 PM
I am having trouble marshalling an array of structures as output parameters.
What am I doing wrong? I assume that when I marshall an array I do not need
the ref attribute since an array is an object. Is this correct? If
correct, then passing an array is the same no matter if it is an in or an
... more >>
Cannot terminate an excel process using VB.NET
Posted by aterra103 NO[at]SPAM comcast.net at 4/6/2004 10:14:44 AM
I hope someone can help me with this.
I am opening an excel object using the:
_XlApp = GetObject(, "excel.Application")
syntax. Excel, itself, is being called from a browser control.
I have tried microsofts suggestion
http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B317109 to
... more >>
Aliasing an interface method
Posted by mrbouffant NO[at]SPAM hotmail.com at 4/6/2004 8:33:24 AM
Hi:
For legacy reasons, I would like to create an interface which exposes
a method called "lock". Unfortunately in C# this is a reserved word.
At the moment, I have the following definition where _lock is
subsituted instead:
---
namespace foo
{
// allow late bind only
[InterfaceType... more >>
C# marshall problem.
Posted by huseyinozkan NO[at]SPAM uekae.tubitak.gov.tr at 4/6/2004 12:42:10 AM
I have a C struct like this
struct
{
int a;
char *b;
}
b is not a string. Instead it is a byte array.
I want to call a dll function with a parameter like this struct above
from c# side. How should I define the struct in C# and how should I
marshall the elements of this struct.... more >>
return string array?
Posted by Daniel at 4/5/2004 10:19:40 PM
Hi, I'm trying to call the function CommandLineToArgvW from C#. This is my
declaration of it:
[DllImport("shell32.dll")]
private static extern string[] CommandLineToArgvW(string lpCmdLine, out int
pNumArgs);
Which to me appears correct, but when I try to call it I get this error:
Can ... more >>
How to marshall an array of nested structures?
Posted by David Hoffer at 4/5/2004 5:42:06 PM
I am trying to pass a structure into an unmanaged C function. This
structure contains an array of another structure. The internal structure
contains an array of integers. This nested structure is an in parameter
only. How can I do this? I have tried several ways of doing this and I
always ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Retrieving unmanaged DLL data attributes from .NET?
Posted by Andrew van der Stock at 4/5/2004 11:52:15 AM
Hi there,
it's trivial to import a unmanaged DLL exported function, like this:
[DllImport("foo.dll")]
Int32 MyFunc(Int32 arg);
But how do you get similar managed access to data attributes exported from
the DLL? The DLL data attribute would be declared like this in VC++ 6.0:
__declspec... more >>
Create ActiveX in C# to place on VB6 form?
Posted by Ian Lowe at 4/5/2004 9:21:17 AM
Hi,
Is there an example or description somewhere that shows how to create a
control in C# and then using COM Interop enable the control to be placed on
a VB6 form?
Ian
... more >>
Getting: COM object that has been separated from its underlying RCW can not be used.
Posted by Steen Tøttrup at 4/5/2004 9:07:47 AM
I'm working with System.Management (my guess is that it is using InterOp to
use the "old" WMI classes), and suddently I start getting this error:
COM object that has been separated from its underlying RCW can not be used.
Why is that?? The methods that fail are called from a windows service... more >>
p/Invoke and CLS compliancy
Posted by Andreas Håkansson at 4/3/2004 1:27:15 AM
Hello,
Since I do not have that much Win32 experience I would like to pick your
brains for just a second. Many API, struct and flag declarations use DWORD
or WORD parameters which (according to the MSDN docs) should be
translated into uint and ushort. However non of these types are CLS
co... more >>
File properties dialog
Posted by Oren at 4/3/2004 1:11:03 AM
Hi, all
How can I display File properties dialog (r-click a file in Explorer, the
click "Properties"menuitem) - C# Windows Applicatio
Thanks a lot!... more >>
Get reference to open instance of excel doesn't work
Posted by Aaron Prohaska at 4/2/2004 12:57:13 PM
Can anyone tell me why I get this error when try to instantiate an
instance of excel? I have tried this in a test WinForms app and it works
fine, its only not working from the web app.
Exception Details: System.Runtime.InteropServices.COMException:
Operation unavailable
Source Error:
... more >>
passing buffer to unmanaged dll function
Posted by Pascal Cloup at 4/2/2004 12:48:42 PM
Hello,
How to (in C#) create and send a buffer (of short) to an unmanaged dll
function declared in C like this:
status = theFunction (..., short *buffer, ....)
Are the 2 following methods good?
the first:
[DllImport("theDll.dll")]
public static extern short theFunction( ... , Syste... more >>
Calling .Net DLL from Delphi/VB6
Posted by Bob at 4/2/2004 12:29:46 PM
Hi,
I have a Delphi app which needs to call a DLL created using VB.Net.
I have created a sample DLL which has a single public function. This takes a
string as input and returns a string, very simple.
I then generated a strong name and registered in the GAC. All fine so far. I
then use reg... more >>
DLLHOST crashes when network is unplugged
Posted by Ramesh K at 4/2/2004 10:38:44 AM
Hi All,
When network is unplugged components which are residing under COM+
crashes during component creation, this is the case with the components
which are compiled with VC .NET. If the same component is compiled with
VC6.0 component creation is successful.
Any suggestion are welcome.
... more >>
Newbie question
Posted by jonathan.fletcher NO[at]SPAM virgin.net at 4/2/2004 3:48:26 AM
I am very confused about COM interopability and .net!
Particulary when it comes to the registry and CLASSID's etc.
For example...
1. I compile a .net application with a reference to a local COM
component on my development server
2. I copy over the assembly to the live environment
How... more >>
Project: Consuming Win32 Interfaces
Posted by Andreas Håkansson at 4/2/2004 1:14:29 AM
Hello,
So this is how it is. I am trying to learn how to use interfaces from
Win32 and I
decided to go for the IShellLink interface in my study. What I would like
from this
post is to get gradual feedback as I need it, that is I am not asking for a
full solution,
but instead I would li... more >>
HTMlDocumentClass.CreateDocumentFromUrl is not working in .NET .
Posted by Kumar at 4/1/2004 5:41:02 PM
HTMlDocumentClass.CreateDocumentFromUrl is not working in .NET
mshtml.HTMLDocumentClass ms = new mshtml.HTMLDocumentClass();
mshtml.IHTMLDocument2 ms1
ms1 = ms.createDocumentFromUrl(@"http://kumarsub-ri2/om5prototype/ie6/test.htm","")
the APO is throwing a Null Exception
Is this... more >>
Create ActiveX component with vb.net?
Posted by Walter Zydhek at 4/1/2004 3:51:04 PM
Is it possible to create an activex component using vb.net
I need to make a component to be used by a Windows Scripting Host vb script
but wish to use some features available in vb.net for the component
... more >>
VB6 string arrays with NULLS truncating when returned to vb.net
Posted by Patrick Horn at 4/1/2004 9:40:25 AM
I am calling a VB6 dll from a vb.net windows application that returns an array of strings. My issue is it seems to truncate after a NULL character.
For Example VB 6 is returning a string with the HEX value of 4E 31 00 00 01 00 20 20 20 20 20 00 00 00 20 20 20 31 32 30
But when it gets back t... more >>
Calling .NET Component from C++
Posted by Sascha Fueller at 4/1/2004 9:04:22 AM
Hello,
I want to call a .NET Component from my Class in C++.
Is it possible to do this by managed extensions?
I don't want to export my .NET component to COM.
Thanks in advance
Sascha
... more >>
|