Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008


all groups > dotnet interop > january 2006 > threads for january 22 - 28, 2006

Filter by week: 1 2 3 4 5

Problems when Interface pointer returned from one thread, Getting called from another thread
Posted by staheli.bob NO[at]SPAM gmail.com at 1/28/2006 9:23:03 PM
I am developing a namespace extension in .Net and I am returning a pointer to the IExtractImage interface for thumbnail extraction. However, the interface methods are called on a different thread by Windows Explorer and as a result, Explorer slows down considerably. I am sure this is caused due ...more >>

<DLL> does not contain any types that can be registered for COM Interop.
Posted by Dick Swager at 1/28/2006 7:57:39 PM
After selecting 'Register for COM Interop' for a project with a class and a couple of interfaces in it, I am getting a message that the resulting assembly DLL 'does not contain any types that can be registered for COM Interop'. There is only one file in the project and only this one project ...more >>

How to call variouse COM wrappers in mscorwks.dll from managed cod
Posted by Dec at 1/28/2006 2:23:57 PM
I am developing a class similar to RSA and MD5 CryptoServiceProvider. I need to call advapi32.dll CryptAcquireContext in the .ctor and call CryptCreateHash, CryptHashData, CryptDeriveKey, CryptDecrypt, CryptEncrypt etc in other class methods. In the .ctor RSA and MD5 CryptoServiceProvider and ...more >>

Unable to get rid of MDA in IDE
Posted by ViRi at 1/28/2006 5:12:51 AM
According to http://msdn2.microsoft.com/en-us/library/d21c150d.aspx you only have to set MDA=0 in your registry (which i did), i also tried the COMPLUS_MDA=0. This all works fine for executing applications, but not in the IDE. I keep getting an invalidvariant error, the program works fine, i j...more >>

Disposing ActiveX Resources
Posted by Fred Chateau at 1/27/2006 4:37:09 PM
I have an ActiveX graphical display control running within a Windows Form. What is the proper method for disposing of everything when closing the application. When I add the dispose method to the Form class I notice Intellisense displays 5 overloads: Disposing the (1) Form instance, (2) Base ...more >>

reference parameters between C# and managed C++
Posted by Lee Crabtree at 1/27/2006 3:41:38 PM
I was under the impression that the 'ref' keyword in C# allowed you to pass a variable by reference (seems a bit pedantic, but I'm learning you can never be too careful). If I have a C++ function like this: void GimmeByRef(int *gimme), when I try to call it in C# via something like wha...more >>

