How to get dialog box from another DLL file in MFC application

Somesh 1 Reputation point
2022-01-21T10:03:24.493+00:00

I have created dynamically linked shared DLL file in VS 2017 ,it has a dialog box in it. i want to use this DLL (with dialog box) in my other Application in VS 2010 ,i tried copying both .dll &.lib file in config folder but the VS crashed . can some one explain how do i use the dialog box in DLL file in my application

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,544 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RLWA32 40,771 Reputation points
    2022-01-21T10:38:39.53+00:00

    I suggest you look into using an MFC Extension DLL to export your dialog classes so that they can be shared by MFC applications. You may also find the discussion at which-is-the-best-way-to-use-an-mfc-application-as.html to be informative and it also contains a link to an MFC Extension DLL sample that I provided for that questioner.

    1 person found this answer helpful.