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

Filter by week: 1 2 3 4 5

any sample for c# applicaiton hosting internet explorer?
Posted by forum.microsoft.com at 1/30/2008 4:21:27 PM
Can some one please point me to some sample code of using c# (.net 2 or 3x) hosting internet explorer? The target application is to run on XP or vista. I am thinking of building an c# application to automate some tasks surfing some trusted sites. The logon would still be by user. the ...more >>


complete a task
Posted by Wendy Elizabeth at 1/30/2008 2:58:01 PM
I would like to know what Microsoft product(s) would be could used for the following results and what the price of the recommended product would be: I work for a small company that would like to keep track of the following: 1. the workload of each employee, 2. how many hours are assign...more >>

UnsafeNativeMethods.DispatchMessageA throwing an exception
Posted by TDC at 1/30/2008 7:07:00 AM
We've got hunderdes of installs of varying sizes of our software over the years that have never reported a problem, but we've got a single high-profile customer reporting that our software is crashing with: System.NullReferenceException: Object reference not set to an instance of an object. ...more >>

Interop Troubleshooting
Posted by Tony Su at 1/29/2008 2:05:01 PM
This group has been inactive so long, I wonder if I'll get a response but here goes... Am trying to troubleshoot an Interop issue where an INVALID STATE is being returned by way of "EXCEPTION HAS BEEN THROWN BY THE TARGET OF AN INVOCATION" As far as I can see, when I step through the appli...more >>

