Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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
February 2010
all groups > dotnet interop > october 2006

Filter by week: 1 2 3 4 5

Side by side interop from single app
Posted by howardr101 NO[at]SPAM hotmail.com at 10/31/2006 7:32:15 AM
Hi, We have an App in Delphi, it is happily interopping to some .Net code written against the 1.1 framework. We now have some new code developed against the 2.0 framework and I need to be able to have the delphi App interop into both the 1.1 and 2.0 framework code - which it doesn't appear ...more >>


Calling unmanaged C code from VB.NET
Posted by thomi2006 NO[at]SPAM gmail.com at 10/31/2006 12:01:12 AM
I am calling an unmanaged C dll from a VB.NET project by using the DllImport attribute: <DllImport(_dllName, ExactSpelling:=True, CallingConvention:=CallingConvention.Cdecl, CharSet:=CharSet.Ansi, BestfitMapping:=True, ThrowOnUnmappableChar:=True)> _ Friend Shared Sub score(ByRef indata As Pa...more >>

Memory error with funcs that return char*
Posted by Chuck C at 10/30/2006 12:32:27 PM
I have an odd error comming up that does not seem to actually cause a problem (everything seems to work fine) but it concerns me. Error: ---------------------------------------- HEAP[appname.exe]: Invalid Address specified to RtlFreeHeap( 00170000, 10015988 ) Windows has triggered a breakp...more >>

Regasm'ing component programmatically
Posted by André Malafaya Baptista at 10/30/2006 7:30:02 AM
Hi, all. I wish to write an installer class that will register my .NET ServicedComponent class in the COM catalog, just like REGASM does. The problem is that I can only find ways of adding this component to a COM+ application (new or existing). This is not what I want to do, because this as...more >>

Anchoring and resizing in C#
Posted by dolphinearth NO[at]SPAM gmail.com at 10/30/2006 12:00:24 AM
Hi all. I hope someone can help with this funny problem. I have two group boxes next to each other, one left and one right of the form. Now I need to let the form maximise to the whole screen. Fine, I set the group boxes' anchoring to 'left' and 'right', but when I run the app, and maximising th...more >>

InsertMenuItem with MIIM_BITMAP fails with GetLastError() 8
Posted by OPM at 10/29/2006 10:27:28 PM
Hi guys, I'm working on a context shell extension in C#. I'm trying to add bitmaps to the menus. This is based on Dino Espinosa's code at http://www.theserverside.net/news/thread.tss?thread_id=26795 The code works fine, but I'm trying to show a bitmap by specifying fMask |= (uint)MIIM...more >>

Exception on Application.Exit()
Posted by Armin Prosch at 10/29/2006 1:54:02 PM
Hello, when my application shuts down via Application.Exit() I get a message box with the text ["unknown software exception" 0x80000003 on .....]. In the application I use DirectShow (via directshow.net) and managed DirectX. Besides that I start a tcp listener in a seperate thread but grace...more >>

Graph control
Posted by Esha at 10/28/2006 12:21:58 PM
I was asked by my boss to create representation of data by Graphs in VB 6 application. I checked the features of VB6 Graph control as well as Excel graphs. They are not good enough. I tried to find any third party ocx and all I found do not look good enough either. I found several .NET cont...more >>



Reg-Free COM question (.manifest & Implemented Categories of )
Posted by Nick Rivers at 10/27/2006 1:05:57 PM
Hi! Do .manifest files support 'Implemented Categories' entries of COM components? I could not find anything about it in the MSDN or internet. Cause these Implemented Categorie registry entries will be created the DLLRegisterServer function of my COM component. I don´t know how to merge ...more >>

Using C# classes in "Classic" ASP
Posted by noah.blumenthal NO[at]SPAM gmail.com at 10/27/2006 11:41:40 AM
I'm trying to slowly bring development of one of our web applications to .NET, so for the time being I want all additions to be written in ..NET. I figure we'll just create libraries for all new functionality and slowly move the framework over to .NET and before you know it we'll have a full .N...more >>

How to Reference a .Net Assembly from within VBA?
Posted by TCook at 10/27/2006 12:59:27 AM
Hey All, I want to create an assembly in .Net that I can reference and use in VBA. I have a sample assembly that I've strongly named and that is loaded in the GAC. However, I can not see from within Excel. Please advise? Thanks & Regards, TC ...more >>

IPictureDisp to Image in C#.Net
Posted by vamsiram NO[at]SPAM gmail.com at 10/26/2006 6:10:32 PM
I have a COM dll which exposes the function as shown below DisplayPic([out] LPPICTUREDISP* pVal, [out] BSTR* text); When i use the object browser in Visual Studio 2005 this function shows up as Sub DisplayPic(pVal As stdole.IPictureDisp, text As String) I need to convert pVal given as stdol...more >>

Interop object creation performance
Posted by John Smith at 10/26/2006 4:22:12 PM
Hello! I did some performance testing with ADODB interop object creation, and noticed that interop objects are created much faster on windows applications than ASP.NET. I tested it with this function on both platforms: Private Function CreateObjects() As TimeSpan Dim rsData As ...more >>

StringBuilder & Class Library exposed to COM
Posted by Olivier Matrot at 10/25/2006 5:00:45 PM
Hello, Maybe this problem has been discused many times here but I've spent several hours to find the answer with no luck. Basically, I have a c# class library exposed to COM. The client is written in unmanaged C++. One method of my c# class have a StringBuilder parameter. This parameter is ...more >>

classfactory error
Posted by ebbflow at 10/25/2006 3:04:30 PM
I have two asp.net applications running on the same web server. Each application calls upon its own foxpro com object (dll file) that does some processing (they are not the same com object). Each of these com objects has its own strong named wrapper dll around it. Unfortunately, I cannot ru...more >>

C++ DLL in C# returning a char**
Posted by DG is a god.... at 10/25/2006 1:48:13 PM
Dear All , This is my first post - please go easy...! I have a DLL written in C++ that has the following function exported from it -: char** ListHandles(int *processID); The processID parameter is used to find all associated open file handles , this value is then written to to return...more >>

Correct VB.Net attribute for setting the helpstring property of a method in the TLB
Posted by Scienter at 10/25/2006 1:10:34 PM
Hi, I'm currently using interop to expose functionality in a .Net assembly (written in VB.net) to vb6. Everything works fine and the exported TLB works. However, I'm not able to find the correct "helpstring" attribute that I can use to decorate each public method so that it is copied ov...more >>

Release COM
Posted by ruca at 10/25/2006 12:19:31 PM
Hi, I have a COM interface in C++ that it is used in my WebApplication ASP.NET. The question is: what the best way of release this com object. I already using something like this (each time I create an instance and then no needed her): Public Shared Sub ReleaseObj(ByRef obj As Object) ...more >>

Using c++ unmanaged object methods in c#
Posted by Joneleth at 10/25/2006 3:27:38 AM
Hi I know how to call external c functions in c# through DllImport. Now, i'm trying to call a c++ (unmanaged) class method, defined in an external .dll as static int myClass::myMethod, and i wonder if it is possible. I have used the VS utility dumpbin /exports "myDllPath" in the post-build e...more >>

Example of reflection to determine contents of struct
Posted by bill at 10/24/2006 2:07:21 PM
All, Can anyone supply an example or reference to an example of using reflection to determine the data types contained in a stucture in C#? TIA, Bill ...more >>

How to add IDL to assembly?
Posted by alexbalaev NO[at]SPAM yahoo.com at 10/24/2006 9:02:16 AM
Hello, First of I am very new to .NET 2.0... sorry if the question is very basic. Here is the deal. We used to develop in COM (VS 6.0). We have a bunch of objects that use the same interface. The interface is in an IDL file, shared between the projects. Now we're switching to .NET 2.0 (VS 8.0...more >>

Big Bug in Word?
Posted by TCook at 10/24/2006 2:41:52 AM
Hey All, Just wondering if anyone else has experienced the same bug that I have in MS Word: Create a single class module called WordEventClass as follows: Option Explicit Private WithEvents m_appWord As Word.Application Private Sub Class_Initialize() Set m_appWord = Word....more >>

How does Microsoft Office decide which CLR version to load?
Posted by Drew Lettington at 10/23/2006 6:20:02 PM
I have a machine with .NET Framework 1.0, 1.1 and 2.0 installed along with Microsoft Office 2000 (another machine with Office XP displays the same behavior). I have a managed COM add-in built with C# in Visual Studio 2005. Excel and Word are using CLR 1.1 so my add-in fails to load. PowerPo...more >>

deploying interop files
Posted by Dick at 10/23/2006 10:55:02 AM
I have a .net 2005 component that I want to distribute so it is accessible via COM. During development this works fine. I check the “Register for COM interop” on the compile tab of the .net project’s properties window and then build my project. Using a VB6 test project I can add a ref...more >>

Installation problem
Posted by nokia33948 at 10/23/2006 8:26:14 AM
Hi there, this is a newbie question. I have written an ActiveX Com object in VB6. Compiled, now I have my dll file; I have written in VB.NET 2003 the server application that handles it. But.. I don't know how to distribute the whole project! I mean. I don't know how to create an installation ...more >>

C# COM Object Class Destructor NOT CALLED EVER
Posted by Grant Schenck at 10/23/2006 8:00:09 AM
Hello, OK, I understand the whole .NET garbage collection idea. Specifically, C# destructors are actually finalizers which are called when the GC gets around to it. I created a C# class and made it's interface available as a COM object. I created a Visual Basic 6.0 application which us...more >>

novice question
Posted by Gregory at 10/23/2006 7:55:02 AM
Hi, I need to port COM DLL from Borland C++ Builder to C# (VS 2005). Can you please point me to a tutorial or an example of COM DLL in C#. Thank you. Gregory Khrapunovich ...more >>

reading a VB6 Collection object in C#
Posted by bryanp10 NO[at]SPAM hotmail.com at 10/20/2006 1:00:32 PM
I'm working on a project that uses some older VB6 COM objects. One of the classes returns a Collection object, which I am having trouble reading in C#. Can someone point me in the right direction here... ComObject objItemType = new ComObject("Items"); args = new object[0]; VBA.Collection co...more >>

Recommendations please...
Posted by ssg31415926 at 10/20/2006 6:11:41 AM
Can anyone recommend a good book for starting to use P/Invoke and/or Interop? I write C# - I've never done any C++/Win32 stuff so I can use P/Invoke and Interop stuff but I don't really understand it and I'm never happy with that. SSG ...more >>

Some Interop COM object become System.__ComObject...
Posted by DeepNight at 10/19/2006 9:34:02 PM
Hi all, I used to create an Interop COM object like: AppDomain::CurrentDomain->CreateInstanceAndUnwrap(assemblyName, className, true, (BindingFlags)(BindingFlags::Default), nullptr, params, nullptr, nullptr, nullptr); And pass it pIUnknown to unmanaged side; But later, when I query the t...more >>

SetupAPI - SetupDiGetDeviceInterfaceDetail problems?
Posted by Ed Sutton at 10/19/2006 2:50:08 PM
Does anyone have any code sample declarations and calls for SetupDiGetDeviceInterfaceDetail that they could please post? Thanks in advance, -Ed...more >>

Use of an unmanaged control in C#
Posted by brosembob NO[at]SPAM yahoo.com at 10/19/2006 7:09:53 AM
Hello there, Is there a way to add .Net controls (textboxes, labels, etc.) to an unmanaged tab control, which was passed as a IntPtr argument to my Dll (written in C#). I'm writing a plugin Dll to be used with application written in unmanaged C++. The plugin has an interface function that the...more >>

Where are the FOLDERVIEWMODE constants in .Net land?
Posted by robert NO[at]SPAM oeffner.net at 10/19/2006 4:38:14 AM
Hi, I have problems setting an instance of a ShellFolderView object to thumbnail view mode. I'm programming in C# and have so far successfully brought up a ShellFolderView by navigating a WebBrowser ActiveX control to a folder on my hard drive and then assigning a ShellFolderView object to the ...more >>

(Exception from HRESULT: 0x8007007F)
Posted by Michael at 10/18/2006 2:06:21 PM
Hi all, I just started getting this annoying exception/error the past few days. "An unhandled exception of type 'System.DllNotFoundException" occured in ... "Unable to load DLL '...': The specified procedure could be found. (Exception from HRESULT: 0x8007007F) This just started happeni...more >>

Use of COM object in C# gives error 'variable or with block...'
Posted by NDE at 10/18/2006 1:43:23 PM
Hi I have a COM object that is being used by my ASP website. It is running under component services and my website is working perfectly using that object. now I was developing a mailer service in .NET for this project, and tried to use the COM object because it has a lot of functionality...more >>

Exploring unmanaged dlls
Posted by eggie5 NO[at]SPAM gmail.com at 10/18/2006 12:37:01 PM
I have a few unmanaged dlls I want to interop with using pinvoke, etc... However, these dlls are undocumented so I have no idea, what parameters the methods take, or return.. I don't even know what methods are in the dll at all! How can I peek into the unmanaged dll to see a signature of th...more >>

Serialization question
Posted by Shawn at 10/18/2006 10:32:01 AM
I have a web project that uses StateServer for the session. I also have a prolog Java DLL that is serialized. In included the dll in the project reference and ran the project. I stored a Prolog object in the session and at the end of the page processing I received the error, "Unable to seri...more >>

Override default mimetype handling in IWebBrowser2
Posted by pagerbak at 10/18/2006 4:31:02 AM
Hi My application uses an embedded Internet Explorer Control to automate some tasls in a web-application, of which I don't have control. When the user clicks a certain link, the web-server sends a redirect to a page that resonds with a JNLP file, the mimetype is application/x-java-jnlp. I ...more >>

Problem with Interop between VB6 and ASP.NET
Posted by Niklas Olsson at 10/18/2006 12:00:00 AM
Hello I have a VB6 dll that I created an interop dll for with tlbimp tlbimp database.dll /keyfile:database.snk /out:Interop_database.dll the database.snk was created with 'SN -k' and then I use "gacutil /i" to register the dll in the gac. (I can't use the private bin, because more than one app...more >>

Visual Basic Programming - Reference to fpPublishLogInTempDir uri - ADVANCED question
Posted by John.Miller at 10/17/2006 7:23:25 PM
I am writing an application inVisual Studio to ease our frontpage publishes. I have the command to publish, but I need to attach the Publish log to an email. Does anyone know how to get the publish log uri in order to attach the email? Here is the code that I am using to publish: Public F...more >>

PROBLEM: COM object registration in VS2003 setup project over Vista
Posted by Smugsboy at 10/16/2006 12:39:20 PM
Hi, Got some problems here. I have a COM object which is actually a .NET class with [ClassInterface(ClassInterfaceType.AutoDual)] attribute and strong name. I consume this COM object from unmanaged C++ code. My applications that uses this code has a VS2003 setup project which references th...more >>

IE - Set HTML in Document
Posted by James at 10/16/2006 12:06:11 PM
I need to be able to set the HTML in an instance of IE programatically. Currently I am doing this (and it works) using IHTMLDocument2.writeln(). The problem is that if the HTML contains links to external files (.js / .css etc) IE wont load them. To replicate the problem: 1. open IE at www.m...more >>

How to convert a Byte() to an IntPtr in VB
Posted by Serge BRIC at 10/16/2006 1:19:01 AM
My application, written in .NET VB, tries to get a communication port handle from a TAPI object with this code: Dim vFileHandle As Byte() = appel.GetIDAsVariant("comm/datamodem") The vFileHandle is supposed to be a file handle (an IntPtr, I suppose). How can I convert this Byte() in this I...more >>

massive bold :: interop.word
Posted by Zeljko at 10/15/2006 8:51:04 AM
VB.net 2005 express - Office Word 2003 Office 11 library => references I need to make from VB.net search in Word for these words: "tree", "bus", "car"...(complete list contains ca. 50 words) when find founds word "tree", BOLD entire Row (where is that word "tree"), search next instance of "tr...more >>

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 >>


DevelopmentNow Blog