all groups > dotnet interop > december 2003 > threads for december 1 - 7, 2003
Filter by week: 1 2 3 4 5
Long far *
Posted by mcdermidd NO[at]SPAM sprintmail.com at 12/7/2003 7:00:19 PM
I am having a bear of a time getting this to work. The C++ prototype
is
#define FEXPORT __declspec (dllexport)
#define FTYPE CALLBACK
FEXPORT LRESULT FTYPE DeviceOpen(ULONG DeviceNum, LONG far *
DeviceHandle);
and the usage is like
LONG DriverHandle = (LONG)NULL;
DRV_DeviceOpen(0,(LONG... more >>
in place activation
Posted by Dado at 12/7/2003 9:21:37 AM
i need to host in place UI servers in my .net winforms
app.
is it possible?
a code sample will be greatly appriciated.
thanks
Dado... more >>
Hang up when PInvoking DnsRecordListFree() in c#
Posted by Charles Sauthier at 12/5/2003 6:54:22 PM
Hi everybody,
I'm trying to reverse an IP in c# with PInvoke and the DNSAPI instead of
using the Dns class (because this later doesn't permit to deactivate the
NETBT resolution, and having in mind of MX reverses and so on). The
following code works perfectly, except the call to DnsRecordListFr... more >>
Calling VB6 COM from VB.NET, best way to deploy?
Posted by Jim Daniels at 12/5/2003 6:27:49 PM
My VB.NET app needed to use functionality from an existing COM+ (VB6) DLL.
So, I did "Add Reference" and added the COM reference. Visual Studio.NET
automatically generated a DLL, "Interop.<COM-DLL-NAME>.dll"
This is a console application that is part of a batch process. Everything
works fine... more >>
Marshalling `bool' .NET type to a unsigned char C type
Posted by Emmanuel Stapf at 12/5/2003 4:56:21 PM
Hi,
I have the following C code generated in `test.dll':
__declspec(dllexport) unsigned char __stdcall test (int i, int j)
{
return (unsigned char) ((i & j) == j);
}
In the .NET side I map it into:
..method public hidebysig static pinvokeimpl("test.dll" ansi)
bool tes... more >>
QueryInterface for interface Excel._Application failed
Posted by KC at 12/5/2003 1:58:41 PM
Hi Gurus,
I am having problem opening an excel file from vb.net. My code looks like
this:
Dim EXL as Excel.Application
Dim wrkbook As Excel.Workbook
EXL = GetObject("", "Excel.Application")
EXL = CreateObject("Excel.Application")
wrkbook = EXL.Workbooks.Open("D:\Book1.xls")
It works fi... more >>
GetIDsOfNames throws COMException Unknown Name
Posted by rampv NO[at]SPAM aztec.soft.net at 12/4/2003 11:12:14 PM
I am using Platform Invoke and I am trying to execute a sample
VBScript using IDispatch.Invoke. However, when I call
IDispatch.GetIDsOfNames I get an error Unknwon Name. Any help would be
appreciated? Below is the sample code.
I have implemented IDispatch interface and other interfaces in C#
... more >>
How to create COM exe server in NET
Posted by Volodia at 12/4/2003 9:54:39 PM
Hi
In VB6 it is very easy to create out proc server in ActiveX.exe project.
How to do that in .NET ?
If I understood properly - there are no ways to do that in .NET
It looks like by design?
Thanks,
Voloida.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Binary Compatibility with Managed C++
Posted by MT at 12/4/2003 8:29:05 PM
I have the following structure in a DLL:
namespace myDLL{
public __gc class Base
{
public:
void Method1();
};
public __gc class Child
: public Base
{
public:
void Method2();
};
}
I want to expose this to COM clients and maintain binary compatibility when
I ... more >>
Hanging message pump in a winform during COM call
Posted by David Bradshaw at 12/4/2003 5:59:27 PM
Hi,
I have a very simple windows forms application that needs to execute a
method on a COM object that takes several seconds to complete. The COM
object requires STA and is implemented in a DLL in-proc server.
My approach is to construct a second thread, in order to execute my COM call
with... more >>
Excel 2003 + Solver + C#
Posted by David at 12/4/2003 7:49:25 AM
Sorry for the cross post but I need an answer to this
ASAP and wasn't sure which newsgroup is the most relevant
since this problem covers a number of areas.
Problem:
How to automate Excel 2003 with C# and use the Excel
Solver add-in.
I've setup a spreadsheet that has a number of cells... more >>
C# PInvoke definition for INVALID_HANDLE_VALUE
Posted by JasonL at 12/3/2003 12:46:54 PM
Hey all,
INVALID_HANDLE_VALUE is #DEFINE-d like so (in winbase.h):
((HANDLE)(LONG_PTR)-1)
which I'm reading as -1 cast to LONG_PTR cast to HANDLE.
So my C#:
IntPtr INVALID_HANDLE_VALUE = new IntPtr(-1);
Am I on the right track?
Tnx,
Jason Langston
... more >>
COM inheritance in CCW assembly
Posted by D Bates at 12/3/2003 3:43:39 AM
Hello
I've created a Test assembly below which I plan to expose
as a COM object using CCW. I would like this assembly to
inherit another COM object (eg myCOMobj.myClass), is this
possible?
If so how could I update the code below to inherit
myCOMobj.myClass with a interface of myCOMobj.Im... more >>
Adding a string name to Interop.Excel.dll
Posted by Tim Marsden at 12/2/2003 11:20:38 PM
Hi,
I have a VB.NET (VS 2003, .NET 1.1) application which references Excel 2000.
This generates Interop.Excel.dll.
The generated .dll is invalid, so I use ildasm to generate a .il file. I
change to .il file (changing some [in] to [in][out] so events work
properly).
I have a .snk file generat... more >>
How to convert from IStream to System.IO.Stream
Posted by MJB at 12/2/2003 10:08:30 PM
I'm getting an IStream back from function xmlHttp.responsestream. I would
like to convert this to a System.IO.Stream in order to work with it in my
application. Has anyone encountered this and written a conversion?
TIA,
Matt
... more >>
interop msxml and solution structuring
Posted by russ holmes at 12/2/2003 1:26:26 PM
I am migrating a VB6 COM web application to VB.Net.
I have several (lets say 2) vb projects which currently compile to 2 dlls
Each VB6 project references the msxml4.dll
After passing each project through the MS .net migration tool I end up with
a bin directory which contains interop dlls for the... more >>
COM object not registered
Posted by Mark Preuss at 12/2/2003 8:20:26 AM
Hi,
I am trying to access an object from the RSView32 object model. In doing
so I get the message :
COM object with CLSID {0C599E91-BC23-11D0-95FC-00A024E91813} is either not
valid or not registered.
I have some questions :
1) Can I use regsvr32 to register this?
2) When is a COM object... more >>
Missing Microsoft.Office.Interop
Posted by James J. at 12/2/2003 7:01:27 AM
I cannot find the Office.Interop.Word.dll in the New release version of Office. I developed some .Net Word applications under the Word 2003 Beta release. I did not install the release version until after the Beta expired. Now I have installed the release version, but .Net still complains that I h... more >>
Trouble interoping to VB6 with fixed-length strings
Posted by Eric Johannsen at 12/1/2003 7:28:26 PM
Reposted from ...languages.csharp because this group seems more appropriate:
Hi,
My C# code is calling VB6 code, which expects all (fixed-length) strings to
be padded with spaces. The strings are contained with a struct, something
like this (attributes to simulate fixed-length in C# omitted... more >>
Active X control and Strong Named assembly
Posted by ktuel NO[at]SPAM streck.com at 12/1/2003 12:31:23 PM
I have an assembly with a strong name. I am trying to use several
Active X controls. I understand these controls need to be strong
names also. What I don't understand is how to do that. I have run
'aximp c:\winnt\system32\msmask32.ocx
/keyfile:"[keypath]\[keyfile].snk"' which created 2 file... more >>
Add-In Loading Problem
Posted by Jason Callas at 12/1/2003 10:58:09 AM
I had created an Excel Add-In using .net interop. The wizard created a setup
solution and the app installed with no errors. When Excel ran, the add-in
loaded like it was supposed to.
I fixed some minor bugs and am tryin to redeploy the app. Again, it installs
with no problems but now Excel doe... more >>
COM Interop weird problem
Posted by mayerber at 12/1/2003 9:44:57 AM
Hi,
I'm writing a small C# WinForms application to COM
Interop with Windows Messenger (v4.7.2009). Basically the
purpose of the app is to catch the messages that I
receive in Windows Messenger while I'm away from the PC
and forward them to my cell phone through SMS. So far so
good.
N... more >>
Can create object using C++ CoCreateInstance, but not using C# Activator.CreateInstance
Posted by Brian Rogers at 12/1/2003 8:26:24 AM
Hello everyone,
I apologize for the cross and re-post, but I am still searching for an
answer.
Why can C++ can create this object, but C# can't?
I am trying to create an instance of the default FTP asynchronous pluggable
protocol adaptor, so I can analyse the traffic between urlmon.dll (I... more >>
|