Groups | Blog | Home


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 > february 2004 > threads for february 15 - 21, 2004

Filter by week: 1 2 3 4

.NET windows app using Excel results in Not enough memory to run Excel
Posted by Ashley gr at 2/21/2004 7:36:07 PM
We've a Windows application(rich-client application) which uses set of data in the excel input files and generates around 58 workbooks with each workbook containing around 32 sheets each. We tried it in Excel 97 Application makes extensive use of the Excel object model to generate the files Ap...more >>


Excel Doesn't Quit After Rows.AutoFit()
Posted by Douglas Forrest at 2/21/2004 2:39:28 PM
I am working on VS 2003 VB/Framework 1.1 application The app creates an Excel worksheet using the Excel 10.00 Object Library, following the guidelines set out in Microsoft KnowledgeBase Article 317109, PRB: Office Application Does Not Quit After Automation from Visual Studio ..NET Client, htt...more >>

MSCOMM32.ocx license error
Posted by Eray Çakýr at 2/21/2004 1:56:02 PM
hi ; at the C# compiler using a MSCOMM32.ocx project, when i want to install this project on the pc which is not installed visual basic says "there is no licence". for solving this problem do i need to register MSComm32.dll into the C#? i read in .NET documents doing this with Ic...more >>

Problems Passing SAFEARRAY to managed code
Posted by Vojak at 2/21/2004 12:21:05 PM
Hi all I have the following managed code signature public bool Method ( UInt32 handleOperation, int arrayCount, Array objectArray, out int objectCount The semantics of the method is to populate the array with a number of handles (ints) and return the number of elements filled in objectCount ...more >>

Error calling unmanaged dll from vb.net
Posted by leftie at 2/21/2004 9:21:06 AM
Folks, I'm trying to call an unmanaged function from VB.NET and keep getting "Object reference not set to an instance of an object" error. The code that i wrote can be found at: http://www.nomorepasting.com/paste.php?pasteID=5981 The dll (if some kind soul has the time to compile and run...more >>

CreateWindowStation
Posted by Paul at 2/20/2004 9:42:03 AM
Does anyone have the vb code to use this function I have found the API import for this but not the layout of the structures that need to be passed to the routine. I'm also looking for vb versions of - CreateWindowStation - SetProcessWindowStation - CreateDesktop - SetThreadDesktop - GetGUIT...more >>

Where to find Microsoft.Interop.Security.AzRoles.dll
Posted by sudheerravindran ravi at 2/20/2004 3:42:11 AM
Hi I am using windows 2000 +sp4 and .net framework 1.1 I would like to to know where I can download Microsoft.Interop.Security.AzRoles.dll thanks *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

Problems returning null object reference using C++ .NET and Interop
Posted by Net1000 at 2/19/2004 3:01:07 PM
Hello I need to write a plug-in for an application (Autodesk Inventor). This plug-in access and controls the application through COM interfaces. I am using C++ .NET and accessing the COM interfaces from managed code using the RCW. One of the properties (an object reference) of a COM object needs t...more >>



COM Class Vs. Sn.exe, Gacutil.exe, Regasm.exe
Posted by Anonymous at 2/19/2004 1:46:05 PM
There seems to be two ways of creating a COM in .NET 1) Select the COM Class template 2) Create a class and then use Sn.exe, Gacutil.exe, and Regasm.exe to assign the assembly to GAC and COM to registry I know that COM Class option is a lot easier to use. However, is there any drawbacks from u...more >>

Problem calling SendMessage passing FindText structure
Posted by jbhan at 2/19/2004 1:01:08 PM
Hi I am trying to use SendMessage to find text in a certain window using the FindText structure as parameter But I keep on getting a "Object reference not set to instance of an object " when the Sendmessage gets executed The same code in vb works just fine Can anyone help me out please with wh...more >>

error calling com from .net
Posted by John Doe at 2/19/2004 11:52:23 AM
Hello, I have an idl file written using MS VC++ 6. I used the VS .net midl.exe tool to generate a type library file (.tlb). I have tried to use the tlb file in a VB.Net app using each of the following two methods: 1) Add reference in VS .Net using the COM tab , browse, select etc. 2) Usin...more >>

