Click here to Skip to main content
15,891,657 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem showing MFC dialog from extern DLL Pin
StjepanVukadin7-Sep-06 3:47
StjepanVukadin7-Sep-06 3:47 
QuestionRe: Problem showing MFC dialog from extern DLL Pin
David Crow7-Sep-06 3:05
David Crow7-Sep-06 3:05 
AnswerRe: Problem showing MFC dialog from extern DLL Pin
StjepanVukadin7-Sep-06 3:45
StjepanVukadin7-Sep-06 3:45 
GeneralRe: Problem showing MFC dialog from extern DLL Pin
David Crow7-Sep-06 5:32
David Crow7-Sep-06 5:32 
AnswerRe: Problem showing MFC dialog from extern DLL Pin
Renjith Ramachandran7-Sep-06 3:51
Renjith Ramachandran7-Sep-06 3:51 
AnswerRe: Problem showing MFC dialog from extern DLL Pin
StjepanVukadin7-Sep-06 3:55
StjepanVukadin7-Sep-06 3:55 
QuestionRe: Problem showing MFC dialog from extern DLL Pin
prasad_som7-Sep-06 19:16
prasad_som7-Sep-06 19:16 
AnswerRe: Problem showing MFC dialog from extern DLL Pin
StjepanVukadin7-Sep-06 21:21
StjepanVukadin7-Sep-06 21:21 
First i am using function PlugInProc for exporting PlugIn class. In that class i have a function called ImportFile:

BOOL CPlugIn::ImportFile(CString sFile)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());

CImpOpts dlg;
dlg.DoModal();

return TRUE;
}

And when i call this class function from my main application it crashes. And i know why but i don't know how to fix it. Windows figures that CImpOpts is a part of my main application and tries to load dialog resource (IDD_IMPOPTS) from my main app, but resource is found in my dll.

Once again, i am exporting whole class from my dll using this function:

CMy3dsImpApp theApp;
CPlugIn plg; // CPlugIn is of type MPlugIn

extern "C" MPlugIn* PASCAL EXPORT PlugInProc()
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());

return &plg;
}

I can show modeles dialogs, but i need modal dialog (because i need to stop execution of main application code 'till i do specific code in my plugin).
GeneralRe: Problem showing MFC dialog from extern DLL Pin
prasad_som7-Sep-06 22:44
prasad_som7-Sep-06 22:44 
GeneralRe: Problem showing MFC dialog from extern DLL Pin
StjepanVukadin8-Sep-06 23:25
StjepanVukadin8-Sep-06 23:25 
QuestionProblem with MemDC on W2K Pin
AnTri7-Sep-06 1:55
AnTri7-Sep-06 1:55 
AnswerRe: Problem with MemDC on W2K Pin
JWood7-Sep-06 3:50
JWood7-Sep-06 3:50 
Questionhow to add networking? Pin
Noor Akhter7-Sep-06 1:54
Noor Akhter7-Sep-06 1:54 
AnswerRe: how to add networking? Pin
Programm3r7-Sep-06 1:57
Programm3r7-Sep-06 1:57 
QuestionHow can v increase the speed of game having textures? Pin
Noor Akhter7-Sep-06 1:50
Noor Akhter7-Sep-06 1:50 
AnswerRe: How can v increase the speed of game having textures? Pin
toxcct7-Sep-06 2:20
toxcct7-Sep-06 2:20 
QuestionGrab sound/audio Pin
torbjornweiland7-Sep-06 1:44
torbjornweiland7-Sep-06 1:44 
Questionwriting data to a file on the FTP server. Pin
vijay_aroli7-Sep-06 1:41
vijay_aroli7-Sep-06 1:41 
AnswerRe: writing data to a file on the FTP server. Pin
Programm3r7-Sep-06 1:55
Programm3r7-Sep-06 1:55 
QuestionRe: writing data to a file on the FTP server. Pin
David Crow7-Sep-06 3:11
David Crow7-Sep-06 3:11 
Questionstrtok() argument Pin
Max++7-Sep-06 1:29
Max++7-Sep-06 1:29 
AnswerRe: strtok() argument Pin
Rinu_Raj7-Sep-06 1:32
Rinu_Raj7-Sep-06 1:32 
AnswerRe: strtok() argument Pin
Programm3r7-Sep-06 1:35
Programm3r7-Sep-06 1:35 
AnswerRe: strtok() argument Pin
toxcct7-Sep-06 2:19
toxcct7-Sep-06 2:19 
GeneralRe: strtok() argument Pin
Max++7-Sep-06 2:25
Max++7-Sep-06 2:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.