Com Server in .Net
Posted by Lalit at 1/29/2008 1:23:15 PM
I want to create a COM Server in .Net (C#), a separate windows service that will do some work own its own and provide services to C++ clients. how can it be done? Lalit ...more >>

issue when converting C#.net code into vb.net
Posted by Dhananjay at 1/29/2008 5:49:24 AM
Hi All, I am facing problem when i am converting C#.net code(Delegate concept) into vb.net. I am unable to do that . Can someone help me to solve the problem. I am providing my C#.net code. ==================================my code is :- ====================================== [DataObject...more >>

problem using an ActiveX object written in C# in native C++
Posted by Stefan Salowsky at 1/25/2008 6:18:14 AM
hi, i have written an ActiveX Control in C#, registered it with COM and can use it without any problems in VB6 and VBA. My problem is: the Class assistant in Visual C++ 6 uses "_Object" as type for a member variable for this control instead of my explicit declared Interface. here is the TLB...more >>

Hosting Preview Handler In DotNet Application?
Posted by nickname at 1/20/2008 10:21:00 AM
I have found some sample code for how to do this on the site: http://blogs.microsoft.co.il/blogs/eyal/ This seems to work for the Word preview handler but the adobe one fails to load with exception: "Creating an instance of the COM component with CLSID {DC6EFB56-9CFA-464D-8880-44885D7DC...more >>



Hooking IDataObject.GetData in .Net
Posted by Roßert_G._Schaffrath at 1/19/2008 10:23:45 AM
Sorry for the cross-posting. I am having a hard time trying to classify exactly what group this question would apply to. I had posted an earlier message to microsoft.public.dotnet.framework.windowsforms trying to find a way to access the lindex member of the FORMATETC structure for a CFS...more >>

Does GetComInterfaceForObject pin the object?
Posted by jaha84@gmail.com at 1/17/2008 9:12:52 PM
Though it doesn't say it explicitly, I have been assuming Marshal.GetComInterfaceForObject pins the object you call it on. By that I mean that until you call Marshal.Release the returned IntPtr should have the same value and it's safe to cache it in native code. This assumption hasn't given me a...more >>

How to insure that Excel is closed when user closes browser window?
Posted by Mark at 1/17/2008 4:43:29 PM
I have an ASP.NET web site that creates Excel reports using Microsoft.Office.Interop.Excel version 11.0.0.0. When the user clicks a CreateReport button, an Excel application is created and disposed of in the button click event as below: using Excel = Microsoft.Office.Interop.Excel; Excel.App...more >>

WDAC 6.0 / MDAC 2.x headaches
Posted by pf at 1/17/2008 9:52:02 AM
Problem: CDOSYS.DLL (Microsoft CDO for Windows 2000) brings in DAC 6.0 on Vista development systems, but MDAC 2.x on other platforms. So when we develop and run on Vista, our apps run fine. But our TFS2008 build server running Win2003 breaks the DAC 6.0 references since DAC 6.0 isn't availab...more >>

WCF managed and unmanaged
Posted by Amiru at 1/17/2008 1:31:02 AM
I need a reliable and effcient way to connect two modules one writen in native C++ code and the second written in C# as a WCF service. The connection should be bidirectional connection. What is the best way ? 1) COM? and how do I create a bidirectional connection between the 2 modules. 2) MSQu...more >>

Regasm does not use my Guid
Posted by gregtheross@gmail.com at 1/15/2008 12:48:47 PM
I'm using VS2005 and trying to create a very simple UserControl to be used in IE: using System; using System.Drawing; using System.Runtime.InteropServices; using System.Windows.Forms; namespace MyClassLibrary { [ComVisible(true)] [Guid("C0000000-AAAA-BBBB-CCCC-EEEEEEEEEEEE")] ...more >>

Using Background Threads with Visual Basic 6: AccessViolationExcep
Posted by Jake Lawlor at 1/15/2008 9:30:01 AM
I and am implementing Scott Swigart's MSDN solution detailed in http://msdn2.microsoft.com/en-us/library/aa719109.aspx. It details how to leverage the .Net 2.0 BackgroundWorker component via interop from a VB6 application. When I run the compiled example ("make exe") Project1.exe, I get ...more >>

using IProvisioningProfileWireless Interface in C#
Posted by bbembi_de@lycos.de at 1/15/2008 7:50:23 AM
Hello everyone, I would like to use the C++ interface IProvisioningProfileWireless in .Net 1.1. I came so far: [ComImport] [Guid("c96fbd51-24dd-11d8-89fb-00904b2ea9c6")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface IProvisioningProfileWireless { [PreserveSig...more >>

Calling DLL function from .NET and char** parameter type
Posted by TomazK at 1/12/2008 10:02:36 PM
I'm trying to call a dll function from C# which has the following form: int some_function(int count, char **arg1, char **arg2) Which parameter type I need to use in C# for C++ char** type? I tried byte[][] (array of byte[]) but I get error "There is no marshaling support for nested array...more >>

How check ActiveX already registered from ocx or dll file?
Posted by Alvaro E. Gonzalez V. at 1/9/2008 11:55:26 AM
Hi. Using C#, receiving input ocx or DLL file that has an ActiveX How can verify that has already been registered in the system? tks. Alvaro....more >>

Assertion Failed
Posted by Amiru at 1/9/2008 1:27:00 AM
I wrote an ATL windows service that combines a c++ unmanaged code and a Com visible dll file created in c# both complied in a debug mode. and another c++ unmanaged dll file compiled in unicode debug (OS - windows 2003). and for unknow reason after x period of time I recieve a Debug Assertion ...more >>

vb6 com interop nested structure
Posted by SMai24@gmail.com at 1/8/2008 2:08:35 PM
Hi there: I am developing a .net dll for my VB6 app. the dll has a nested structure with more than 5 levels. For example: Struct A { Struct B } Struct B { Struct C } .. .. .. .. Struct G { Struct F } After I built the dll and registered the dll with VB6, It crashed my VB6 ...more >>

Problems with com callable component in classic ASP
Posted by gsi at 1/4/2008 12:38:50 PM
We have an intermittent problem with a com callable component created with ..net 2.0. This component is called in asp pages written in VB script on a Win2k3 server. About once every 2-4 weeks the CreateObject call for this component fails with a Error '80070002', which appears to be a "somethi...more >>

How come the HRESULT return not equal to s_OK means it succeeded
Posted by Academia at 1/4/2008 4:48:30 AM
I'm using ITextRange::FindText Method and it works OK but I have to code so that the HRESULT return not equal to s_OK means it succeeded. Does VB.NET do some thing to the HRESULT before I get it? Thanks ...more >>


DevelopmentNow Blog