Managed c++ DLL call from C#
Posted by TheGurr at 2/19/2004 10:59:40 AM
I'm trying to write a csharp program on top of some c++ code I have. The code need to operate on a fundamental class which is serializable. The class is written in c++, and my idea was to compile that c++ as managed code and use it when the serialized class enters the c# world for de-serializatio...more >>

RPC Error?
Posted by scorpion53061 at 2/19/2004 10:11:15 AM
Hi big problem here. I am automating MS Word. I created a global instance at program startup to avoid having the end user have to wait a extremely long time to get thier report. The first time a report is generated everyting runs fine. The second time an attempt is made to write a report I g...more >>

tlbexp.exe and enumerations
Posted by DWorthem at 2/19/2004 8:41:09 AM
We have a set of C++ COM components and wish to migrate these to .NET so that the COM interfaces are migrated to .NET interfaces. (We would then have the option of doing implementation with both the .NET classes and native C++ The process of migrating the interfaces would first start with taking ...more >>

CCW overheads
Posted by mrjollyrogers at 2/19/2004 7:16:06 AM
To whom it may concern: We are in the process of deciding on a technology to go with - .NET or VB6. The project entails interfacing with Classic COM objects written in C++ on another system. I've suggested that we write our custom code using the .NET framework and expose it to the classic COM obje...more >>

can't call NetBIOS API function on dotnet
Posted by wy6688 at 2/18/2004 11:21:06 PM
I declare as following [DllImport("netapi32.dll", CharSet = CharSet.Ansi, SetLastError = True, EntryPoint = "NETBIOS") function Netbios(ref NCB: tNCB): byte; external but the runtime always complaint can't find NETBIOS entry at netapi32.dll when I run a C++ without dotnet, it's ok Any solu...more >>

InterOp problems and passing a string...
Posted by Anon at 2/18/2004 5:13:27 PM
What is the dotNET equilivalent of calling a API function and specifying the a parameter should be passed through using the ByVal keyword, such as the first parameter 'DeviceName'in the following... [VB6 Code] ret = ChangeDisplaySettingsEx(ByVal DeviceName, DevM, ByVal 0&, CDS_NORESET Or CDS_...more >>

Which Approach Is Cleaner ?
Posted by Ken Onweller (.NET MCSD) at 2/18/2004 4:15:59 PM
I have a shared assembly I'm putting into the GAC. This assembly is the sole user of a COM dll. One approach is to give this dll a strong name by specifying a key in the Wrapper Assembly Key File setting under Project Properties (C#). I must then explicitly put the generated Interop.COMSERV...more >>

How to Get Win32 error message
Posted by Wei Wang at 2/18/2004 1:25:55 PM
When I use Interop to call a win32 function, if the function returns with an error, the framework provides a call GetLastWin32Error to retrive the error code. But I can't find a call that replaces FormatMessage. Does the .NET framework has a function that does what FormatMessage does or do I have...more >>

Get the RasGetProjectionInfo() to work in C#
Posted by Lars Wilhelmsen at 2/18/2004 11:02:59 AM
Hi everyone, I'm trying to get the RasGetProjectionInfo call to work with P/Invoke in C#. (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rras/rras/ rasgetprojectioninfo.asp) --- [StructLayout(LayoutKind.Sequential,CharSet=CharSet.Unicode)] public class RASPPPIP { publi...more >>

How to stop a vb6 appl from a C# service
Posted by José Joye at 2/18/2004 9:04:19 AM
Hi, For some reason, I have a VB6 appl (that expose no forms) that I mustcontrol using a C# service. I'm able to start it from my service using the Process class. However, I do not really understand how to properly stop it. I thought the normal way was to get send the WM_QUIT to the created p...more >>

ASP 0177 Server.CreateObject failed calling c# server
Posted by Jerry Gallagher at 2/18/2004 8:01:11 AM
Getting this error when calling a c# assembly from asp on _one_ specific server (The component works anywhere else): Server object error 'ASP 0177 : 80131700' Server.CreateObject Failed /test.asp, line 6 80131700 Gac and regasm is done ok. Is it a security problem? ...more >>

Cannot Reference Visio's PIA
Posted by MatthewW at 2/18/2004 12:36:10 AM
hello al I am creating a program which needs to automate visio 2002 using .NET 2003. The problem is that i have installed visio and the PIA's but when i try to add a reference to the visio pia from my project, the item doesn't appear within the COM components tab. The interesting thing is that t...more >>

How to use Interop with unknown structure in C.
Posted by sqcliu at 2/17/2004 6:01:10 PM
I encounter a strange problem using platform invoke using C#. The senario is this: I have a dll which uses a 3rd party static link library (lib). Inside the lib, there are some C structures defined by not exposed to user, in the dll, that data type can be treated as an opaque type. I use C# a...more >>

Faxing Problem (using FAXCOMLib)
Posted by Russell at 2/17/2004 6:11:09 AM
I have been experiencing a strange problem.. I have created an application which has the ability to sends Faxes. This app works fine on my dev machine (WinXP) and test Servers (Win 2000 Server). When deploying this to a clients site, it works the first time it runs, then any further attempts cause...more >>

Strange problem with platform invoke in C#
Posted by sqcliu at 2/17/2004 1:46:05 AM
I encounter a strange problem using platform invoke using C# The senario is this I have a dll which uses a 3rd party static link library (lib). Inside the lib, there are some C structures defined by not exposed to user, in the dll, that data type can be treated as an opaque type I use C# and un...more >>

Obtain .NET "Ticks" from J2EE "Millis"
Posted by num NO[at]SPAM laposte.net at 2/17/2004 1:39:35 AM
Hi all, Sorry for cross-posting. I have to convert a J2EE date as a long ("Millis") in a .NET date as a long ("Ticks") In Java, currentTimeMillis, is the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC. In .NET, DateTime.Ticks is the 10...more >>

OCR in MODI.Document Class in Office 2003
Posted by Jan Timmer at 2/16/2004 3:15:07 PM
Hello, I am trying to OCR a .JPG file using the MODI.Document Class in Office 2003. This is what I do: private void Start_OCR(object sender, System.EventArgs e) { MODI.DocumentClass ModiObject = new MODI.DocumentClass(); MODI.MiLANGUAGES milan = new MiLANGUAGES(); milan = (MODI...more >>

InteropServices and Dll function entrypoint.
Posted by Thomas Johansen at 2/16/2004 2:26:41 PM
Hi I have an GetObject() function in my "old" unmangaed C++ compiled DLL. I need to call some function in this dll, so I use DllImport in my C# application. This is how I do it: (This code works) [DllImport("ITSIOU.dll", EntryPoint="?GetObjectW@CIODriver@@SAPAV1@XZ", CallingConvention=...more >>

streaming non-HTML content into AxShDocVw
Posted by Arno richard at 2/16/2004 5:21:06 AM
all There's a lot of information in all forums about the basic usage of AxShWebVw, using the Navigate() method, and some on how to stream content directly into the control using the IPersistStreamInit interface The 1st method (navigate) easily allows you to navigate to any type of document recog...more >>

Question regarding marshaling linked lists in C#
Posted by OutOfAlignment NO[at]SPAM Hydrogen.Net at 2/15/2004 9:08:26 PM
Greetings, I am attempting to use exported functions from the Windows Packet Capture dll, wpcap.dll. The problem is that the many of the functions make extensive use of linked list. How would one marshal a Function in C# that recives a pointer to a struct that will be populated with a linke...more >>

CDO 1.21 & ASP.NET
Posted by Maxim at 2/15/2004 2:41:05 PM
I have a major problem with cdo 1.21 and ASP.NET. I hope you can help me. Please, could you guide me in right direction I need to access an Exchange Server 5.5 from ASP.NET application. ASP.NET application resides on Windows 2000 server and Exchange Server resides on the separate Windows NT Server...more >>


DevelopmentNow Blog