| IO Security problem - C# App calls unmanaged C++ dll, and the dll launch another process (3 replies) |
| microsoft.public.dotnet.framework.interop |
| I have a C# Application test program, an unmanaged C dll, and a unmanaged exe application. C# app calls the C dll, and the C dll will launch the unmanaged exe program. The unmanaged exe program will read/write temporary files when executing. AFter the unmanaged exe program done the process, the C dll will get the result from the exe application and send back to C# test program. The problem is it w... |
|
| Is this possible too? (5 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi Is it possible to add a com class to a vb.net exe app so other com apps can interact with the vb.net app? Thanks Regards |
|
| A question for expersts with the Upgrade from vb6 (4 replies) |
| microsoft.public.dotnet.framework.interop |
| Hello everybody, I know that not very much people thinks that the upgrade of the vb6 application is the way to go. But I have a big business application, with many customers, continuously developing new functionality, and I can't afford to stop the development with vb6, and begin again, with a new version in vb.net from the beginning. I have read books and articles about refactoring, and I have co... |
|
| How to marshal complex structure with embeded structure array (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Thanks in advance. Simon |
|
| DllImport Charset attribute (2 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Why is this defaulting to Ansi when omitted and not Auto? |
|
| DllImport (2 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| hi there, Is there a tool/way to generate the DllImport (and data structure) statement based on a dll we provide, in order to be able to call functions from a C# app? (advapi32.dll) Thanks, Maurizio. |
|
| Passing value to word (4 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi How can I do this from within a vb.net app; 1. Create a word document from a word template and, 2 Pass a value to a variable defined within the document's VBA module? Thanks Regards |
|
| How can I get a DTS Package to work in an ASP.NET Web Service that works in a Windows Form application? (3 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| I have a DTS Package I am able to execute successfully from a Windows Form application, but I cannot get this to work from an ASP.NET Web Service, although the Web Service impersonates the same user the Windows Form runs under. When I run the Web Service, I make a call to "System.Security.Principal.WindowsIdentity.GetCurrent().Name" and this verifies the user id is the same account I am logged ont... |
|
| Windows service and messages (3 replies) |
| microsoft.public.dotnet.framework.interop |
| I need to work with an unmanaged DLL for a socket based wireless communication API. I'm wrapping it with a combination of unmanaged and managed C calls and running everything in a .NET Windows Service. When it receives a message over the network, it posts a WM SOCKET STATUS message that I have to catch and handle. The initialization of the library requires the application's instance handle and the... |
|
| Searching outlook folders (10 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Hi I am using the following code to search for an email message with id myID; Dim SentFld As Outlook.MAPIFolder Dim Email As Outlook.MailItem Dim I As Integer OutlookApp New Outlook.Application SentFld OutlookApp.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderSentMai l) iCount SentFld.Items.Count Email CType(SentFld.Items.Item(1), Outlook.MailItem) Email.UserProperties.Add("EmailID", Ou... |
|
| System.Runtime.InteropServices.COMException 0x80010105? (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi Guys, I can instantiate a COM object in VC# without any problem. But when i call one function exported by the COM object i get this exception. System.Runtime.interopservices.COMException 0x80010105 I call it from an ASP .net application Could u please tell me how to avoid that problem. Thanks and waiting for ur reply Badri |
|
| Access VB6 codebase from .NET (3 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi all I am currently developing an ASP.NET app which has to use VB6 DLLs for it's business logic. With ASP, we used to be able to have the VB6 code running, and the ASP script would access the code when it created an object from the VB6 classes. This enabled me to test the ASP front end with up to date VB6 code (it is maintained by someone else, and there is not always an up to date compilation a... |
|
| Adding a string name to Interop.Excel.dll (10 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Hi, I have a VB.NET (VS 2003, .NET 1.1) application which references Excel 2000. This generates Interop.Excel.dll. The generated .dll is invalid, so I use ildasm to generate a .il file. I change to .il file (changing some [in] to [in][out] so events work properly). I have a .snk file generated using "sn.exe k x.snk" I then wish to generate a new Interop.Excel.dll from the .il with a strong name. I... |
|
| How to create COM exe server in NET (3 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Hi In VB6 it is very easy to create out proc server in ActiveX.exe project. How to do that in .NET ? If I understood properly there are no ways to do that in .NET It looks like by design? Thanks, Voloida. |
|
| How do I make a C# class invisble to COM clients? (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Hello, I have a C# class library with a class (let's call it MyCom1) that implements a COM interface. I successfully created and used the class in another app (written in C 6.0). Now I want to add some more functionality to MyCom1 by creating some non COM classes that it will use. Specifically I added a Form call EditForm. I'd like to keep EditForm "private", that is, I don't want to expose it to ... |
|
| how do I debug my C# component when calling it from VC++ application? (3 replies) |
| microsoft.public.dotnet.framework.interop |
| I have created a C# component and successfully converted it into tlb file. Is it anyway to debug my C# component when calling it from my VC application without opening VC project from .net ide? Thanks. Linda chen |
|
| combining com dll and C#/.Net assembly in single assembly (2 replies) |
| microsoft.public.dotnet.framework.interop |
| We have a com dll and we need to access it in .Net/C# client.Additional requirement is to have com dll and C#/.Net control in single assembly/dll. The effords is not to deploy the com dll seperately in order to run .Net/C# control in client machine. Can Multifile assembly work for this solution. If so, how we can go about it. |
|
| call C# to C (4 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Hi, Is there any solution for calling .NET code (in an assembly written in C#) in a C code ? I have some component, which is written in C#/.NET, but I need a C interface to it (without rewritten all). Is it possible ? Shall I have to pass throw a COM intermediate ? Thx |
|
| Windows Service COM Interop (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I'm looking for information on how to take an existing C COM Windows Service ( an EXE ) and Wrap it so I can access it via ASP.NET C# and .NET remoting. Can't seem to locate any Doc on how to do this. I want to avoid rewriting the component in C#.NET due to time constraints. |
|
| COM Interop with GAC registration? (3 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi, We're struggling at the moment to get a .net dll to be callable from a vb6 app. Basically, we've looked at the 101 articles out on it, and have used regasm, tlbexp etc. extensively. We cannot get it to work as we keep getting file or dependency cannot be found errors. If we simply compile from VS using the Register for COM Interop option this works great but obviously doesn't help us with depl... |
|
| Excel Events C# (No Touch Deployment) (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I have a WinForm app which opens Excel (using Automation) and traps Excel's Workbook beforeclose event. The handler for this event executes when the app is run as a standalone exe. However, when the app is deployed using No Touch Deployment technology and accessed from the browser the events are not triggered, but other features of the app (like accessing web service etc.) are not affected. By the... |
|
| Form Fill in Word document. (2 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| I'm trying to use c# to parse a Word document. The document contains a series of textboxes. I can successfully open the document in my code. I then iterate over the document's Shape collection as follows: foreach (Word.Shape shape in doc.Shapes) { Console.WriteLine(shape.OLEFormat.progID); } The WriteLine statement dumps a listing of expected "Forms.TextBox.1", so I assume I'm referencing the corr... |
|
| Registration-Free COM Interop... (5 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Hello, Is there anyone who has worked on Registration Free COM Interop? I am looking at communicating with a COM Component from a .NET application without registering it. Thank you, Prem |
|
| Deployement program that it has activex control (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I want use Microsoft Office Document Imaging control in the VB.NET application . I added this control to Visual Studion.NET tollbox and used it in my program. This program work coorect in my comuter, but it don't work in other computer, because first must install activex control for this component. Name of dll file for this component is "MDIVWCTL.DLL" and exist in this address: "C:\Program Files\C... |
|
| Getting QueryInterface failed exception (3 replies) |
| microsoft.public.dotnet.framework.interop |
| I am using sqldmo.dll to get all SQL Server names. I have added sqldmo dll to References. It's giving QueryInterface exception. I have tried the same thing in VB, there it's working fine. Can anybody help me out in solving this problem? Below I am giving the code Dim obj As New SQLDMO.Application() obj.ListAvailableSQLServers.Count obj.ListAvailableSQLServers.Item(1) |
|