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 > october 2006 > threads for october 8 - 14, 2006

Filter by week: 1 2 3 4 5

Loading 16 bits dll (ICL icon library file)
Posted by MsNews at 10/14/2006 3:50:18 PM
Hi, I'm creating a free Icon library in C# with source code include, it already support .ico/.dll../exe and I'd like to support .ICL format too, I need to load a file .ICL (Icon Library) that basically it is a 16-bit dll and then after that I can extracts and insert icons inside. I tried...more >>

PWSTR exposing to from unmanaged code to Interop question...
Posted by Michael at 10/13/2006 4:20:16 PM
Hi all.. I'm trying to pass a string value back from unmanaged code that I'm writing back thru interop to C# and I'm failing somewhere. Everything compiles and runs w/o errors. It's just that the out parameter that I'm initializing in unmanaged code doesn't persist to its C# caller. Basic...more >>

How to call this C function from VB.NET
Posted by nojetlag at 10/13/2006 7:27:58 AM
I have a C function that looks like that VOID Get_RN_Info ( PRN_RESULT pRN_Result) the structure for pRN_Result looks like this typedef struct { BYTE HexResult [8]; BYTE HexStatus [4]; BYTE HexLength [4]; BYTE HexCharSet [2]; } RN_RESULT; How would I call this from VB.NET, can any...more >>

Set Text on Textbox w/o changing cursor pos
Posted by WALDO at 10/11/2006 8:53:29 PM
I have a .Net TextBox (TextBoxBase, really) in which I am appending about 20 lines of text per second. I use the AppendText() method to accomplish this. This is a great substitute for taking the Text property and concatenating it... Me.tb.Text &= newText ' Instead use Me.tb.AppendText(new...more >>

unmanaged DLL difference between .NET 2.0 and previous ...
Posted by bill at 10/11/2006 1:25:45 PM
All, I use to be able to call an unmanaged DLL (written in C/C++) thusly: [DllImport("D:\\TEES\\test")] extern "C" int TestSomething(char* TestDescriptionFile); Granted this is managed C++ syntax, but I cannot figure out how to do this from C#. Some documentation says the following...more >>

Calling a C legacy function with FILETIME* as parameter
Posted by fabrizio.viggiani NO[at]SPAM gmail.com at 10/11/2006 7:47:23 AM
I have a dll that exports the following entry point: STDAPI FileSetDate(HANDLE hFile, FILETIME* pft); I need to call this function from C#. I define the function as follows: [DllImport("Some.dll")] public static extern int FileSetDate(IntPtr handle, ref System.Runtime.InteropServices.Com...more >>

Problem in using C# dll in Vc++ project
Posted by ashukasama NO[at]SPAM rediffmail.com at 10/11/2006 7:11:35 AM
Hello All, I have a dll created in c# visual studio 2005. i wanted to use this dll in vc++ project created in visual studio 2003. I am doing following steps for using the dll developed in 2005: 1. Exporting dll to tlb using tlbexp command provided by visual studio 2005. 2. Adding reference o...more >>

howto get all public sub's from a xla-file
Posted by rfw68 at 10/11/2006 4:45:02 AM
Hello, I open a xla file with the following code snippet, where xlApp is an Excel.Application object: wba = xlApp.Workbooks.Open("C:\Auto.xla"), opt, false, opt, opt, opt, opt, opt, opt, opt, opt, opt, opt); What I want to know now is, how to get all public sub’s (procedures...more >>



Version independent word automation
Posted by henning.friese NO[at]SPAM gmx.de at 10/11/2006 1:32:45 AM
Hello NG, I'm looking for a way to print a word doc through word automation. The printing functionality should be independent from the installed word version (though I can assume that version is >= 2000). If I use the office-interop assemblies that come with office 2003 my program won't work ...more >>

Casting problem : COMImport interfaces in different assemblies
Posted by Bob S at 10/10/2006 12:00:00 AM
A class in assembly A implements a COM interface as follows : [ComImport, Guid("CEF04FDF-FE72-11d2-87A5-00C04F6837CF"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] internal interface IMyInterface { [PreserveSig] int MyMethod(); } class MyClass : IMyInterface { int MyMethod() ...more >>

interop with Excel2000, XP, 2003
Posted by rfw68 at 10/9/2006 1:39:02 PM
Hello, 1. Is there a possibillity to interop with Excel 2000? All I found is the assembly for Excel XP and Excel 2003! 2. How to make a single application (exe) working with Excel 2000, XP and 2003 depending on what the customer has installed? 3. How to prevent the Application (exe) to c...more >>

run macro from XLSTART
Posted by rfw68 at 10/9/2006 1:32:02 PM
Hello, I want to create an excel sheet, put some data in and then call a standard macro which will be (normally) loaded from the XLSTART folder (as an .xla File). But when I create the Excel Application with new Microsoft.Office.Interop.Excel.Application() it seems to be in a different s...more >>

Using DLL Import - Unamanaged C++ within C# Sharp ASP.NET
Posted by NCW Support at 10/9/2006 12:00:00 AM
Hi, I have a dll which has been written in unmanaged C++. I successfully called the method I need from the dll in a ASP.NET application (C#) when I run it on my development machine (Win XP, VS .NET 2K5). When I transfered the web site to our production server (Win 2K3 Enterprise), a dll ...more >>


DevelopmentNow Blog