CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2002
    Location
    Hamburg / Germany
    Posts
    280

    Question Using an applications window handle in a DLL?

    Heya Folks!
    After quite a while I start to program Windows again and as always I have a strange question. What I want to do:
    I want a DLL to work as a plugin for the main application. I want to pass a handle to the applications main window to the DLL. Then i want the DLL to create sub windows and controls inside the main window.

    Is that possible and is it allowed?. I seem to remember, that there were some restrictions on using handles across module borders.

    Thanks a lot for any help!
    Sonny

  2. #2
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    Re: Using an applications window handle in a DLL?

    There is no restriction on using window handles across module boundaries.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  3. #3
    Join Date
    Aug 2002
    Location
    Hamburg / Germany
    Posts
    280

    Re: Using an applications window handle in a DLL?

    Thank you VERY much!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured