Thread: Can a DLL create a window?

  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,793
    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, 07: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, 03:07 PM
  4. My Window Class
    By Epo in forum Game Programming
    Replies: 2
    Last Post: 07-10-2005, 02:33 PM
  5. How to change window style at runtime?
    By Mr. Bitmap in forum Windows Programming
    Replies: 5
    Last Post: 06-09-2002, 04:49 PM