SendNotifyMessage parameters IntPtr?
Posted by Eric at 1/27/2006 2:33:08 PM
I'm trying to send extra info with the SendNotifyMessage function. Does anyone know how to do this? if I try an int as a wParam or lParam it can't convert to IntPtr. Thanks [DllImport("user32.dll", SetLastError=true, CharSet=CharSet.Auto)] static extern bool SendNotifyMessage(IntPtr hWnd...more >>

Dllimport and calling function from c#
Posted by Martin Venter at 1/27/2006 2:07:56 PM
Hi All, I need to convert this code to c#. I'm dont know what the dll import should look like and how to call it from c#. struct iaxc_audio_device { char *name; long capabilities; int devID; }; EXPORT int iaxc_audio_devices_get(struct iaxc_audio_device **devs, int *nDevs, int *i...more >>



How can I tell which version of Excel is installed?
Posted by Flack at 1/27/2006 11:26:42 AM
Hey guys, Can someone tell me or show me how I can programatically discover what version of Excel a machine has installed, or if the machine has Excel installed at all? If anyone has some sample code (C#) that would be great. Thanks...more >>

Late-bound COM calls to overloaded .NET method need decorated names?
Posted by Alex K. Angelopoulos at 1/27/2006 6:20:24 AM
I've been working on a project where I call some .NET classes from a late-bound COM client (WSH-hosted VBScript), and I've noticed that in at least some cases the calls fail unless I decorate the method names to specify the correct overload to call. As an example, it's easy to create a Syste...more >>

Callback
Posted by Martin Venter at 1/27/2006 12:00:00 AM
Hi All, I need some help setting up a callback between C and C#. Here is the C code: typedef int (*iaxc_event_callback_t)(iaxc_event e); EXPORT void iaxc_set_event_callback(iaxc_event_callback_t func); iaxc_event is a struct. Any help will be appreciated. Regards, Martin Venter ...more >>

interop .ini path
Posted by Allen S. at 1/26/2006 3:39:03 PM
We are developing a web service that is calling a non-managed code .dll. The non-managed .dll uses an .ini file. We have tried putting the .ini file in the bin directory, as well as the web service root directory and we are getting a file-not-found error. Has anyone experienced this?...more >>

howto use user32 in c# without declaring functions
Posted by Abraham Andres Luna at 1/26/2006 1:29:49 PM
is there a way to create an interop assembly for the user32 dll i tried to add a reference to it through visual c# 05' express but it says it's not a valid com object i don't want to have to write reference code for each method i'm going to use, or is that the only way :( thank you for yo...more >>

access .Net components from Excel 97
Posted by ennis at 1/26/2006 10:32:50 AM
Hi Everyone, I am trying to access .Net components from Excel 97. For testing I am following an example presented in a 2001 posting by Manish Mehta at: http://www.c-sharpcorner.com/articles/accessingdotnetfromcom.asp Source code for the VB.Net component is: imports system namespac...more >>

Interop fails depedning on the Win Account
Posted by TDC at 1/26/2006 5:35:37 AM
On a Windows 2003 machine, I installed our software which makes use of COM Interop from a .NET service. We don't normally have any problems, but on this machine we were getting InvalidCast and/or QueryInterface errors. When I changed the account to Admin everything started working. I don't se...more >>

Excel interop deployment
Posted by gilles27 NO[at]SPAM talk21.com at 1/26/2006 2:24:02 AM
I am writing some code which exports the contents of a grid to Excel. It allows the user to specify a template (xlt file) from which to create the new workbook into which the data is pasted. The .NET project in which this code resides now has a dependency on Microsoft.Office.Interop.Excel. The...more >>

Best Practices? Inter Application Communication
Posted by Brien King at 1/25/2006 8:15:02 PM
I have a .NET (1.1) application and I need to allow a non-.NET application to communicate with it so they can control my application. The other application uses VBScript 5.6 and can control COM applications. Basically, I want to create an API in my app that allows another application to ope...more >>

marshalling a struct with a blittable array
Posted by Lee Crabtree at 1/25/2006 12:32:08 PM
Alright, this should be easy, judging by the number of entries that involve marshalling structs with non-blittable arrays, but I cannot for the life of me figure this out. I'm developing the managed side of what will eventually be a class for controlling a device across a USB connection. T...more >>

Problem marshalling two-dimensional array in structure
Posted by LarsJ at 1/25/2006 9:47:01 AM
Hi! Having a working excel app which calls a C-lib (not COM). Looks like this: Type curve_data Qmas(19, 2) As Double Qvol(19, 2) As Double Head(19, 2) As Double Eff(19, 2) As Double Pdis(19, 2) As Double Power(19, 2) As Double arraysize(2) As Long End Type P...more >>

delegate to void*
Posted by Antao Almada at 1/25/2006 7:30:03 AM
Hi, I'm trying to call a C function that has a void* parameter where the content type depends on a flag parameter: int SetProperty(const char* property, void* value); I'm wrapping it this way: [DllImport(libname)] public static extern int SetProperty([In, MarshalAs(UnmanagedType.LPS...more >>

C# methods with delegate parameters used from VB6
Posted by Clive Dixon at 1/25/2006 12:00:00 AM
How do I use a method with a delegate parameter from VB6? Is it even possible? I can't seem to find any documentation covering this. ...more >>

Best Practice: .NET Class Library Exposed as COM
Posted by beaudetious at 1/24/2006 7:21:02 AM
I've got a question regarding the best way to develop a .NET class library that will be consumed in an application as an Automation object. My particulars are VS.NET 2003 and C#. Here's the list of questions I have based on my research: 1) Do I have to use an interface approach or just ma...more >>

Strange Problem With The Interop
Posted by batista at 1/24/2006 3:53:45 AM
Hi there, i have a web service which is using a dll written in vc7.This dll in turn is accessing a vc6 com dll through interop. Now the problem is that i have a function in vc6 that takes as param zipped data and returns me unzip data.The params it takes r 1)the starting memory address of t...more >>

dllimport interface usage
Posted by Joan van den Heuvel, Netherlands at 1/24/2006 1:02:02 AM
I have written my application in VB6 When I upgrade to VB2005 some issues are easily fixed, but I need a DLL written in C to connect to a RDM database . TLBIMP makes a assembly (works better than the upgrade wizard) wich works fine for procedures like logging in. I can see the DLL in the o...more >>

What about SerialPort and performance?
Posted by JWagner at 1/23/2006 3:56:02 AM
Hello everyone, I'm new to the MS .Net framework and C#, but aware of MFC and Win32 programming. I have the task to communicate with electronic devices connected to the pc by rs232 (yes, even in 2006!) to exchange measurement and controlling data. In my former MFC applications I used an...more >>

Need help with DllImport Error
Posted by John Collins at 1/22/2006 11:38:21 AM
I am using DllImport to call a function in a seperate dll written in C: [DllImport("db.dll", EntryPoint = "DBL_ConnectServerAndOpenDatabase", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, ExactSpelling = true)] internal static extern void ConnectServerAndOpenDatabaseNa...more >>


DevelopmentNow Blog