Re: Passing Window Handle from Com to VB.NET

From: Fabian Schmied (REMOVETHISfabianDOTschmied_at_fhs-hagenbergDOTacDOTat)
Date: 05/26/04


Date: Wed, 26 May 2004 09:52:37 +0200

Ron Green schrieb:

> I have a COM DLL that exposes an Interface which takes
> the window handle of a VB.NET picturebox.
>
>
> In COM DLL (Inprocess server)
>
> STDMETHOD(InitializeVideo)( HWND parentWindow );
>
>
> In VB.NET Application:
> Grabber.InitializeVideo(Me.cPictureBoxLiveVideo.Handle())
>
> VB complains: "Value of type 'System.IntPtr cannot be converted to
> remotable handle"
>
>
>
> What is the proper way to pass a Window handle from a COM DLL to a VB.NET
> App?

This isn't related to DirectX. You might get more answers on a .NET
newsgroup. Most appropriate seems microsoft.public.dotnet.framework.interop.

Fabian



Relevant Pages

  • Re: Threading problem with Garbage Collector
    ... It itself controls calls to a DLL ... "A"), it loads the DLL, which in turn then creates a window (it needs to, ... Disposemethod it uses the label window to synchronize the FreeLibrary ... delegate void DelegateKillDLL(); ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Simulating Control-Alt-Delete?
    ... Winlogon.exe window or not. ... all desktops and all top level windows. ... the WinLogon window didn't show. ... > Write this part of your test suite as a DLL, ...
    (microsoft.public.win32.programmer.kernel)
  • Re: VB6 runtime is supported on Windows 7
    ... The settings window was fairly extensive ... DLL and the settings are organized into a UDT rather ...
    (microsoft.public.vb.general.discussion)
  • Re: window from win32 dll
    ... handle of the DLL, according to the documentation. ... instance of the window to share the one-and-only DC that is a class DC? ... For example, you are presuming RegisterClassEx ... .HINSTANCE storing in dllmain HMODULE ...
    (microsoft.public.vc.mfc)
  • Re: Difference between WM_APP and WM_USER
    ... broadcasting or even 'broadcasting' such a message is outrageously ... DLL that uses WM_APP+7 as a message to a designated window. ... dll to use this message range. ...
    (microsoft.public.vc.mfc)