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
all groups > dotnet interop > december 2007

Filter by week: 1 2 3 4 5

accessing properties of object passed by an event, in a speedy manner
Posted by Joshua Waxman at 12/30/2007 7:06:42 PM
Hello. I'm working on a C++.NET project in which I am receiving events from a COM object, using COM Interop. This is a time-critical application, and Interop issues are slowing performance down to unacceptable levels, and so I am looking for ways to optimize for speed. This event is passing...more >>


SetWindowPlacement
Posted by Zamdrist at 12/28/2007 12:41:27 PM
For the life of me I cannot get this API function to work as expected in VB.Net I am however using SetWindowPos, and so long as the window is not minimized, it will position as I tell it to. If the window is minimized SetWindowPos will not move the window, and SetWindowPlacement does not appe...more >>

ActiveX Control hidden property in VS.NET
Posted by HairlipDog58 at 12/26/2007 3:54:01 PM
I'm working on an MFC ActiveX Control that implements some hidden properties. The properties are hidden by adding the [hidden] attribute in the the ODL file. Some properties are hidden because they have been replaced by newer properties. By marking the obsolete properties hidden, new developer...more >>

regasm /tlb complaints element not found
Posted by michael sorens at 12/26/2007 12:06:01 PM
(I am a novice with interop services so bear with me...) I have a legacy C# application and am using VS2005 to generate a dll for it. I want to make this available for COM access which requires, as I understand it, invoking both gacutil and regasm. I am getting this error from regasm: > RE...more >>

Impact of InprocServer32\RuntimeVersion ?
Posted by Mark at 12/21/2007 7:23:01 AM
Hi... Just out of curiousity, I was wondering if the InprocServer32\RuntimeVersion registry setting of a .Net COM interop object had any effect? I happened to notice the other day that our Wix msi projects errorneous install all our .Net COM interop with this set to v1.1.4322 even though a...more >>

COM object that returns a string
Posted by JustinInAtlanta@gmail.com at 12/20/2007 1:54:01 PM
Hello. I have written a Class Library in C# that has two methods: GetNumber returns 17 GetName returns foo I am able to add a reference to the COM object from an ASP.NET page, call both methods, and display the correct results in labels on the Web page. I also want to be able to instanti...more >>

EnumWindows, VB.Net
Posted by Zamdrist at 12/19/2007 1:35:50 PM
I know that a callback function can be used to run the EnumWindows function of WIn32 API in VB.Net. My question is however...is there a strictly VB.Net way of doing this, not using a callback function and the Win32 API? i.e. What is the .Net *way*...or is there one? Thanks...more >>

how to register an assembly that uses ADODB
Posted by DMurray at 12/19/2007 11:11:02 AM
Hello, I have an assembly that references a COM DLL that uses ADODB. It runs properly when run from a regular .Net program, but I need it to run from SQL Server 2005. When I try to register the assembly it gets an error because it cannot find adodb.dll. When I try to register adodb.dll i...more >>



vbproj csproj containing cs & vb files
Posted by Deodiaus at 12/19/2007 8:03:54 AM
Is there a way to insert both cs & vb files in a dotnet 1.1 vbproj or csproj file? I guess I could compile them into lib files and then interlink?...more >>

How to serialize Excel Workbook into a memory stream
Posted by leviw at 12/18/2007 3:08:36 PM
Is there a way to save a dynamically created Excel workbook to a Memory stream? There are no overloads in the Save method to save to a stream. I want to create a web service that will dynamically generate an Excel file, but do not want to use a temporary file for each call. I cannot get the st...more >>

Saving dataset to XML and reading back gives different data
Posted by Lucvdv at 12/18/2007 10:46:08 AM
This would better be described by 'serialization' than 'interop', but I didn't find a newsgroup that seems closer on topic. The problem in a few words: I save data with DataSet.WriteXML, but I get different data back when I read it later with DataSet.ReadXml. More detail: I'm saving a...more >>

COMException error when using 64bit .NET Framework 2.0 & 3.5
Posted by Neil at 12/18/2007 9:23:01 AM
Hi - I posted this several weeks ago and haven't received any 'real' response from the group. Here we go again :): ================================================= My .NET application makes a call to a DCOM server through an interop assembly generated by VS 2005/2008. The program runs fine...more >>

"Attempted to read or write protected memory" on some vista machin
Posted by Jason Rodman at 12/17/2007 8:14:03 PM
I have a strange issue when using a COM component in VS 2005 or 2008. If I compile my application and run it, it works on any xp machine, but does not work on most vista machines. I get an "Attempted to read or write protected memory" error on a certain line. I contacted the vendor of the ...more >>

Excel Application.Calculation Property
Posted by pearsons_11114 at 12/17/2007 10:31:01 AM
Setting this property when no workbook is open throws an exception. Is this the intended behavior? ...more >>

