| shell namespaces (5 replies) |
| microsoft.public.dotnet.framework.interop |
| Is it practical/possible to create a shell extension that could host an internet explorer instance? Any documentation/tuturial/example/website would be appreciated. thanks |
|
| Problems with FindNextPrinterChangeNotification in C# (3 replies) |
| microsoft.public.dotnet.framework.interop |
| I'm writing a .NET application for monitoring print queues. I can get a handle to a printer by OpenPrinter. I can easily run FindFirstPrinterChangeNotification (but only with IntPtr.Zero as pPrinterNotifyOptions argument) and wait for the printer event. Finally I can use FindNextPrinterChangeNotification function and get pdwChange attribute that indicates what kind of event has occured. The tricky... |
|
| Calling Still Image API in C# (21 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Does anyone have any suggestions on how to call the Still Image API to register (and un reg) a C# application for a device? MSDN has an example for C but I'm not sure how to translate this into C# code. The STI API reference is located at: http://msdn.microsoft.com/library/default.asp?url /library/en us/stillimg/st i 58dh.asp The C example is at: http://msdn.microsoft.com/library/default.asp?url /... |
|
| Arithmetic Overflow/underflow 32 bits showing .NET form in Delphi (6 replies) |
| microsoft.public.dotnet.framework.interop |
| I have created a .NET COM object but when I try to create it and show a .NET form I get Arithmetic Overflow 32 bits. Why am I getting this and what can I do to fix it? If I can't solve this we will stay with Delphi and not move to C#. :( Please help for the love of C# :) Thanks //csharpdll.cs using System; using System.Windows.Forms; using System.Runtime.InteropServices; namespace CSharpDLL { [Int... |
|
| Outlook 2003 Interop (2 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Can VB.NET open a .pst file directly? If not, what is the object that corresponds to the entire folder collection in an application object. I want to extract and archive emails from Outlook and store them in an SQL Database. Is there an issue with accessing and extracting the attachments? |
|
| COM interop (9 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Hi all I am trying to call my C# class library from COM. My C# library works perfectly in the .NET environment. I have registered my C# component using regasm and also placed it in the GAC. But for some reason my VBScript COM component can't interop with .NET. I am calling my .NET component as follows. Set GSF CreateObject("CSAppName.ClassName") Can you please tell me what I am missing? Thanks a l... |
|
| PLEASE Give us Service Pack for VS.NET 2003! (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I've been using VB since version 3, and have been a huge fan of your product suite. I'm now using C#, and lived through all of the problems with VS.2002, and played allong with the VS.2003 as a service pack solution. Okay, enough of this monkey business. The COM interop is riddled with bugs, and there are MANY other outstanding bugs of a serious nature that need to be addressed. It floors me that ... |
|
| Strong Name for interop.excel (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Where can I get an interop.excel with a strong name? |
|
| Reading an Internet Shortcut using IPropertySetStorage (5 replies) |
| microsoft.public.dotnet.framework.interop |
| I'm trying to read an Internet Shortcut using IPropertySetStorage, based on the MSDN article "Internet Shortcuts" at http://msdn.microsoft.com/library/en us/shellcc/platform/shell/programmersguide/shell int/shell int programming/shortcuts/internet shortcuts.asp and other sources I discovered on this newsgroup. (Many thanks to all) Everything works except for the PropSetStore.Open(...) at the end. ... |
|
| GetDefaultCommConfig VB v C# Speed differences. (4 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi, I'm trying to get a list of COM ports on my machine using the API GetDefaultCommConfig. I've found an example in VB of how to do this but wanted to C# it up. This works fine but is very slow in C# In VB it searches for 16 COM Ports in less than a second. In C# it searches for 10 COM Ports in about 3 seconds. Why the difference in speed? I did note in the Output window that the VB does the foll... |
|
| Interop COM Interface with multidim VARIANT array (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi there. This is a really tricky one: I have a COM IUnknown interface method: HRESULT AddItems( [in] DWORD dwItemCount, [in] DWORD dwNewBasedOnTypeID, [in, string, size is(dwItemCount)] LPCWSTR* aszItemIDs, [in] DWORD dwAttribCount, [in, size is(dwAttribCount)] DWORD* adwAttribIDs, [in, size is(dwItemCount,dwAttribCount)] VARIANT** aAttribs, [out, size is(,dwItemCount)] DWORD** padwItemHandle, [o... |
|
| ExecutionEngineException when passing managed array to unmanaged C function. (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Hello, I've build a DLL with global functions (calling convention: cdecl) and a native class. Since I cannot interop that class directly (it's no COM class), the global functions wrap the class. I simply enter an ID and then the global function calls the specified class from a array of classes. The class does sort of screen capturing: CreateDIBSection, afterwards BitBlt and so on. Finally the data... |
|
| COM Interop + VB.NET Threading (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I have a VC 6 COM DLL for talking to a hardware device over ethernet using WinSock. Once connected I can poll the device and receive between 0 and 1000 pieces of data. I can use this fine when attached to a command button on VB.NET but when I try adding the polling to a separate thread I find that I can only receive one piece of data back correctly. If any more than this is returned the values app... |
|
| ERROR: Call to Interop.VBA.dll (3 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi, we are finding some very strange behaviour in an ASP.NET application that references a VB6 DLL. When the reference is created to the VB6 DLL, Visual Studio generates an interop DLL for both our DLL and also for the VBA DLL (Interop.VBA.dll). When we run our web application, periodically we obtain the following error message: Parser Error Message: Access is denied: 'Interop.VBA'. Source Error: ... |
|
| Excel Interop from ASP .NET - Help (5 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi, Currently I'm developing a Library in C# that interop with Excel 2000 in order to generate some files base on a dataset. This library will be consumed by a ASP .NET Web Application, but I have a problem with the excel.exe file is not been released from memory. I alredy used the "Marshal.ReleaseComObject(oExcelApp);" method to release all objects but the exe still there. I apreciate any help co... |
|
| SendKeys - PostMessage problem (3 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Hi all. Probably a quick one, I'm using PostMessage to send keys to an applicatoin but how do I convert the key string to a long values so that I can pass this to the wParam. The definition is below Private Declare Auto Function PostMessage Lib "user32" ( ByVal hWnd As IntPtr, ByVal Msg As Integer, ByVal wParam As Long, ByVal lParam As Long) As Boolean This works PostMessage(myWindow, WM KEYDOWN, ... |
|
| Copy table in Word (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi all I have a table in Word that I would like to use as a template for inserting information. How would I be able to copy this table and insert the copy after the original in the document? The table contains certain formatting and also pictures, so I thought it would be better to copy an existing table rather than try to create one myself. The number of tables I am creating relates to how many o... |
|
| .NET Interop in C# for Excel automation (2 replies) |
| microsoft.public.dotnet.framework.interop |
| All, Need help on couple of questions. our requirments needs creation of excel and populating data from database. This application will run on production server. Iam using Microsoft.NET 1.1 and microsoft office 2000 for development. But when I deployed on server machine i got this error: System.IO.FileNotFoundException: File or assembly name Interop.Excel, or one of its dependencies, was not found... |
|
| Open a specific worksheet in Excel from vb.net (4 replies) |
| microsoft.public.dotnet.framework.interop |
| How can I open a specific worksheet in Excel from vb.net, this is what I have tried, however it doesnt work. Dim oExcel As Excel.Application oExcel New Excel.Application oExcel.Workbooks.Open("C:\Client.xls").Worksheets.Select("ON") oExcel.Visible True Thanks Gary |
|
| .NET, ActiveX, & my journey into IL Hell... (14 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| I was tasked to build a .NET/C# server side application that'd answer calls from a modem bank & allow Zmodem uploads. I was given Sax's SaxComm8 ActiveX component (already paid for & not much else out there handles Zmodem; also, new Sax.NET framework STILL doesn't offer Zmodem support yet). With the help of VS.Net, I got the Interop & AxInterop DLL's generated & working & thought all was well. Tha... |
|
| Problems with events C# -> COM (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Hello, I have a problem subscribing to an Connection Point that is automatically generated for my .NET Server from a Com Component. Design of the software: [Program] instantiates [ATL COM Server] instantiates [.NET COM Server] The design is taken, because the program is notwritten by me and uses a very low level COM Interface to communicate with its plugins (many structures, unions, pointers etc.)... |
|
| URL case is adjusted? (3 replies) |
| microsoft.public.dotnet.framework.interop |
| When using the GET request from MSXML2.XMLHTTP component on a web page this talks to an HttpHandler and we are finding that under Windows 2003 Server the Case of the URL has been changed and therefore the paramters that are passed need to be in the correct case. If we do a message box to show the URL prior to calling XMLHTTP then cae is correct however when it hits the server the case has been adj... |
|
| Strong Names Problem (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I'm trying to deploy a .Net Component which is used by a VB6 component. The VB6 runs under COM . Whenever I try to call the newly installed component I get the message :"File or Assembly Name MyComponent, or one of its dependencies, was not found. However, the same component will work over COM if run on the development machine (on which Visual Studio 2003 is installed). I did register my .Net dll ... |
|
| Specifying location of dependent native dlls (4 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Is there a way to specify the location of native dlls that are reference from assemblies. Currently I have the following directory structure: root | Product1 | | a.dll | | Product2 | | a.dll | | Product3 | a.dll What I would like is: root | dlls | | a.dll | | Product1 | | Product2 | | Product3 I know I can set the PATH environment variable but I was hoping I might be able to accomplish this using ... |
|
| LoadLibrary - runtime (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Hello, I have an application in C that currently uses the following approach take a dll path from the user at runtime, load the dll, call a particular function and then unload/free the dll. How can I do the same think in C# or VB.NET ? Many thanks in advance. vikrantca |
|