Results 1 to 5 of 5

Thread: Creating user interface DLLs

  1. #1

    Thread Starter
    Addicted Member HairyDave's Avatar
    Join Date
    Aug 2002
    Location
    Er...I can't remember.
    Posts
    196

    Creating user interface DLLs

    I don't know if this is possible. I am looking to implement a tool that can be easily integrated into a 'master' tool. However, my tool MUST be user interface driven so that the user can be stepped through the process.

    I was hoping to implement this tool as one (or more) dlls. However, I was not sure whether user interfaces can be displayed through dlls.

    Is it possible? - or perhaps the 'master' tool could provide a dialog box for the dll to handle?

    If you could give me any information about this I would be grateful.

    HD

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    A DLL can contain a {Wnd,Dlg}Proc, and one function called from outside will subsequently call Create{Window,Dialog}

    It works very similarly to normal window creation. You can even have a dialogue resource in your DLL
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Addicted Member HairyDave's Avatar
    Join Date
    Aug 2002
    Location
    Er...I can't remember.
    Posts
    196
    I assume that I can therefore use MFC to create dialog resources that can be displayed? Using the MFC AppWizard (DLL)?

    HD

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Um. You *might* be able to. MFC is a bit of a wildcard if you want to do anything even vaguely different to what MS say you want to make
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    You can write a DLL that uses MFC. But it's not easy and poorly documented.

    Just make sure that you link dynamically to MFC in the exe and every dll that uses MFC, else you have an app that loads the MFC several times...
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

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