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 15 - 21, 2005

Filter by week: 1 2 3 4 5

DllImport works in Visual Studio but not standalone
Posted by jeff NO[at]SPAM thefirst.org at 3/21/2005 8:36:14 PM
This is a little different than the other DllImport problems I've seen. I'm calling a DLL from C# and it works great when I run inside Visual Studio .NET. But when I try to run my application from the same .EXE file that the project creates, I get "NullReferenceException: Object reference not s...more >>

Problems registering CCW on Server 2003
Posted by Paul K at 3/21/2005 7:03:06 AM
I developed a COM-visible assembly, created a setup package for it and deployed the component. The wrapper registers successfully on my dev box (XP Pro), but will not register on a Server 2003 box that we have here. I created another COM-visible assembly in the past, and was able to register...more >>

Interop.word problem "The RPC server is unavailable"
Posted by lee at 3/21/2005 5:23:04 AM
Hi. I'm new to c# .net programming, coming from a java background, and am currently self learning the language trying to prepare a demo of a windows.forms application of our current java client. I've yet to undergo a training course, so im not sure if what i'm doing is correct or not. I'll ...more >>

FormatMessage 1812
Posted by Dave at 3/20/2005 6:20:24 PM
Hi, I was wondering if anyone could explain why my c# code is not working as expected. See the inline comment for my particular problem, which occurs immediately after the call to FormatMessage: /// <summary> /// Gets the last error that occured on the calling thread. If the last error is a s...more >>

Byte Arrays from .NET to WIN32 DLLs and back
Posted by Jason Toschlog at 3/20/2005 4:17:05 AM
I need to pass a bitmap in the form of a byte array to an existing win32 dll from vb.net. At this point, I'm locking the bitmap data [Bitmap.Lockbits()] and then copying [Marshal.Copy] the data into a byte array on the VB side. When I make the dll call with the array, the app crashs with no e...more >>

