Click here to Skip to main content
13,145,068 members (64,680 online)

C / C++ / MFC

 
GeneralRe: CoCreateInstance fail for 64 bit Pin
john563221-Feb-13 0:45
memberjohn563221-Feb-13 0:45 
GeneralRe: CoCreateInstance fail for 64 bit Pin
Richard MacCutchan21-Feb-13 1:19
mvpRichard MacCutchan21-Feb-13 1:19 
GeneralRe: CoCreateInstance fail for 64 bit Pin
Jochen Arndt21-Feb-13 0:53
memberJochen Arndt21-Feb-13 0:53 
GeneralRe: CoCreateInstance fail for 64 bit Pin
Chris Losinger22-Feb-13 4:14
memberChris Losinger22-Feb-13 4:14 
QuestionCursor from Bitmap Conundrum Pin
Ben Aldhouse20-Feb-13 21:36
memberBen Aldhouse20-Feb-13 21:36 
QuestionCFileDialog in Dll Project Pin
LeeUnSong20-Feb-13 14:38
memberLeeUnSong20-Feb-13 14:38 
AnswerRe: CFileDialog in Dll Project Pin
Richard MacCutchan20-Feb-13 21:10
mvpRichard MacCutchan20-Feb-13 21:10 
GeneralRe: CFileDialog in Dll Project Pin
LeeUnSong21-Feb-13 0:31
memberLeeUnSong21-Feb-13 0:31 
Thank you for your kindness. sorry for my poor english.

I created project with "Regular Dll with MFC statically linked".
Then I added new class "CMainDlg" to project. Of course, this class has resource "IDD_MAINDLG".

I put button control on my dialog and made event function "CMainDlg::OnBnClickedOpenfile".
After that, I added code as follow.

void CMainDlg::OnBnClickedOpenfile()
{
  AFX_MANAGE_STATE(AfxGetStaticModuleState());
 
  CFileDialog OpenDlg(TRUE);
 
  if (OpenDlg.DoModal() != IDOK)
  {
    AfxMessageBox("Clicked Cancel");
    return;
  }
 
  AfxMessageBox("Clicked OK");
}



Build my project and loaded my dll file from other project.

Then MainDlg appeared.
But after clicking "OpenFile" button, no messagebox appeared.

What is wrong in my code???
GeneralRe: CFileDialog in Dll Project Pin
Richard MacCutchan21-Feb-13 1:16
mvpRichard MacCutchan21-Feb-13 1:16 
QuestionBOM Code Pin
Michael Haephrati מיכאל האפרתי20-Feb-13 10:41
mvpMichael Haephrati מיכאל האפרתי20-Feb-13 10:41 
SuggestionRe: BOM Code Pin
DavidCrow20-Feb-13 10:47
memberDavidCrow20-Feb-13 10:47 
GeneralRe: BOM Code Pin
Michael Haephrati מיכאל האפרתי20-Feb-13 10:49
mvpMichael Haephrati מיכאל האפרתי20-Feb-13 10:49 
QuestionCreate a program to encrypt and decrypt binary files using S-DES (Simplified DES) in the Cipher Block Chaining mode. Pin
ymadhu336618-Feb-13 7:16
memberymadhu336618-Feb-13 7:16 
AnswerRe: Create a program to encrypt and decrypt binary files using S-DES (Simplified DES) in the Cipher Block Chaining mode. Pin
Richard MacCutchan18-Feb-13 7:56
mvpRichard MacCutchan18-Feb-13 7:56 
QuestionWinHelp not working properly in MFC Pin
vermaashish_mca18-Feb-13 3:01
membervermaashish_mca18-Feb-13 3:01 
QuestionHow to execute java exe in VC++ 2010 ? Pin
IICTECH17-Feb-13 22:41
memberIICTECH17-Feb-13 22:41 
AnswerRe: How to execute java exe in VC++ 2010 ? Pin
Richard MacCutchan17-Feb-13 22:42
mvpRichard MacCutchan17-Feb-13 22:42 
GeneralRe: How to execute java exe in VC++ 2010 ? Pin
IICTECH18-Feb-13 0:26
memberIICTECH18-Feb-13 0:26 
GeneralRe: How to execute java exe in VC++ 2010 ? Pin
Richard MacCutchan18-Feb-13 6:17
mvpRichard MacCutchan18-Feb-13 6:17 
GeneralRe: How to execute java exe in VC++ 2010 ? Pin
_AnsHUMAN_ 19-Feb-13 3:01
group_AnsHUMAN_ 19-Feb-13 3:01 
QuestionRe: How to execute java exe in VC++ 2010 ? Pin
DavidCrow19-Feb-13 4:32
memberDavidCrow19-Feb-13 4:32 
Generalconvert the code VB6 to VC++ 6. Pin
ASEM.NET17-Feb-13 7:38
memberASEM.NET17-Feb-13 7:38 
GeneralRe: convert the code VB6 to VC++ 6. Pin
DavidCrow17-Feb-13 12:17
memberDavidCrow17-Feb-13 12:17 
QuestionWinHttpClient code Pin
el_tel17-Feb-13 1:21
memberel_tel17-Feb-13 1:21 
AnswerRe: WinHttpClient code Pin
Richard MacCutchan17-Feb-13 2:41
mvpRichard MacCutchan17-Feb-13 2:41 

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.


Advertise | Privacy |
Web03 | 2.8.170915.1 | Last Updated 22 Sep 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid