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

Filter by week: 1 2 3 4 5

STAThread Error
Posted by terryrey at 3/14/2005 11:25:02 PM
Hi, I've written a winform user control (in VB) that accesses a scanner and saves the resulting page(s) as a multipage tiff. This works perfectly when placed in a windows form. For info, the control makes use of the Twain DLL I now need to incorporate the control into a web page for an int...more >>

Why error?
Posted by Yu Wang via .NET 247 at 3/14/2005 8:06:00 PM
I am trying to test the callback function between C# and C++. I tried the sample code from MSDN (EnumWindows one), it worked. Then I tried mine: //C++ typedef int (*CallBackFunc)(int a1, int a2); __declspec(dllexport) int InterOpTest(CallBackFunc func, int a1, int a2) { int j; ...more >>

dllimport and web services
Posted by Will at 3/14/2005 10:56:50 AM
I have an C#/ASP.Net 1.1 Web Service that has an exposed Web Method that uses an unmanaged DLL via the DllImport Attribute. Is one copy of the DLL loaded per call to the Web Method, or does ASP.Net use the same instance of the DLL for every call to the Web Method? My guess is that due to the "st...more >>

find 'Administrator' user
Posted by Eugene at 3/14/2005 8:43:06 AM
Is there a way to find 'Administrator' built-in user name? I do not want to assume and hard code 'Administrator' because for example, on Spanish Windows XP it will be 'Administrador'. I need this name so that I can use 'CreateProcessWithLogon' API. Thank you, Eugene...more >>

Help!!!Call Com object from c#?
Posted by pewee zoktrax via .NET 247 at 3/14/2005 7:16:21 AM
Hello everyone! I really need help on this one. I have a vc++ ATL COM server object that I need to use from a c# application. I have created an interface. [Guid("AB883F7F-17A0-49EA-847E-BDCB77461311"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface IRemote3 { ...more >>

