| Component Categories (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Hello all, I am implementing a COM interface in a VB.Net code library. All is well with that. Now I need to make the class library a member of a COM component category. Is this possible? I'm pretty sure it is, but I have not found any documentation yet. Thanks in advance, Glenn |
|
| Callback and out params in P/Invoke calls (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I am practicing with P/Invoke calls pathing callback function pointer and pointer to [out] parameter to an unmanaged exported dll. Separatly both type of parameters accepted without problem. But whenever I use them in the same function I always get an exception thrown either callback (System.ExecutionEngineException) or in completion of the exported function call (System.NullReferenceException). T... |
|
| ShDocVw, MSHTML and IDocHostUIHandler interface (4 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi Sirs I'm incorporating the Web Browser control in my App. and I need to Disable the context menu (when you right click in html document). I have read at http://msdn.microsoft.com/workshop/browser/hosting/wbcustomization.asp that you can implement the IDocHostUIHandler interface and hereby control the context menu. But I can't find the fu.... interface. I have stepped through the ShDocVw.dll and... |
|
| Can't launch Excel from ASP.NET in Win200 (Getting close to snapping....) (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I have spent a considerable amount of time on this problem . I am trying to launch Excel 2000 from an ASP.NET page. I had it working under WindowsXP in VS.NET beta2. Then when VS.NET went gold, I had to fish around with the DCOM permissions a little, but eventually got it to work using the new ASPNET account At the same time, I can't get Excel to launch from an ASP.NET web page on Windows2000 (Pro... |
|
| WMI event (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi, I am trying to utilize "WMI event" for application monitoring. I registered a sample event using InstallUtil.exe but when I run the application to publish it or when it uses fire() event, I get an error message saying this assembly is not registered with WMI. I wonder if there is something that I am missing. I was successful to just view values of WMI Instance Class. So, what's different betwe... |
|
| creating an instance (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I have a webservice that uses a C# class library, wich has the following method: I have a winforms app that uses the same class library and does not fail. public void Connect( string clsidOPCserver ) { Disconnect(); Type typeofOPCserver Type.GetTypeFromProgID( clsidOPCserver ); if( typeofOPCserver null ) Marshal.ThrowExceptionForHR( HRESULTS.OPC E NOTFOUND ); OPCserverObj Activator.CreateInstance(... |
|
| Queued Component: Exception from HRESULT: 0x90110603. (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I understand and have successfully set up a .NET queued component and been able to use it successfully from a .NET client application via Marshal.BindToMoniker. Works fine when the only parameter being passed to the queued component method is a string (and I suspect any simple type). However, when I attempt to send a Hashtable object I get the above error (Exception from HRESULT . . .etc) upon att... |
|
| WebBrowser.beforeNavigate2 doesn't fire (9 replies) |
| microsoft.public.dotnet.framework.interop |
| I integrated the WebBrowser ActiveX from the ShDovVw.dll into a windows form. In the InitializeComponent() method I delegate several events. The only one that never fires is the 'BeforeNavigate2' event. private void InitializeComponent() { .... this.browser.BeforeNavigate2 new AxSHDocVw.DWebBrowserEvents2 BeforeNavigate2EventHandler (this.OnBeforeNavigate2); .... } // Handle the BeforeNavigate2 ev... |
|
| How to get Dispatch Id of a COM Method using C# (3 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi, I'm using C# to have access to a COM object. I need to get (at run time) the dispatch id of a method. (named "Clone" for example). and use this dipstach id to excecute the method. Here is the C code: OLECHAR* psz L"Clone"; DISPID dispid; MyCOMPtr GetIDsOfNames(IID NULL, &psz, 1, 0, &dispid); struct ResultOfClone* result; com dispatch method(MyCOMPtr, dispid, DISPATCH METHOD, VT DISPATCH, (void... |
|
| Equivalent for a QueryInterface (4 replies) |
| microsoft.public.dotnet.framework.interop |
| How can port the following code to C# I have a wrapper for an existing Activex object that i want to query for a particular interface and then do some operations. How can I use Marshal.QueryInterface here? Thanks in Advance Thejas ********************* Code that need to be ported m ActiveXObjWrapper new ActiveXObjWrapper(); // get the interface pointer that we've added LPUNKNOWN l pRectangle 0; HR... |
|
| tlbexp(system.xml.dll) = empty ? (4 replies) |
| microsoft.public.dotnet.framework.interop |
| I transformed the .NET assembly "system.xml.dll" into a type library, but the lib is empty. Is this behaviour correct or did I overlook a special paramter to be set ? |
|
| .NET, COM+, Remoting: I'm confused! (7 replies) |
| microsoft.public.dotnet.framework.interop |
| Ok, this is what we're trying to do: Build a serviced component using C# and use it under COM Use that component from a .NET client (also built using C#) running on a different machine. Here's what we did: Built the serviced component, deriving from ServicedComponent etc. Gave the assembly where the component resides a strong name. Registered the component in COM using regsvcs. Registered the comp... |
|
| TO ! (7 replies) |
| microsoft.public.dotnet.framework.interop |
| Hello MS It seems that quite a lot of people are using the Microsoft.mshtml.dll as well as ShDocVw.dll in their apps. We all face the same problems that lots of the event stuff is not working as supposed. So please tell us something is this a bug in the tlbimp.exe is it a bug i CLR or where is the problem and when can we expect it to be fixed. We all rely a great deal on your Internet explorer bro... |
|
| How to create a COM object at runtime ? (5 replies) |
| microsoft.public.dotnet.framework.interop |
| Hello everyone, thanks to what I found in this group, I was able to implement the IDocHostUIHandler interface in C#. What I want to do now, is to answer to the GetExternal method of this interface, with a wrapped .NET object. But I don't want to register my object to COM with regasm, because users of my application may not have enough registry permissions. I've tried the DispatchWrapper class : pu... |
|
| Where is Dispose? (3 replies) |
| microsoft.public.dotnet.framework.interop |
| In RTM when referencing COM stuff, the CCW generated by VS.NET does not include Dispose (I believe it did under Beta2)... So, if we just Nothing the reference to COM object is it like Release? When we set a reference to Nothing the underlying COM object must die... Cheers Daniel |
|
| Help: WMI Class Instance for application mointoring (3 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi. I had a problem with WMI event before installing .Net final release. Now, after I installed .Net final release, I am having a problem with WMI class instance. It's seemed I cannot enumerate the collection of instances, which I was able to do before the final release. By the way, with the new release, WMI event works fine. I wonder if anyone knows or heard about WMI from Microsoft. Is it ready?... |
|
| .Net/Com/Com+ and Strong Names (4 replies) |
| microsoft.public.dotnet.framework.interop |
| I'm writing new .Net services for my Company. All our legacy business logic is built using COM, so I must use this huge amount of existing COM components in my .Net service. Furthermore, I need to use some features from COM . The problem is: when I include a reference to a COM on my .Net service, the IDE (Visual Studio .Net Beta 2) offers himself to create a proxy/wrapper for the COM (great!) and ... |
|
| Problems calling unmanaged Delphi DLL's (3 replies) |
| microsoft.public.dotnet.framework.interop |
| I'm running into some problems calling functions in a DLL created with Delphi. I'm not sure what version of Delphi it was created in, as I do not have access to the source code. Some of the function work fine, but other are create exceptions. All of the functions that use a single argument work fine, and all of the functions that use more than one create the following exception. First chance excep... |
|
| ByValArray.SizeConst at run-time (7 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi, Is there any way to specify the size of an array when passed from managed to unmanaged code at run time?. ByValArray.SizeConst used as an argument attribute filed in function declaration and used for passing arrays of known sizes. Thanks, Alex. |
|
| Dynamic loading (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi, I am trying to link to some Windows API functions that may or may not be available on the client, but having trouble undertsand how to handle this in dotnet. I understand delegates are like methods pointers, but I am wondering how to assign a delegate from an IntPtr or void* returned from GetProcAddress. Could someone please provide me of an example of how to load a dll function dynamically us... |
|
| Interface for asynchronous pluggable protocol (APP) in C#? (2 replies) |
| microsoft.public.dotnet.framework.interop |
| Hi, I want to implement an asynchronous pluggable protocol (APP) in C# but I'm stuck because I'm lacking COM knowledge. I tried to add a reference to UrlMon.Dll but I got an error message saying that it isn't a valid COM component. I couldn't find an UrlMon.Tlb but an UrlMon.Idl. The problem is that I can't run Midl.Exe to create a .Tlb file because Midl.Exe is missing some components, probably be... |
|
| Help with StructLayout(LayoutKind.Union) and StructLayout(LayoutKind.Explicit)? (3 replies) |
| microsoft.public.dotnet.framework.interop |
| What's the story with [StructLayout(LayoutKind.Union)]? I tried to us it and I get a compile error saying that "No overload for method 'StructLayoutAttribute' takes '0' arguments. Also, because I could not use the LayoutKind.Union as shown in the struct tutorial. I tried the LayoutKind.Explicit, but then I get an error at run time that states I could not load type mynamespace.mytype from assembly ... |
|
| Implementing ISIPModuleControl - RTC SIP (2 replies) |
| microsoft.public.dotnet.framework.interop |
| I'm trying to use Real time Communication Server API to implement ISIPModuleControl to write an RTC Extension Module in managed C# as described in http://msdn.microsoft.com/library/default.asp?url /library/en us/wcertc/htm/ cmconusingapis.asp How do I reference the the COMponent? I've tried MIDL on the winsip.idl file to generate a TLB, but no TLB file is generated. What am I doing wrong? Is this ... |
|
| Help!: Data marshalling problem with ActiveX control (18 replies) |
| microsoft.public.dotnet.framework.interop |
| All, I am using a thing party ActiveX control that I do not have the source to. I have let VS.net create a primary interop assembly for the ActiveX control. I am able to use most of the functionality of the control, but am having a problem with a few of the methods. The control provides a GetPicture method that has the following signature: [id(0x0000002e)] void GetPicture(long nBufferSize, VARIANT... |
|
| tlbimp (2 replies) |
| microsoft.public.dotnet.framework.interop |
| the error reads something as follows: cannot import adodb.dll because it already exists and it would be overwritten...therefore tlbimp is halted. |
|