• C

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?
borgzAsked:
Who is Participating?
 
alexoConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.