loading document in MODI viewer
Posted by dragoon at 3/14/2005 4:19:03 AM
Hi, I'm trying to load a tiff in the MODI Viewer Control. the form (actually is a child form) is in C# and I'm using FileName Property to load the tiff. It loads, but if I close the child form and I try to open it again (with same source file), the Viewer displys nothing. Loading (only o...more >>

Initializing IE from a string (IPersistStreamInit & UCOMIStream) ?
Posted by Glass Half Full at 3/13/2005 6:37:25 PM
I would like to know how to initialize (load html) Internet Explorer from a string rather than a file. I know that I can navigate to "about:blank", grab the HTMLdocument, then directly set the body.innerHTML, but that's a bit of a hack that leaves certain things improperly configured (for exampl...more >>

How to migrate Dlls based on MFC to .NET framework
Posted by 苯贼一箩筐 at 3/13/2005 6:35:03 PM
I have some Dll file that were built based on the MFC framework,I want to migrate them to .NET framework using C#,i have tried p/Invoke and Managed C++,all failed,Does anyone knows how to?thanks!...more >>



Update management
Posted by noam_a_jacobs NO[at]SPAM yahoo.ca at 3/12/2005 4:02:26 PM
A Tech question for those smart cookies with update management experience. We use a product called EasyUpdate, from www.AutoUpdatePlus.com, to manage the updates of our app after it has been delivered to the client. From our perspective, it is great. We are now keen to purchase the company's m...more >>

Accessing outlook contacts
Posted by John at 3/11/2005 8:23:07 PM
Hi I am trying to access outlook contacts folders and delete the contacts that do not contain a certain category value in the categories field. I have written the below code but am stuck with the error on the indicated line. Any help would be appreciated. Thanks Regards Dim O As Out...more >>

File or assembly name Interop.DTS, or one of its dependencies, was not found.
Posted by Ollie Riches at 3/11/2005 2:31:55 PM
I am trying to execute a DTS via COM according to the KB article http://support.microsoft.com/?kbid=321525 but I am getting the exception "File or assembly name Interop.DTS, or one of its dependencies, was not found." which is obviously a file not found exception. I have sql server 2000 inst...more >>

Excel Automation
Posted by DebugUnlimited via DotNetMonster.com at 3/11/2005 12:56:52 PM
Hi All, I have seen lots of thread on HOW TO automate Excel. Many has also provided answers to that. But none had provided a generic way that does not depend on the version of XL. I need a sample that is able to automate XL irrespective of the version installed on other machine. Can any b...more >>

ReleaseComObject and CoLockObjectExternal
Posted by Clive Dixon at 3/11/2005 12:20:34 PM
I have .NET client code essentially doing the following interop, getting hold of an application's automation interface which has been registered in the ROT, and the application's object has been locked using CoLockObjectExternal: ApplicationClass app = new ApplicationClass(); // Do somet...more >>

IContextMenu and IContextMenu question
Posted by RonNanko NO[at]SPAM gm-squared.de at 3/11/2005 12:05:20 PM
Hi, I am working on a contextmenu shell extension, which works quite fine as long as I implement the IContextMenu interface. However, as I need to include an owner-drawn menu item, I would like to switch to IContextMenu3 (as I read that IContextMenu2 is not called by the shell). When I do t...more >>

How to determine type
Posted by Gary at 3/11/2005 11:59:02 AM
I am using a C# class that gets called from a COM object. My question is, there is a parameter getting passed in to a function that is of type System.__ComObject. How do I look at this object and figure out what type it is passing so I can access it's data. This is a C# class that I am us...more >>

HOW TO Call a Managed DLL from unmanaged MFC Class C++ Code
Posted by Morefeldt at 3/11/2005 4:15:04 AM
Hi! I have tried to access a Managed DLL (c#) from a MFC class in an unmanaged C++ DLL. I have done as described in Knowledge Base 'HOW TO: Call a Managed DLL from Native C++ Code' but insed of tmain section put the code in my MFC Class. All is ok until I call my interfaced Method, then the...more >>

DSOFramer Control
Posted by Aaron at 3/10/2005 1:07:04 PM
I am using the DSOFramer Control to display Office Documents in a Windows App per the instructions of Mr. Clement. Although it has made several things easier, I am still having troubles finding documentation over two specific issues. One - When I load the document, a space where the revi...more >>

How to interpret data
Posted by Gary at 3/10/2005 7:03:03 AM
I am not sure where to post this question, so I am trying here first. I am attempting to use a C# class to extend an MMC snap in. If I use this class as the primary MMC snapin all is well. However, when I attempt to use it as an extension to a snap in, there is one function that gets execut...more >>

Microsoft Web Browser Control
Posted by Aaron at 3/9/2005 1:37:13 PM
I am using the Microsoft Web Browser Control to display word and excel documents on my Windows Form. However, whenever the control loads a document, a dialog appears asking to either Open, Save, or Cancel the document loading. I cannot allow the user to do either of those, so how can I res...more >>

CoCreateInstance of COM+ dll gives 0x80131534 error
Posted by maverick at 3/8/2005 11:37:04 AM
I am trying to invoke a COM+ dll via unmanaged code (C++ exe). While doing so, if the EXE is executed as a standalone, it is able to create the COM+ dll object, but when being used in the following scenario it fails. 1. Managed Winform EXE invokes a Serviced Component. 2. Serviced Component...more >>

How to create views with SQL-NS
Posted by at 3/8/2005 9:58:13 AM
I am doing research into how to best allow developers to visually add views to a database using our in-house system (.NET Windows apps + SQL Server back end). Since Enterprise Manager's Access-like "New View" component is easy to use, I thought that might be nice to integrate into our system. ...more >>

DllImport c# System.NullReferenceException on memory allocation
Posted by vazeru NO[at]SPAM gmail.com at 3/8/2005 9:47:24 AM
Hi, I searched a lot online for this problem but I didn't find an appropriate solution. Any help is *greatly* appreciated. I call my own C++ dll from C#. The methods in the C++ dll are exported as C. A System.NullReferenceException is thrown, the Win32 error is 2. C#: [DllImport("pat...more >>

passing bool pointer from C# to C++
Posted by Gregory Khrapunovich at 3/8/2005 8:18:36 AM
I need to pass a boolean pointer from C# client to C++ function. (C# may change the boolean value during function execution, function will be checking it periodically). The C++ declaration is void myFunc(bool* ptr) What syntax should I use in C# to call it? I tried bool myVar; myFunc(m...more >>

successive GUID's
Posted by FuzzyR via .NET 247 at 3/8/2005 7:41:33 AM
I would like to create a series of successive GUID's= (XX=2E=2E=2E=2E=2E0001, xx=2E=2E=2E=2E=2E0002 etc) for my COM usable =2ENET= application, but am not sure not GUIDGEN actually works and= don't see any pattern in the GUIDs created on one machine=2E I= would like my interfaces all togeth...more >>

Basic COM/Interop question: "System.IO.FileNotFoundException..."
Posted by Tom Stone at 3/8/2005 7:17:03 AM
Hi, I am a longtime ASP.NET developer, but new to using COM/Interop with ASP.NET. So this is a basic question... When trying to use a COM from a simple ASP.NET page, I am getting the following error: "Exception Details: System.IO.FileNotFoundException: The specified module could not be...more >>


DevelopmentNow Blog