DLL Tutorial : Export a dialog from an Extension DLL
This tutorial describes how to export a dialog from an extension dll.This article also explains about how to Export a dialog from a regular DLL and exporting a dialog or a Property Page from an ActiveX.
The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: DLL Tutorial : Export a dialog from an Extension DLL
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

luchenPosted Oct 14, 2011, 11:02 AM
It failed after using Microsoft Visual Studio 8.0. It can't link ExportData member functions. 1>Linking... 1>MainFrm.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall ExportData::~ExportData(void)" (__imp_??1ExportData@@UAE@XZ) referenced in function "protected: void __thiscall CMainFrame::OnTest(void)" (?OnTest@CMainFrame@@IAEXXZ) 1>MainFrm.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall ExportData::CallDlg(void)" (__imp_?CallDlg@ExportData@@QAEXXZ) referenced in function "protected: void __thiscall CMainFrame::OnTest(void)" (?OnTest@CMainFrame@@IAEXXZ) 1>MainFrm.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall ExportData::ExportData(void)" (__imp_??0ExportData@@QAE@XZ) referenced in function "protected: void __thiscall CMainFrame::OnTest(void)" (?OnTest@CMainFrame@@IAEXXZ) 1>.\Debug/ExtnDllTest.exe : fatal error LNK1120: 3 unresolved externals Need help here! Thanks
Roushan SingheditedPosted Jul 16, 2010, 9:23 AMEdited Jul 16, 2010, 9:31 AM
I am a novice at this topic and need to create something similar to this for some application which will lead to a popup window or dialog where user can edit the various settings. I tried to build your code. But, when running the executable file, as soon as test button is pressed, the dialog pops up and MFC application stops responding. When i tried to debug this (I am a novice at that too) Visual Studio showed the following error: Unhandled exception at 0x6f61f7ba (mfc42.dll) in ExtnDllTest.exe: 0xC0000005: Access violation reading location 0x00000000. at MainFrm.cpp -->> void CMainFrame::OnTest() -->> dll.CallDlg(); in the mcExtnDlg project. Please suggest me something which helps me overcome this problem. Thanks in advance. Roushan