Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

VC++ dll input dialog box

  • 18-02-2006 10:04PM
    #1
    Registered Users, Registered Users 2 Posts: 250 ✭✭


    Is it possible to write a Win32 DLL in VC++ (not using MFC) that can have a pop-up box to allow a user to input some values? (So I need a text field that accepts a value)

    Can anyone point me to examples/tutorials to do this?

    TIA


Comments

  • Registered Users, Registered Users 2 Posts: 6,681 ✭✭✭daymobrew


    Yes it can. Write a DLL with an exported function that creates a dialog (you'll need another function to process dialog messages) and then returns the required data to the calling program/process.

    Tell us more about the whole project; how many values? text? numbers?
    What you are trying to achieve in the project? (we may have an alternative implementation idea)?
    What languages and technologies you are trying to use/are you familar with etc. Tell us what bits you already know e.g. can you implement the pop-up box in a Win32 EXE?


  • Registered Users, Registered Users 2 Posts: 1,481 ✭✭✭satchmo


    They're two separate things really, so break it up and learn how to do each individually and then stick them back together. First figure out how to make a dialog box that accepts values and returns them, and then figure out how to write a DLL that exports a function. There are tutorials on each all over the net, you should have no trouble finding them.


  • Registered Users, Registered Users 2 Posts: 250 ✭✭ikoonman


    daymobrew wrote:
    Tell us more about the whole project; how many values? text? numbers

    I have two exe's that need's to share a dll and i wanted to put the authentication dialog box in the dll so it pop's up and asks for a username and password when the function in the dll is called.

    That's pretty much all there is to it


  • Registered Users, Registered Users 2 Posts: 250 ✭✭ikoonman


    satchmo wrote:
    They're two separate things really, so break it up and learn how to do each individually and then stick them back together.

    Great - thanks. I thought this can only be accomplished by using MFC-based applications and not pure Win32 DLL apps written in VC++. I will have a look.


  • Registered Users, Registered Users 2 Posts: 1,481 ✭✭✭satchmo


    The MFC library is purely a wrapper to make the underlying Win32 functionality easier to work, so there's nothing you can do with MFC that you can't do with Win32. Winprog.org has a good beginners Win32 tutorial, it should have everything you need to get going.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 250 ✭✭ikoonman


    Thanks guys. I've successfully managed to implement my solution in the dll.

    "When a man is hungry..........., teach him to fish............."


  • Registered Users, Registered Users 2 Posts: 1,481 ✭✭✭satchmo


    Good stuff. Makes a nice change to the "please finish my homework for me" threads..


Advertisement