• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 189
  • Last Modified:

How to call a DialogBox from a BC compiled DLL

I would like to include the resource file (*.rc) node containing a dialogbox, as well as the code/function that calls the dialog resource in a dll-target project. How do I call this dialogbox from an exe file (with a winmain) function without having to put the dialog resource in the exe project's resource and use the dialog resource from the dll itself?
0
borgz
Asked:
borgz
  • 2
1 Solution
 
alexoCommented:
You can use the LoadLibrary() function to get a handle to the DLL's instance and pass it to the DialogBox() function.
0
 
alexoCommented:
And the autograder hits again!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now