all groups > dotnet interop > november 2005 > threads for november 1 - 7, 2005
Filter by week: 1 2 3 4 5
Do I need My COM's to have same CID when Deployed
Posted by Ali Elhamdi at 11/7/2005 4:28:25 PM
This might be a stupid question but it is not covered in any materials I
have been reviewing.
Basically, I am consuming a COM component using interop in my .ASP.Net
application. When I move code over to production and run the project, I get
the following error:
COM object with CLSID {4A... more >>
Trying to create a dll accessible from SQL Server (sp_OACreate), here is my code..
Posted by Todd S at 11/4/2005 1:26:08 PM
I am trying to create a class library accessible to in SQL server as a
COM. I am using the Wininet.dll and can get it to build successfully. I
then run tlbexp and create the type library and when I attempt to
register the dll with regasm.exe I get the following error:
RegAsm : warning RA0000 :... more >>
Implementing class 'xxx' for interface <yyy> cannot be found
Posted by Jamie_C at 11/4/2005 3:12:01 AM
Hi - I'm trying to call our existing COM software components from a new .NET
2005 project I am writing. The COM stuff in question is a DLL written in VB6.
Adding this as a COM reference in the IDE project Properties dialog produces
an interop DLL as expected, but as my .NET assemby is "strong... more >>
pointer to a c++struct kept by c# code
Posted by antoine at 11/4/2005 12:00:00 AM
hi,
i would like to know how a c# class can keep a reference (pointer) to a
structure
allocated by unmanaged c++ code.
******************************************************
c++
struct MyUnmanagedStruct
{
int foo;
}
__declspec(dllexport) void GetAPtrToAnUnmanagedStruct( MyUnmana... more >>
Object pointer to IntPtr.
Posted by Per Rasmussen at 11/4/2005 12:00:00 AM
How do I get an IntPtr to a specified object, or rather, how do I convert an
Object to an IntPtr?
Thanks in advance,
Per Rasmussen.
... more >>
app.config with .Net written COM
Posted by Baron Ng at 11/3/2005 5:38:02 PM
Hi,
I wrote a COM (ABC.dll) using VS.Net 2005
since it is not an application; I don't know how it can access app.config
(ABC.dll.config)
I tried ConfigurationManager.AppSettings but it didn't work
any idea?!
Thanks!... more >>
Transfer protected media file license to device
Posted by DKT at 11/2/2005 3:48:01 PM
Hi,
We are trying to transfer a protected file (with DRM) to a portable device
using Windows Media Device Manager SDK (WMDMsdk) . We have no problem running
this as an ATL application. But since our application is written in C#, we're
trying to write a DLL in c++ that will enable the c# appl... more >>
Accessing Unmanaged code from ASP.net
Posted by admiller97 NO[at]SPAM gmail.com at 11/2/2005 2:31:38 PM
I've got some code to access an unmanaged dll, and it works fine in a
windows based app, but when I move the code to a web application it
does not work. It does not throw an error, it acts like the code never
gets called.
private class dllWrap
{
[DllImport("C:\\ProcessComman... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to create an out of proc server using C#?
Posted by MarlonB at 11/2/2005 11:28:04 AM
I would like to create a singleton out of proc server using C# to be called
by a legacy COM client. I don't want to use NT service. Has anybody done
this. All the example I've seen are all either InProc or NT service.... more >>
RasDial does not send password when called from .NET
Posted by Roland Bär at 11/2/2005 9:25:21 AM
In an Application I have to Connect to another machine via RAS. I have done a
wrapper that impoerts the needed functions from rasapi32.dll. The application
was developed on a windows 2000 server machine. The Dialup worked ok on this
machine.
When I installed the Application on an Windows 200... more >>
Killing an Unmanaged VB6 COM Process from C#
Posted by Christopher G. Carnahan at 11/1/2005 1:37:18 PM
I have a C# service that is making regular calls into an out-of-process COM
component written in VB6. Problem is, if the VB component blocks and hangs,
or goes into an infinite loop (don't ask why, it just does), then I want to
free and release it.
When I've decided I'm done waiting for th... more >>
Share or put a .NET DLL in a global cash /Register
Posted by Behnam at 11/1/2005 10:52:21 AM
Hello,
I would appreciate if anyone can advise how to share or put a .NET DLL
in a global cash or share place for other projects to be able to call.
A piece of sample code would be nicer. (VB.NET)
Thanks
... more >>
Implementing ADSI and using System.DirectoryServices
Posted by dumchikov NO[at]SPAM gmail.com at 11/1/2005 4:57:37 AM
Hi,
I have implemented the IADs interface in .NET. And I want to use
System.DirectoryServices.DirectoryEntry class with my implementation.
The DirectoryEntry has the constructor DirectoryServices(Object obj).
So I supposed, that I can use it if I passed my implementation there.
But the Argume... more >>
Passing variants from VBA to C# COM object
Posted by Ruslan Popov at 11/1/2005 4:05:01 AM
Hello,
Is there a way to pass variant parameters from VBA to a C# COM object?
Specifically, I'd like a class to have an indexer property to store different
types from VBA - numbers, strings and dates. In C# I should be able to detect
what actual type is passed. So, the type should be varian... more >>
Problems calling native GetIfTable function
Posted by Catherine S. Lowery at 11/1/2005 12:00:00 AM
Hello everyone,
I need to call the native function GetIfTable() and set up everything to
do so as follows:
----- START OF CODE -----
[DllImport("iphlpapi.dll", SetLastError = true)]
public static extern int GetIfTable(
IntPtr pIfTable,
ref uint pdwSize,
bool bOrder
);
[StructLayo... more >>
|