Contents

Posts in microsoft.public.dotnet.framework.interop

 

VTD-XML tutorials by code examples posted  Replies (1) 10 December 2007
The C version: http://downloads.sourceforge.net/vtd-xml/c_tutorial_by_code_examples.... The C# version: http://downloads.sourceforge.net/vtd-xml/CSharp_tutorial_by_code_exam... The Java versio...

 

Complete Code?  Replies (1) 9 December 2007
Please can you post the code you had so far? I'm interested in STI registration too, but I can't manage to get working code on my own...

 

VB6 Web Service?  Replies (1) 9 December 2007
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 pos...

 

excel Interop Range question  Replies (1) 8 December 2007
I am trying to pull values out of excel into an array. I have this all working but im having trouble specifying my exact range that i want. Dim xRange as object xRange = objworksheet.UsedRange(...

 

excel Interop Range question  Replies (1) 8 December 2007
I am trying to pull values out of excel into an array. I have this all working but im having trouble specifying my exact range that i want. Dim xRange as object xRange = objworksheet.UsedRange(...

 

Memory issues when using interop  Replies (1) 7 December 2007
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 crashe...

 

MethodInfo/Invoke/String  Replies (2) 6 December 2007
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[] ...

 

Strange Excel interop problem with GAC  Replies (1) 6 December 2007
Got a strange problem. I have a .Net assembly with a COM interface. Also have a VS2005 installation project which installas the assembly to the GAC (with "Global Assembly Cache Folder"), I h...

 

Passing in an out struct  Replies (3) 6 December 2007
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 str...

 

getting IWebBrowser2 from WinForm user control  Replies (1) 6 December 2007
Hi I have Win forms user control (.NET 2) hosted in web page by IE. My control is registered as ActiveX - COM visible, and is locally installed. How can I access hosting HTML documnet (mshtml...

 

Struct Array in Struct  Replies (1) 5 December 2007
Hi, I have a problem with adopting DLL library which was written in C to my C# application. In C dll library there are two structs: typedef struct _struct_RESULT { unsigned long field1; floa...

 

Retrieving the COM class factory fails?  Replies (1) 5 December 2007
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 componen...

 

Function/Event XML Commenting For Intellisense Is ...  Replies (1) 5 December 2007
Hello Gurus, I'm currently using VS2005 Team Suite and am having troubles with the Intellisense XML commenting tool. Like C#, typing three single quotes (instead of /// for C#), XML code is gener...

 

ASP.NET calling COM Interop object  Replies (1) 4 December 2007
Am trying to access a Blackbaud Financial Edge COM Interop and kept getting errors whenever I access the same object for the 2nd time (or is it?). I am looping through a series of records from th...

 

Obtain a NMHDR structure from another process' WM_ ...  Replies (1) 4 December 2007
I am writing a C# app that is attempting to automate another process's controls. I am having some trouble with one of the controls not responding to a mouse click. Sometimes however the control ...

 

Accessing C++ struct members from C#  Replies (2) 3 December 2007
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): ...

 

Instantiating C# COM object in C# client via ProgI ...  Replies (1) 3 December 2007
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 ...

 

Killing a thread in an ActiveX class  Replies (1) 3 December 2007
Hi, I am using a legacy ActiveX class in C# to control some old hardware. The class is closed-source and I have no access to the original source or developers. There is a bug in the ActiveX class...

 

Registering .Net COM enabled library  Replies (2) 30 November 2007
Hi there, I have written a COM enabled .Net 2.0 library which works fine on the machine that I wrote it on. However, when I deploy it on a customers 2003 server and try and use it,...

 

BYTE* buffer to managed stream?  Replies (1) 30 November 2007
In managed c++, what is the most efficient way to copy the contents of a native buffer (BYTE*) to a managed stream? thanks scott...

 

[URG] Interop WPF with Mappoint  Replies (1) 29 November 2007
Hello ! I have a big problem : i want to use the MapPoint 2006 activeX with WPF ... and it doesn't work :( The MapPoint ActiveX is embeded in an usercontrol, I put this user control in my WP...

 

Backgroundworker and VSTO 2005 with C#  Replies (1) 29 November 2007
Hi, maybe somebody can help. I added a Backgroundworker component to an Excel Spreadsheet because I have to add data from this sheet to a database. In the backgroundWorker_DoWork procedure I call...

 

Cant use a COM Component from .NET if it was expor ...  Replies (6) 29 November 2007
I have a COM server executable, written in .NET. I exported a type library and registered it. So now I can create an instance of the component using CreateInstance from non .NET code. That work...

 

Interop Error: No matching sub on interface  Replies (3) 28 November 2007
Hello, I will get a compiler Error when trying to implement an interface, using ActiveX-types as parameters in VB.NET. I will explain the problem with ActiveX-ADODB v2.8 but, i can reproduce the...

 

Determine Modal or Modeless  Replies (1) 28 November 2007
If I have a handle to a window, is it possible to determine if that window is modal or modeless? Thanks, Mike...

 

defrag API  Replies (7) 28 November 2007
Hello, is there any way or documentation to access windows defrag API for ntfs from NET ? thanks...

 

C#, exposed as COM with pointers as parameters  Replies (9) 28 November 2007
Hi... We've got a mix of old legacy code and new versions in various states of porting being used in our system. One of the objects ported to C# and then exposed back to the legacy code as C...

 

COM Interop Threading/Remoting Issue  Replies (1) 27 November 2007
I have an application that uses a .NET Remoting singleton object to handle requests from many clients. The Remoting object is hosted by a Windows Service. The Remoting object also uses a third-p...

 

using COM written on VB6 from webservice (C#) Fram ...  Replies (1) 27 November 2007
Hi I’m trying to use COM, written on vb6 from inside webservice(C#). I put reference on my dll, creating interop. in bin folder. Then I have something like this Using Intelex; … p...

 

using COM written on VB6 from webservice (C#) Fram ...  Replies (1) 27 November 2007
Hi I'm trying to use COM, written on vb6 from inside webservice(C#). I put reference on my dll, creating interop. in bin folder. Then I have something like this Using Intelex; ... publi...

 

ADODB.dll references problem  Replies (1) 26 November 2007
Hi, I have a solution with a bunch of C#/VB projects that references ADODB. These projects have been in production for a couple of years and we were running problem free. I just loaded up these p...

 

How do I find the main window handle?  Replies (2) 26 November 2007
In a DLL written in C#, how can you get the handle of the main window of the app that called you? Thanks, Mike...

 

Marshaling a bool from unmanaged to managed code  Replies (3) 26 November 2007
I have a DLL that takes a pointer to a callback function of type: typedef void ( __stdcall * StdMyCallback_T)(void* context, const char * sName, bool bState, EError error, c...

 

Outlook file template (.oft)  Replies (1) 24 November 2007
Hi, I need to open the outlook file template in the server, but ms-office is not installed in the server. Iam using asp.net and vb. can you help me in this regard. Thanks in advance, Ma...

 

Marshal a 'Single' or 'Double'  Replies (2) 23 November 2007
In coping data between managed and native code, I make use of the Marshal class methods, ReadInt32, Copy, StructureToPtr, etc. However, I also want to copy Double and Single values, but given that...

 

!!! SOFTWARE 4 SALE !!!                            ...  Replies (1) 23 November 2007
Software for sale. Huge Selection. 10 Euros/CD. Worldwide shipping. Windows, Mac, and Linux. The very latest software, stock video/photo, games, etc. Contact David for details: david007@wor...

 

.Net AddIn - Password prompt when closing Excel  Replies (1) 23 November 2007
I am developing COM addIn for excel 2003 using C# and .Net 2.0 interop. In the code I am sibscribing to excel events like open, activate, etc. It looks like it causing problem with any VBA addin ins...

 

C++ dll usage produces StackOverflowException only ...  Replies (1) 23 November 2007
Hello everyone, I have a C# console application. I use DllImport to access a c++ dll. In an extra thread I poll a method in this dll. This works fine. Now the problem: I use the same code an...

 

Excel COM don't close  Replies (1) 23 November 2007
I know that this question is ask a lot of time, but I try everything about this theme and nothing I have windows xp sp2 with office 2007, V.S 2003 with .Net 1.1\ The code was tested inside WebAp...

 

Entrust Tookit with .NET  Replies (1) 22 November 2007
Anybody managed to get Entrust Toolkit working with .NET? I am looking for correct DllImport prototypes. E.g like this one: [DllImport("entapi32.DLL", EntryPoint="_ETGetCertIssuer@8", SetLastError...

 

VSTO 3.0, Outook 2007 and Publish  Replies (7) 22 November 2007
Hi, I'm using VS2008. I trying to create an Outlook 2007 add-in. After making a very small and simple Outlook test add-in, I wan't to try an publish it, so I use the Publish feature of VS20...

 

Application inside remote desktop?  Replies (9) 22 November 2007
Did anyone ever need to know if your application is being run inside a remote desktop session? I have an application written in .Net 2.0 And I need to know if that application was started inside o...

 

avyldgnhyk  Replies (1) 22 November 2007
Hello! Good Site! Thanks you! pbbuzldsft...

 

array of 8-bit ansi strings  Replies (1) 21 November 2007
I'm trying to call a c++dll with an array of strings from vb.net. The c++dll writes to these string buffers which are returned. First I found out that the default marshaling in .net-fw doesn't cop...

 

michael lalonde  Replies (1) 20 November 2007
hey wazzup crazy paco http://www.freewebs.com/wandererartificialstupidity/ http://www.geocities.com/wandererartificialstupidity http://wandererartificialstupidity.tripod.com http://members.aol.c...

 

BM_GETCHECK and BM_SETCHECK and .NET controls  Replies (4) 20 November 2007
I have googled this quite a bit and I just can't find the answer. I need to read the state of a radio button in another process. Not much is known about the other process, other than the fact th...

 

ICustomeMarshaler and ref p/invoke  Replies (1) 19 November 2007
I'm using C# in VS2005 and having a problem when I implement a custom marshaler and I call a reference type by ref. Any help greatly appriciated. I'm using ICustomMarshaler because of the str...

 

Returning a multidimensional array to VBScript  Replies (1) 16 November 2007
Hi, I need to write a ComVisible object in C# and there are some methods that must return a multidimensional array of strings. I created a .NET assembly, marked it COM visible, created a TLD via...

 

Marshalling String Arrays and newsted structures  Replies (1) 16 November 2007
All In VB6 I had the following types declared: Public Type STRUCT1 x As Long y As Long z As Long End Type Public Type STRUCT2 nameArray(10) As String * 255 structArr...

 

How can I translate a DWORD to a .NET object?  Replies (1) 15 November 2007
I have a byte array and I'm trying to translate a DWORD in that array into an integer so that I can use it as an offset into a later part of the array. Once I get the offset, I've successfully work...