Can a DLL create a window?

This is a discussion on Can a DLL create a window? within the Windows Programming forums, part of the Platform Specific Boards category; Is it possible to create a window in a win32 dll? If so, how can I do it? I have ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    4

    Question Can a DLL create a window?

    Is it possible to create a window in a win32 dll? If so, how can I do it?

    I have a service and another DLL that runs under MTX that need to be able to call a DLL that creates a valid window handle.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Err...I guess so......have you tried it?

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    4
    Yes I've tried...

    I believe the answer is no, since the DLL mus run in the calling process' context which if it is a service, can not create a window.

  4. #4
    Unregistered
    Guest
    I suppose I have seen an example about this situation in borlands ftp. Check it out.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Retrieving Data from DLL
    By JJFMJR in forum C++ Programming
    Replies: 11
    Last Post: 08-18-2008, 08:44 AM
  2. creating a child window
    By rakan in forum Windows Programming
    Replies: 2
    Last Post: 01-23-2007, 03:22 PM
  3. Adding buttons, edit boxes, etc to the window
    By rainmanddw in forum Windows Programming
    Replies: 1
    Last Post: 04-10-2006, 04:07 PM
  4. My Window Class
    By Epo in forum Game Programming
    Replies: 2
    Last Post: 07-10-2005, 03:33 PM
  5. How to change window style at runtime?
    By Mr. Bitmap in forum Windows Programming
    Replies: 5
    Last Post: 06-09-2002, 05:49 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21