| System::Guid and REFCLSID (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Does this managed C code always work? another solution? void Function( System::Guid clsid ) { Guid* pin * pClsid &clsid; REFCLSID refClsid (REFCLSID) *pClsid; UseRefClsid(refClsid); } void UseRefClsid( REFCLSID clsid ) { ... } |
|
| InvalidCastException in ReleaseComObject (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I don't understand why i get an InvalidCastException when calling Marshall:ReleaseComObject() in this code : RCW CCW .NET Control p1 p2 p3 void Proc( IUnknown* p2 ) { Object* p1 Marshal::GetObjectForIUnknown(p2); // p2 is a CCW on a ..NET Control try { ..... } finally { Marshal::ReleaseComObject(p1); //InvalidCastException here } } Remark : There is no exception if p2 is a normal COM object (not a... |
|
| Searching the domain with WinNT Provider in ASP.NET (2 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Hello, I'm trying to get Users that belong to a group with the WinNT Provider in an ASP.NET environment. I found several examples to do this under ASP using the GetObject Method (GetObject("WinNT//:Domain/...). But how does it work in VB.NET? Can I use the GetObject Method, or is the usage of DirectoryServices or ADSI the right way?An example please. Dot Net Guruhias From: Dot Net Guruhias Mohr Posted by a user f... |
|
| Topic: .NET/COM Interop in VB6 MSProject Addin (7 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Topic: .NET/COM Interop in VB6 MSProject Addin I have an application that runs as an add in to MS Project. The add in is written in VB 6.0. I am expanding the add in to include new features that were written in C#. The C# code base consists of several individual projects/dlls, that are also used by a separate stand alone .NET application. In order to make the .NET functionality easy to use from VB... |
|
| Passing interface back to managed code from COM out of proc server (4 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| I have written a COM server that is packeged in an .exe and I am using it from a Windows Form app written in C#. This component is COM singleton and activation model is out of proc and the threading model is MTA. The methods of the COM server that passes native data (and even C style arrays) back and forth works fine. The trouble is when I am creating a COM object inside the .exe server and want t... |
|
| VBA Primary Interop Assembly? (5 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| I wonder if Microsoft provides a Primary Interop Assembly for the COM (Visual Basic For Applications [msvbvm60.dll])? I have EXE ActiveX that references the previous VBA file. When I use tlbimp to generate the Interop, it also creates an interop for msvbvm60 and calls it VBA.dll. I wants to create a PIA for my EXE, so I want all the PIA(s) for anything that it references inculding msvbvm60. Thanks... |
|
| What is Microsoft.Office.Interop.Visio ? (4 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| I'm working with the Visio ActiveX object and using the example found here http://msdn.microsoft.com/msdnmag/issues/03/12/visio2003/ I'm trying to just make sure my computer is setup correctly. When I load the example I have the following two references that show up as invalid: AxVisOcx Microsoft.Office.Interop.Visio I can repair the AxVisOcx reference by re linking to the "Microsoft Visio 11 Draw... |
|
| help in visual basic .net (2 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| I have a fortran exe (asos.exe), which outputs a text file in the same directory as that of the exe. When this exe is invoked individually, it outputs a text file. I tried to invoke it from .net form, using shell command / system.dagnostics.process.start, but it writes to the console and not to the file. In other words my output text file is not created at all. I want to overcome this problem. My ... |
|
| Calling a VB.NET com+ component from a vb 6.0 com+ component (2 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Need help!!! This works on my development machine (of course). I have 2 com components installed on a win2k server. 1 is a vb 6.0 dll and 1 is a vb.net dll. Here is the scenerio: I installed both on the server by exporting .MSI packages from my development machine and running the package on the server. A VB 6.0 client app makes a call to the VB 6.0 com component which makes a call to the vb.net co... |
|
| Error loading library with function that returns a collection (2 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| I am getting the following error when compiling: COM Interop registration failed. Could not find a type library for assembly 'Microsoft.VisualBasic'. This QB article describes the problem: http://support.microsoft.com/default.aspx?scid kb;en us;316163 However, I have registered the DLL (many times), and I still get the error. The error is due to a function declared as: function my func() as Collec... |
|
| ActiveX and C# Interop (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I am having problems getting an ActiveX DLL written in VB6 to call a method in a C# class library component. My C# DLL is called CSharpProject.dll and contains a public class called CSharpClass. In this class is a single public method that returns the string "Hello from C sharp". My VB6 ActiveX DLL references the C# DLL (CSharpProject.dll) using the type library CSharpProject.tlb. The ActiveX DLL ... |
|
| Office XP PIAs are they badly built or am I doing something wrong? (2 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| I've been having all sorts of trouble with automating Office XP from .NET, the PIAs just seem to be unusable! I just hope that itâ s just that Iâ m doing something silly, please could someone point out to me! Iâ ve had problems trying to make calls as advertised in documentation (see my post â œProblem with empty strings in the XP SmartTag PIAâ ) but this latest hiccup is making me doubt the whole... |
|
| Losing Interop information on postback? (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi folks; I'm working on an ASP.NET 1.1 app, and one of my classes is a managed class that has a private member typed through COM Interop. During the initial page load Interop appears to be functioning correctly, however for various reasons I need to stuff the object into Session and then deal with it on postback. After a postback, the private (Interop'd) member appears to lose it's type informati... |
|
| Interop dll failure (2 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Hi, I have a VB COM dll (which is set to binary compatibility). I created a interop dll and using it in a ASPX page. This is working fine. I rebuilt my VB dll and my aspx page stopped working. I generated another interop dll, now it is working. Should i have to generate ineterop dll, when ever i rebuild my COM dll? What is the fix for this? Thanks in advance. Ravi |
|
| FoxPro public variable problem in multithreaded VB.NET app (4 replies) |
| microsoft.public.dotnet.framework.interop |
| Hello, I am building a VB.NET form interface for a legacy Visual FoxPro 7.0 (VFP) DLL (which contains our business logic). Basically, the form instantiates multiple instances of the VFP object (via COM interop) in separate threads. I would like each VFP object to be completely independent of the others. In the VFP DLL, we have VFP variables that are declared using the "public" keyword. As best as ... |
|
| accessing constants like msoBarTypeMenuBar (2 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| How does one access constants like msoBarTypePopUp (name in VBA programming namespace) from the office interop libraries (C# in my case). I guess the broader question is: where's the reference documentation for these libraries? Thanks, Carlos |
|
| Microsoft Publisher 2003 Interop - Does anyone do this? (3 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| I'm in the middle of a project creating a MS Publisher document via C# and Office interop. The error messages that are returned are less than desirable. For example. I create a textbox, set its text and then set its AutoFit to BestFit so that the text fits correctly. On some occaisions I receive the following error: Unspecified error at Microsoft.Office.Interop.Publisher.TextFrame.set AutoFitText(... |
|
| Calling DCOM From .NET (5 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| I have to call a DCOM server from my .NET application. To be clear the DCOM was developed by another company and I have zero choice in the matter, telling me to rewrite the server of another company is not the answer I need, thanks. I have been lost as to where to even begin. In our old app which was written in C we dynamically registered their type lib then got access to the server via a CoCreate... |
|
| Assembly Interop.SHDocvw.dll or one of its dependencies not found Problem (3 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| I added a reference to the COM object SHDOCVW.dll. It of course created the Interop.shdocvw.dll file. As I understand it this is for the Runtime Callable Wrapper, so .NET can call on the COM object with interoperability. Now, my problem is that it says when I try and load the design of the ..cs file: " File or assembly name Interop.SHDocVw, or one of its dependencies, was not found." However, I ca... |
|
| Interface inheritance when using .NET assembly through COM Interop (4 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Hi, We have .NET dlls containing interfaces that we want to use from COM. Each interface has a Guid Attribute specifying its Interface ID. We use regasm in order to generate the tlb and then use the DLL as COM #import statement in a C project . For some reason, when the tlb is generated, interface inheritance is not applied to the generated IDL. For example, if we have two interfaces: C# Code Clas... |
|
| Remoted .NET object and COM Interop : QueryInterface needed? (6 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Hi, We are using .NET MarshalByRef remoted object that we use in a COM Interop scenario. When we try to access a member of the remoted object from COM returned by a remoting method call, we get the following error: VSNET Debugger runtime error "Run Time check failure #0 : The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with on... |
|
| Attaching to existing processes (2 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| My VB6 app was an ActiveX EXE application, so clients could attach to a single instance of it easily using CreateObject. With my app ported to VB.Net I would like to expose one class which is the external control interface. If I create a new app that references the main app DLL, I can create an instance of this class but its obviously creating a new instance and not attaching to the currently runn... |
|
| Delegate Problem. (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Dear all, I am using a Delegate to callback from a C dll which takes in input a function pointer. The Delegate is called back and the struct is filled properly, but just after the delegate function finishes, the application crashes. "Memory cannot be written" The application referenced memory at "fff000" ... The Post routine (delegate) takes in an argument x25doneinfo which belongs to the unmanage... |
|
| OWCMDX: No such interface supported (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I am trying to use the OWCMDX.dll (an unsupported DLL that ships with SQL Server 2000) in order to assign MDX queries directly to PivotTables (Microsoft XP Office Web Components). I imported the dll into a .NET Windows Forms application using Visual Studio's Interop support. When I attempt to execute the following code: ApplyMDX amQuery new ApplyMDX(); string mdxQuery " valid MDX query "; amQuery.... |
|
| Problem with Strong names for referenced assemblies (2 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| I have two projects in my solution, both of them are strong named or in other words they are signed. In project1 & project2 , I'm referencing to the "Microsfot Internet Controls" assembly Interop.SHDocVw.dll which doesn't have a strong name. Project1 compiles successfully without giving any errors, but project2 gives the following compiler error : Assembly generation failed Referenced assembly 'In... |
|