Unable to access folders across two servers.
Posted by Neeba at 12/16/2007 11:14:00 PM
Scenario : 1. The Department files to be accessed are present in the File server. 2. The Code is present in a different server with OS being Windows Server 2003. 3. Access to File server happens using ADS Authentication. 4. Code is developed in ASP.NET using VB.NET. (Web.Config file setting...more >>

C# seems not to understand pointer any more
Posted by Peter at 12/14/2007 5:29:21 PM
We have code like this in our managed wrapper (written with managed extensions in C++) Byte * some_method(); which we compile with VS2003 to a managed assembly. The functions in the assembly work nicely with C#/VB programs written with VS2003, allowing unsafe code. However, as soon a...more >>

When to use Marshal.GetNativeVaraintForObject
Posted by Creativ at 12/14/2007 5:57:27 AM
Hi, I notice that Marshal.GetNativeVaraintForObject is a way to create a variant from object. But DotNet can do marshalling from object to variant when an object is used as a parameter. Can anyone tell in which case I should use Marshal.GetNativeVaraintForObject ?...more >>

set_printquality bug in Excel.PageSetup
Posted by robiman at 12/14/2007 4:13:28 AM
I think I discovered a bug in set_printquality method in Excel.PageSetup. Example: .... Excel.Sheets xlsheets = wb.Sheets; Excel.Worksheet excelWorksheet = (Excel.Worksheet)xlsheets[1]; Excel.PageSetup ps = excelWorksheet.PageSetup; object x = ps.get_PrintQuality(1); ---> debug shows: x = 6...more >>

Testing the COM API of a .NET interop assembly
Posted by tim.vanhekken@googlemail.com at 12/14/2007 2:46:34 AM
Hi, I am trying to create a unit test in .NET that tests the COM API of a .NET assembly that was registered for COM interop (regasm). So the call sequence is like: .NET -> PIA -> .NET. What seems to happen is that a RCW is created that tells the CLR that the underlying type of the PIA is a .N...more >>

Adding COM support to my C# library
Posted by zorrothefox@rediffmail.com at 12/11/2007 4:59:27 AM
Hi, I have written a library in C# for doing some power calculations. I wanted to add COM support to this library, so that other applications/scripts could call this functionality. I have seen a wizard for adding a new ATL/COM project in Visual Studio 6.0. However, this type of pr...more >>

.Net 1.1-COM-Component running fine, .Net 2.0-COM-Component fails
Posted by Werner Schmidt at 12/10/2007 5:01:24 PM
Hi group, I have the following problem: I have a DLL written in C# with a component I want to use inside an Office-AddIn written in VB6. With the .Net 1.1-version of the component there is no problem using my component inside my Office-AddIn. Some time ago, we ported our application ...more >>

Interopt, PowerPoint 2007
Posted by frank at 12/10/2007 12:53:00 AM
I have developed an application for managing placeholders (for date, time, tickers, database values etc) in PowerPoint. The application starts read the placeholders, starts PowerPoint and with DoEvents allows PowerPoint to manage user defined automation, slide change on time etc. The applicati...more >>

VB6 Web Service?
Posted by pbd22 at 12/9/2007 9:52:13 PM
Hi. I just got a project that is taking me into previously uncharted territory. I have a reasonably large VB6 project and need to "turn it into a web service". I know this isn't immediately possible. The two main options seem to be: 1) convert the code to .NET and then create a web servic...more >>

Memory issues when using interop
Posted by Dave at 12/7/2007 11:22:04 AM
Ok, I really hope someone can help me. My application (inherited from someone else) uses interop to speak with an unmanaged DLL (of which I also have the source). It works great under XP, but crashes horribly, and randomly, under Vista, with AccessViolation and OutOfMemory exceptions. However, t...more >>

Passing in an out struct
Posted by Cartoper at 12/6/2007 12:46:18 PM
I am coding in C#.Net 1.1 and need to call some unmanaged C code. The C function I need to call will populate this struct: #pragma pack(1) typedef struct{ char strVendor[256]; char strManufacturer[256]; char strProduct[256]; char strFirmware[256]; char strDeviceType[25...more >>

MethodInfo/Invoke/String
Posted by Martin Madreza at 12/6/2007 1:31:38 AM
Hi, I've a problem with Strings and MethodInfo Invoke. All Strings I give to the Method I invoke where cut to on sign (like char). The parameters are in a object new object[] { "string1" , ...more >>

Retrieving the COM class factory fails?
Posted by JoshG at 12/5/2007 12:09:49 PM
Hello, We have an application that uses COM interop. We are seeing this error right now: System.Runtime.InteropServices.COMException (0x8007007F): Retrieving the COM class factory for component with CLSID {B7D37B26-8A4E-11D3- A82C-00A0C9B2743F} failed due to the following error: 8007007f....more >>

Instantiating C# COM object in C# client via ProgID
Posted by Cartoper at 12/3/2007 10:25:26 AM
I have some legacy code that I am trying to modernize. The code calls for COM to be the conduit between the client and the server. In the days this was designed, the server was often VB6 code and the client, well, I don't know. Today they want everything to be C#, but they cannot break the ba...more >>

Accessing C++ struct members from C#
Posted by cppquester@googlemail.com at 12/3/2007 6:59:59 AM
I have a C++ struct (same problem persists if I change it to class and set the access type (public) explicitely). Like (the public seemed to be necessary, without, the C# part does not know A): C++: namespace n { public struct A { double data; }; } In the C# part (after defining a...more >>


DevelopmentNow Blog