| Calling remote DCOM server (Unmanaged Classic COM Component) from .NET client (7 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi, I am developing a .NET client application that calls a classic COM server located on a remote computer. When I configure the location with the DCOMCNFG tool by checking the "Run application on the following computer" check box and giving the IP address, it works fine. The new operator creates the remote object. But I would like to do it programmatically within the .NET client application. How ... |
|
| aggregated .NET instance? (4 replies) |
| microsoft.public.dotnet.framework.interop |
| The context: TAPI 3 (Telephony API) ITMSPAddress.CreateMSPCall is expected to create an instance of a COM object (MSPCall) which is to be aggregated in a TAPI provided COM object, the address of which is passed to CreateMSPCall In pure COM, you would call CoCreateInstance with the MSPCall CLSID and pass it the pointer to the aggregator object. My strategy: I have implemented the MSPCall and the MS... |
|
| Calling LogonUser() and CreateProcessAsUser() from a service (7 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| I am writing a Service (in C#) that can lanuch processes in the interactive desktop of the currently logged on user. I almost have it working, but even after reading all the results of a gazillion google searches I'm still stumped. Hopefully someone can point out what I'm doing wrong. If the process to be launched is "c:\windows\system32\notepad.exe" I see the outline of Notepad appear and my serv... |
|
| 'Debug.WriteLine' causes 'NullReferenceException' (6 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| I implemented an old fashioned way of registering a window using 'RegisterClass' and 'CreateWindow' APIs. 'WindowProc' looks like this รข protected virtual IntPtr InternalWindowProc( IntPtr hWnd, uint uintMsg, UIntPtr wParam, IntPtr lParam ) { IntPtr iptrReturn IntPtr.Zero; switch( uintParam ) { case WM LBUTTONUP: this.OnMouseButtonUp( ); break; //Other cases ... default: //Debug.WriteLine( "Callin... |
|
| Using a callback interface between managed/unmanaged code (5 replies) |
| microsoft.public.dotnet.framework.interop |
| I have an application that is split into two parts the user interface portion, written in C#, and a C DLL that contains both managed and unmanaged code, where the unmanaged code is core processing that needs to be as fast as possible. Now, during the course of one of these long unmanaged operations, I'd like to be able to periodically call back to the managed UI in order to show some kind of progr... |
|
| PROPVARIANT definition (5 replies) |
| microsoft.public.dotnet.framework.interop |
| Is there someone that know how to define the PROPVARIANT structure in .NET? Thx in advance, Marco |
|
| crash in mscorwks on 'simple' call, should be IUnknown but looks like it is trying IDispatch (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Hello, I have a COM interface that looks like the one below (this is a simplied version). IFolder.GetNextItem always returns a subclass of IMyItem. The implemented classes for this typelib are in C# (SDK 1.1), the caller is a Win32 app. When my Win32 class gets a subclass of IMyItem and calls GetPropSz, it crashes with the callstack below in mscorwks.dll. The thing i can't understand is why mscorw... |
|
| How to copy an MS Excel graphic from the system clipboard to an image control and obtain its source reference in .Net with either VB.Net or C# (2 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Hello, Here is what I'm trying to do: Make sure both MS Excel and MS Word are running Create an Excel chart Save the Excel file Copy the Excel chart onto the clipboard using Ctrl C Go to Word and look under Edit Paste Special Note there is a source reference and an option to paste the chart as a metafile, etc. I would like to take this same information and make it available in a C# or VB.Net app F... |
|
| COMInterop C# to C++ passing an Object defined within C++ DLL (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I have the following method within a COMInterop assembly (generated from a COM DLL) public virtual new System.IntPtr GetApiObject ( System.String param , System.Guid clsidIn , System.Guid iidIn , System.IntPtr pIn , System.Guid clsidOut , System.Guid iidOut ) This method allows us to call into an API and obtain an internal object. ( Return to me the object identified by ClassID clsidOut and Interf... |
|
| What are the problems when using CoRegisterClassObject/RegisterTypeForComClients in .NET? (3 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Hi, Are there any problems with using CoRegisterClassObject/ROT in .NET/CLR to expose an object as IDispatch for communication from/to unmanaged world? It is registered from MTAThread. The DllImport is as follows: [DllImport ("ole32.dll")] static extern uint CoRegisterClassObject (ref Guid rclsid, [MarshalAs (UnmanagedType.IDispatch)]object pUnkn, ...); I'm asking because .NET provides RegisterTyp... |
|
| Calling web services from a .NET AIC (2 replies) |
| microsoft.public.dotnet.framework.interop |
| We're in the process of trying to migrate our VB6/COM AICs to being .NET AICs, using the example that came with the "BizTalk Server 2002 Toolkit for Microsoft NET" (http://www.microsoft.com/downloads/details.aspx?FamilyID 48a26aa2 9771 40a1 9fba a2afbb7ca109&DisplayLang en), specifically, the example located in "C:\Program Files\Microsoft BizTalk Server\NET Toolkit\AppInt\VB". We've worked through... |
|
| How to Get .Net dll's ClassId on VC++6 before CoCreateInstance ? (4 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| In VC , I have to hardcoded the .net dll's ClassId if i want to create the com instance. How can i get the .net COM's classID without having to create the instance first ? #import "Sample.tlb" using namespace Sample; //******NOTE****** const IID CLSID SampleObj {0x5B85B3EB,0x899B,0x440f, {0xBF,0x0A,0x67,0x43,0x0B,0x7A,0x17,0x1F}}; int main(int argc, char* argv[]) { HRESULT hr; CoInitialize(NULL); ... |
|
| .NET + ActiveX control firing many events = continuous memory leak (8 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi, First my conclusion (I hope someone can tell me I'm wrong) followed by a problem description. CONCLUSION: When an activex control is used in any .NET application and the control uses events to continuously pass data to the .NET application the result is that memory is allocated by the CLR but never deallocated. I believe this behaviour should be evident in any activex control that uses events ... |
|
| Web Browser control: navNoHistory flag doesn't work (2 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| I've created a project with a web browser control according to KB article 325079 (C#). The BeforeNavigate2 event fires correctly, but I'm not able to prevent the URL's from going into the browser history. I've tried to modify the Flags parameter in BeforeNavigate2 event but that had no effect and I tried passing the flag as part of the Navigate2 method. No luck. Has anyone had success with this? R... |
|
| Funcionality of ActiveX EXE (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Hello I've looked for the answer to this question everywhere I can think of with no success, and I feel like I'm probably missing something very simple. I'm in the early stages of migrating quite a bit of code from VB6 to VB.NET. In VB6, I was able to create an ActiveX EXE server that would allow me to maintain persistent object data, even during periods when no clients were connected, using globa... |
|
| Using COM in dynamically loaded assembly (7 replies) |
| microsoft.public.dotnet.framework.interop |
| Is it possible to use a COM object in a dynamically loaded assembly using C# and version 1.1 of the framework. I can only seem to get this to work if I use the dispatch interface. I can create the COM object ok using early binding, but when I call a method I gat an invalid cast error stating that QueryInterface failed. The same code works in a standard windows application. The interop assembly is ... |
|
| COM interop, pathing from .NET (4 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| I am having a problem which does not occur on all machines. I have a C# DLL that is being accessed by a VB6 app. After specifying COM interop on the C# project, and also using regasm /tlb on the deployed machine, the VB6 app will only 'find' the C# DLL if it located in the same directory. The C# DLL has been registered and resides in the winnt\system32 directory, which is in the path. Apologies if... |
|
| COM interoperability - using dotnet dll in VB6 App (2 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| I am trying to use a dotnet (C#) based dll in a VB6 app through com interoperabilty. I have built the C# binary and VB6 exe on windows 2000 and trying to run it on windows 2003. It does not work as it is, I get an error "Runtime error 429 ActiveX component can't create object". I have registered the dotnet based library using regasm on win 2k3. The same set of binaries works fine on windows 2k. Ca... |
|
| how to Open an Office Document (4 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Can anyone tell me how to Open an Office Document in Visual Basic .NET Thanks in advance... Yours, Hazira B |
|
| .NET Client calling Java webservices. Slow Performance (5 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Hi All, I am having performance issues with the .NET client calling the Java Webservice running on axis. Have detailed the problem below. Please help. I wrote a webservice in Java. Lets name this WebService1. (using Apache Axis 1.1) Scenario 1: I have a VB.NET code exposed as COM. Lets call it VBNETCOM. I added a webreference to my Webservice1 from VBNETCOM (using Visual Studio.NET 2003). So in my... |
|
| C# Browser with HTA permissions ~ JOB request ~ Earn praise & cash. (5 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Attention all coders, I have posted a job on rentacoder. It is on topic for this newsgroup. If any of you are able to do it, you might as well log on and get paid. Thanks for considering this work request, I am willing to pay for work done and would like to hear from people who can do it. rocksolidrobot@yahoo.com Joshua Donnelly Brisbane Australia Here is the link: http://www.rentacoder.com/RentAC... |
|
| .NET and COM Interop (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I have written a class library in c# and want to use it in VB6. Everything works fine so far but when I try to assign a value (an array of type defined in c#) to a property definded on the c# side the vb compiler does not want to compile. Reading access to the property is working. I added a function that sets the array and it worked, so what is going wrong in the property call? I extracted the IDL... |
|
| VB6 empty string -> to a .net - how to (3 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| How does one send an empty string from vb6 when calling a vb.net function through interop ? |
|
| Discovering COM object information at runtime from ProgID? (2 replies, VIP) |
| microsoft.public.dotnet.framework.interop |
| Given the ProgID of a COM object, can I load it at runtime and discover information about the object? Without a COM object reference in the Visual Studio project. Basically, I need to be able to assemble bassically the same information Visual Studio does when you add a COM reference, but I need to do it at runtime with no prior references. I looked over the System.Runtime.InteropServices namespace... |
|
| Delegate Callback with parameter (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi, We try callback C# method from C DLL using delegate, using delegate without argument works fine for me however the CallBackFunctionWithParameter which call delegate with parameter crash the application after being called . Any suggestion will help and really appreaciated Thanks Budi Here is the code : In C# using System; using System.Drawing; using System.Collections; using System.ComponentMod... |
|