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

Filter by week: 1 2 3 4 5

C++ Windows Handles From C#
Posted by PleaseHelp at 10/14/2005 5:28:09 AM
I have an app which creates a window and C# and needs to pass the window handle (HWND) and App Instance (HINSTANCE) to a C++ dll whicj will do some direct show stuff. I have created the C++ MFC app and pass the window.Handle (System.IntPtr) There is a wrapper which looks like: [ DllImport(...more >>


OleDb and foxpro dbc in Com+ component
Posted by Gibson at 10/14/2005 3:55:35 AM
Hi, i created a dll for database access. i use it in combination with a foxpro dbc. using it directly in an application and/or with mssyl, it works fine. if i wrap it in a com+ dll and want to open the OleDbConnection it fails with the following error: at System.Data.OleDb.OleDbConnec...more >>

Find vb6 app name from .net DLL
Posted by DBLWizard at 10/14/2005 2:04:22 AM
Howdy, Is there a way to get the VB6 calling application name in a .net dll called via com interop? What I am trying to do is determine what the app.config file should be named when the .net dll objects are called from ASP. My guess is going to be either svchost.exe or dllhost.exe but I was...more >>

.net control from vb6
Posted by Kevin Earley at 10/13/2005 2:04:41 PM
I had a .net control running fine in vb6. I change something in the control and now I can still get the .net control on the vb6 form, but i can only see the standard properties, not the ones I've added. I tried creating a new project with a new control and it now does the same thing for every ....more >>

Dynamically updating DllImport reference
Posted by Joe at 10/13/2005 2:01:24 PM
In my program I am setting the DllImport attribute as so.. [DllImport("mydllname.dll")] public static extern void etc etc.. The dll gets updated often so I wanted to store the dll name in an App.config and then have the program set the attribute. Is this possible? Any help appreciated. Jo...more >>

Passing huge array from C# to c function
Posted by JocK at 10/13/2005 3:32:47 AM
Hello everybody, We are evaluating the use of C# and GDI+ to develop a GUI based application which elaborate image (stored as array of native type). This application needs to call several native C functions in order to perform some intensive computation on the image. Basically I will store th...more >>

QueryInterface for interface ... Failed
Posted by John Bailey at 10/13/2005 12:12:01 AM
I have written a service that uses a VB6 COM dll. The service access the COM dll through a .Net wrapper assembly and interop assemblies generated by Visual Studio. I have a windows forms application that I used to test this assembly. The service runs fine when tested on my Windows XP mach...more >>

OLE Automation
Posted by Jonathan Wood at 10/12/2005 4:16:55 PM
Greetings, I don't know if anyone here is writing applications that implement OLE Automation but I was hoping to have a bit of a discussion about it. I'm looking at implementing script support for one of my applications (written using MFC). There's a fair amount of code for doings this and I...more >>



LoadLibrary failing
Posted by Michael Tissington at 10/12/2005 2:46:15 PM
I'm using LoadLibrary to import a DLL in a asp.net application. The dll was written in c++ and is located in the bin folder I have been testing the website on my development machine and our inhouse webserver running IIS 5.1 and it works correctly. I'm specifing a real path to LoadLibrary ...more >>

.Net Dll in VB 6
Posted by André at 10/12/2005 2:09:03 PM
Hello, I am trying to get a .net Dll to work in VB6. I have done the instructions as per http://www.findarticles.com/p/articles/mi_zddvs/is_200504/ai_n13591391 I create my Dll using ClassInterface(ClassInterfaceType.AutoDual) then i run gacutil /i dllname.dll then, regasm dllname.dll ...more >>

AxSHDocVw.AxWebBrowser and Window Activation issue
Posted by Kjeld at 10/12/2005 6:49:04 AM
We have created a MDI application that uses a AxSHDocVw.AxWebBrowser component on one of the child windows. As soon as this child window is created, none of the open MDI child windows is activated if clicked upon, except for when the window border or title bar is clicked. So the problem ...more >>

.NET/COM Interop without registration (xcopy deployment) ?
Posted by ulrik NO[at]SPAM e-mail.dk at 10/12/2005 12:26:05 AM
Hi, I have an plugin application (i.e. my application consists purely of dlls) that is both C++ COM and C# .NET. My various COM and .NET objects interact both ways using interop. I would like to deploy my application using xcopy, i.e. without registering anything on the target machine. I...more >>

StructLayoutAttribute.Pack
Posted by stax at 10/12/2005 12:00:00 AM
Hello, the SDK says about the Pack field: --- Controls the alignment of data fields of a class or structure in memory. This field indicates the packing size that should be used when the LayoutKind.Sequential value is specified. The value of Pack must be 0, 1, 2, 4, 8, 16, 32, 64, or 128. ...more >>

Unmanaged code problem with GC
Posted by josephbubba NO[at]SPAM hotmail.com at 10/11/2005 2:09:08 PM
I have a problem with a third party Active-X control. The control is written in unmanaged C++ (VC6 I believe) and it is used to display the contents of a file. The control has two methods, Open and Close. It does not use any .NET internally at all. When the control is used in an unmanaged ...more >>

COM+ doesn't work
Posted by Paulo Custódio - Brasil at 10/11/2005 10:45:04 AM
Hello everybody... I have 3 components…. In component A, there’s a method named “MA”. Access Database only to get some data In component B, there’s a method named “MB”. Access Database only to get some data In component C, there’s a method named “MC” The method “...more >>

using PIA'S at the time of deployment
Posted by kunallalwani NO[at]SPAM gmail.com at 10/10/2005 3:54:20 AM
Hi Friends, I have a strange problem, I am using Office XP PIA's to extract the text from any office file. I downloaded the office XP PIA, and developed a module which extracted text from any file that is uploaded to the server using Visual Studio.NET 2003 and .NET Framework 1.1. During developm...more >>

Saving Excel workbook in SQL server using c#
Posted by Jitender Khanna at 10/9/2005 10:44:06 PM
Could anyone please help me out as to how we can save the excel workbook in the database and read it back. I was able to convert the text files and image files into binary format and save them to the DB and finally able to retrive them back in the same format. But was unable to do s...more >>

[Possible glitch/bug in COM-.Net interop] Windows Form with IE Webbrowser control throws Unhandled exceptions.
Posted by programmingq NO[at]SPAM gmail.com at 10/8/2005 11:43:34 PM
We have a windows application(MDI) written in C#.Net, which has an IE Webbrowser control embedded in the page. Dialog opened could be a .Net form with a web browser control or can be an independent IE window opened from the web application hosted in the browser control of the parent windows form...more >>

Getting HRESULT information if the call has not failed
Posted by tuckers at 10/8/2005 9:51:29 AM
Hi, I have a COM object that I am using via c#. THe object supports a method that checks an angle lower and upper limits and returns a bool. The reult is either a pass or fail, if it fails further information is passed via the HRESULT indicating whether it failed the upper limit or lower ...more >>

Type library inside dll file
Posted by Robert G at 10/8/2005 12:00:00 AM
Hi I've got little problem. I've created a dll library in C# .NET and turned on compiler option for registration for COM interop. Compiler made type library file which I can use as interface for this library from unmanaged code. But it is not very elegant for me if type library is outside dl...more >>


DevelopmentNow Blog