Using an applications window handle in a DLL?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Using an applications window handle in a DLL?

  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
    ovidiucucu's Avatar
    ovidiucucu is offline Moderator/Reviewer Power Poster
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,021

    Re: Using an applications window handle in a DLL?

    There is no restriction on using window handles across module boundaries.
    Ovidiu Cucu
    "When in Rome, do as Romans do."
    Visit: Microsoft Virtual Academy
    Follow: https://twitter.com/#!/ovidiucucu
    My blog: http://codexpert.ro/blog/author/ovidiu-cucu/

  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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center