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 > september 2006 > threads for september 1 - 7, 2006

Filter by week: 1 2 3 4 5

GetFunctionPointerForDelegate and cdecl
Posted by Christian_Fröschlin at 9/7/2006 12:00:00 AM
I noticed that the documentation for GetFunctionPointerForDelegate states that "The delegate d is converted to a function pointer that can be passed to unmanaged code using the __stdcall calling convention." I would have expected that method to honour the UnmanagedFunctionPointer attribute ...more >>


windowless richedit (ITextServices)
Posted by Jeff Boeker at 9/6/2006 6:03:02 PM
Hello, I'm trying to use the windowless RTF interface provided by ITextServices as I cannot find any other standard method for dealing with RTF in C#. Can someone please point me to an example or let me know how I can access this interface using C#? Thanks, Jeff...more >>

Cannot compile: Could not load file or assembly, The system cannot find the file specified
Posted by Monty at 9/6/2006 1:12:26 PM
I have a VS2005 VB.net project that references some COM libraries. I had a reference to Interop Assembly I'd created using TlbImp on a COM TypeLib, but I have since removed ~all~ references to this assembly in the code and in the project references. When I attempt to build my project, I get th...more >>

does polymorphism work in COM?
Posted by gk at 9/6/2006 12:00:00 AM
-- begin code -- // strongly typed list of base class List<Base> MyList = new List<Base>(); //the method i want to expose to a COM scripting client, which returns MyList elements by index (because COM doesn't support generic lists) Base Get(int index) {} -- end code -- The "Base" class h...more >>

Linker-Error: LNK2028 when calling a native function from managed wrapper
Posted by Ralf at 9/4/2006 10:35:04 PM
Hi, I want to call a (static) native function "DeleteInstance". These methods looks like in the header-file: static void DeleteInstance(); and in the cpp-file: void CMessenger::DeleteInstance() { if (mpMessenger) { delete mpMessenger; mpMessenger = NULL; } } But I on...more >>

why is this simple dllimport not working?
Posted by troy NO[at]SPAM makaro.com at 9/4/2006 2:17:07 PM
Hi, I'm new to using dllimport. I'm getting the following error: System.EntryPointNotFoundException. Here is my code: using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace DialogicTest { class Program { ...more >>

SuppressUnmanagedCodeSecurity in .NET 1.x runtime?
Posted by Christian_Fröschlin at 9/1/2006 6:38:09 PM
I have an assembly which calls a native method marked with the SuppressUnmanagedCodeSecurity attribute (the security implications of which are not the intended topic of this post). The assembly is compiled using .NET 1.0 but intended to be used from client applications running on arbitrary .NET ...more >>

Can't access COBOL DLL from C# program
Posted by Parrot at 9/1/2006 3:10:02 PM
I cannot get my C# program to access a DLL program written in COBOL. I use the following code to represent the program: [DllImport("readmf.dll")] public static extern void CYREAD(string linkfile, linkdata ld); I use the following statement CYREAD(linkfile, ld) and it said that the program ...more >>



Marshal an Array
Posted by MLM450 NO[at]SPAM hotmail.com at 9/1/2006 6:45:37 AM
I am attempting to pass an array of objects to an unmanaged DLL function as an array of structures. The array is used as input and output. I think I am getting the data to the DLL, but I do not get modified data back from it (I am certain the returned values should be different). I tried adding ...more >>

excel interoperability
Posted by zina at 9/1/2006 4:04:40 AM
hi, i have already exported a datagrid to an excel workbook on button click. what i need to do now is that on every subsequent button click i need to add a sheet to the existing workbook. so all the reports represented as datagrids are stored into one excel file.this is true of other forms in...more >>

Debugging .NET code called as COM module from unmanaged c++ code?
Posted by Jan Obrestad at 9/1/2006 12:00:00 AM
Hello. I'm working on a project where the main application is written in unmanaged c++ (VC6), but the module I'm working on is written in c# and exposed as a com object. I have some trouble debugging the .NET part. When I try to attach to the process, I get this error message: 'Unable to a...more >>


DevelopmentNow Blog