Using .Interop for COM access, my C# client only works on development machine... help?
Posted by Scott Smith at 3/20/2005 12:17:15 AM
Sorry, I'm a bit new to this. I'm writing an app that uses a Microsoft-supplied .Interop type library (for MS Virtual Server) so that I can access their COM API from my forms-based application. Things work fine on my development machine, but if I run them on any other machine (one without M...more >>

ActiveX control, disposing
Posted by EggHead at 3/18/2005 6:19:16 PM
Hi all, I am trying to put a Vb6.0 activeX control into a VB.net project. The Vb = 6.0 activeX control works fine in a VB6.0 app. But the problem comes when I close down the Vb.net app. I get = the"exception privileged error". I think it is because the ActiveX = components are not shut dow...more >>

Problem: Calling Indesign from a Windows Service
Posted by Frederik at 3/18/2005 11:52:26 AM
Abstract: A watched folder is monitored for XML files, once the event Created is raised, an Indesign.Application should be created And should process the XML, this works fine using a windows form application. Putting this in a Windows Service gives errors. Description: Error using a VB.NE...more >>



C# dll called from C++ Application
Posted by coffmans NO[at]SPAM gmail.com at 3/18/2005 6:20:34 AM
I created a dll in .NET using C# and I need to call this dll from a Visual C++ 6.0 application. I am programmatically calling the regasm.exe as I am getting the installroot registry key, finding the folder, get the exe, then doing a CreateProcess and it seems to function correctly. My problem...more >>

Windows 2003, Excel and SAP.NET
Posted by Carmen at 3/17/2005 6:47:29 PM
I have an ASP.NET application that exports some data to Excel via Interop. The application is working fine in Windows 2000 Server. Now we are changing our servers and we have installed Windows 2003 Server Enterprise Edition, the application works fine, but it does not export to Excel. I have look...more >>

Reduce the size of Microsoft.mshtml.dll.
Posted by jxl at 3/17/2005 6:05:04 PM
We have a C# application that hosts a WebBrowser control. The project's output includes the file Microsoft.mshtml.dll whose size is over 8MB. This DLL is more than 20 times larger than our actual application. The large size seems to slowdown our application's startup time significantly. Also it ...more >>

PInvoke marshaling a char* inside a struct
Posted by deleria010 at 3/17/2005 8:01:19 AM
I have a C struct that contains a char* and I am tring to use PInvoke (and C#) to marshal it as a string but it is not working. I was hoping someone has done something like this and will give me a hint on how to get it to work. I also have to add a uchar* that points to the start of a large uc...more >>

Reference Counting
Posted by Howard Swope at 3/16/2005 4:33:47 PM
I have a managed application that creates an instance of an out or process com server. After releaseing any references to the server, the server lockcount will not go to zero. Only after exiting the managed application will the out of process server lock count go to zero and the process terminat...more >>

Why does COM+ require a tlb?
Posted by bob c at 3/16/2005 4:27:04 PM
I have a C++ client calling a .NET assembly installed in a COM+ application. Client and .Net assembly/COM+ package all run on the same machine. Everything works great...but I have a question about the inner-workings of COM+. Why does COM+ require the tlb file that was generated when the assemb...more >>

Double-Click a control crashes the .NET IDE
Posted by Fouad N. Jennawi at 3/16/2005 9:31:03 AM
Hi All, We have a set of COM Controls (OCX and DLL) that were developed in VC6. We used the .NET Interop to wrap these controls in order to make them useable on .NET environment and from managed code. The whole product is mature now, but recenty a problem occured with one of our custome...more >>

Saving Pagesetup values
Posted by BenJamin at 3/15/2005 8:01:02 PM
Help, pleeeease. I am attempting to create and then display an excel sheet in a web project. I have it all working nicely, data and formatting. As well it is displaying correctly. everything except for being able to set the pagesetup values in the spreadsheet. I can set them without ...more >>

AxWebBrowser Dispose Issue
Posted by Fireface at 3/15/2005 1:42:11 PM
Hi All, I have written a VB.NET form base application that is using the AxWebBrowser activex control to display a Sharepoint Portal Server website. The bug I am getting occurs when the application successfully navigates to Sharepoint, and only after navigating to Sharepoint, at any time after th...more >>

How to identify given DLL is WIN32 or .NET assembly?
Posted by Gnanaprakash Rathinam at 3/15/2005 11:49:35 AM
Hi All, Is there a way to identify given .dll is WIN32 or .NET assembly by looking into PE headers? Thanks, GP. ...more >>

Annoying NullReferenceException...
Posted by Eugene at 3/15/2005 11:31:05 AM
Somebody please explain me why I'm getting 'Object reference not set to an instance of an object.' in the following code - [DllImport("advapi32.dll", CharSet=CharSet.Auto, SetLastError=true)] public extern static bool AllocateAndInitializeSid( int pIdentifierAuthority, byte nSubAuthorityCoun...more >>

MFC exe calling ATL dll calling C#. Exception when ATL contains managed code.
Posted by Tom Van Hauwaert at 3/15/2005 11:02:36 AM
I am trying to write an ATL dll that uses classes from a C# project. The ATL dll is tested from an unmanaged MFC application. The MFC application throws an exception when the method from the ATL object contains managed code. In the ATL project, I added support for MFC and enabled managed code ...more >>

string passing from c# to unmanaged c++: unicode?
Posted by hs at 3/15/2005 9:51:23 AM
Here is a problem that I thought should be a basic one - but I have not been able to find the information I need. We have a server in C# and an unmanaged client in c++, which calls functions via .net remoting/com interop that return strings. It works perfectly - except that strings in forei...more >>

PROBLEM: Windowless ActiveX controls
Posted by Smugsboy at 3/15/2005 8:23:07 AM
Hi, I have a problem with using VB6 controls, compiled into an OCX, from my managed code application. I used aximp.exe on the OCX to generate a C# file. I use this file in my solution to dynamically add the controls in the OCX to a C# form. When the application exits I get the following messa...more >>

typelib to assembly generation
Posted by Christopher Paulicka via DotNetMonster.com at 3/15/2005 2:59:56 AM
Specifically, I am trying to use .NET with SolidWorks API. I am trying to implement a version of tlbimp, for converting from a typelib into a .NEW assembly, which may grow into another tool (hence, why I don't just use tlbimp). I copied code directly from MS website here: http://msdn.micros...more >>


DevelopmentNow Blog