Click here to Skip to main content
15,924,039 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ReadFile(), what is wrong?!! Pin
Blake Miller3-Dec-04 4:04
Blake Miller3-Dec-04 4:04 
GeneralRe: ReadFile(), what is wrong?!! Pin
tswan5-Dec-04 2:48
tswan5-Dec-04 2:48 
GeneralOn-Screen Keyboard Pin
Tripura.K3-Dec-04 2:36
Tripura.K3-Dec-04 2:36 
GeneraldwLastChange - Connection Time Pin
adriano_alvarez3-Dec-04 2:34
adriano_alvarez3-Dec-04 2:34 
GeneralRe: dwLastChange - Connection Time Pin
David Crow3-Dec-04 5:40
David Crow3-Dec-04 5:40 
GeneralCFileDialog crashes in Platform SDK Pin
Marius Bancila3-Dec-04 1:59
professionalMarius Bancila3-Dec-04 1:59 
GeneralRe: CFileDialog crashes in Platform SDK Pin
David Crow3-Dec-04 2:16
David Crow3-Dec-04 2:16 
GeneralRe: CFileDialog crashes in Platform SDK Pin
Blake Miller3-Dec-04 4:11
Blake Miller3-Dec-04 4:11 
Here's an idea...

Look at the beginning of the class definition for CFileDialog...

class CFileDialog : public CCommonDialog
{
DECLARE_DYNAMIC(CFileDialog)

public:
// Attributes
OPENFILENAME m_ofn; // open file parameter block


Whoa! There's an OPENFILENAME m_ofn member variable, and YOU DO NOT CONTROL IT'S SIZE!
You would have to rebuild your MFC DLL or rebuild the static MFC library to which you are linking, using the NEW size. Anyway, that is why you get the crash - you write to data that overwrites something else!

If you really need these new fields, you are going to have to 'swipe' the CFileDialog source code and make your own using the new data structure. Otherwise, just use OpenFileName as David Crow suggests.


GeneralRe: CFileDialog crashes in Platform SDK Pin
Marius Bancila3-Dec-04 4:29
professionalMarius Bancila3-Dec-04 4:29 
Generalhelp..... Pin
namaskaaram3-Dec-04 1:35
namaskaaram3-Dec-04 1:35 
Generaldll export problem Pin
Orkun GEDiK3-Dec-04 0:55
Orkun GEDiK3-Dec-04 0:55 
Generalvtable layout in vc++ for derived classes Pin
Member 13822803-Dec-04 0:43
Member 13822803-Dec-04 0:43 
GeneralConverting VARIANT data type Pin
Sahir Shah2-Dec-04 23:39
Sahir Shah2-Dec-04 23:39 
GeneralGetDisplayNameOf problems with Folder settings Pin
Digvijay Chauhan2-Dec-04 23:34
Digvijay Chauhan2-Dec-04 23:34 
GeneralRe: GetDisplayNameOf problems with Folder settings Pin
David Crow3-Dec-04 6:20
David Crow3-Dec-04 6:20 
GeneralMake each cell in a CListCtrl a little bigger Pin
anderslundsgard2-Dec-04 23:32
anderslundsgard2-Dec-04 23:32 
GeneralRe: Make each cell in a CListCtrl a little bigger Pin
Antony M Kancidrowski3-Dec-04 5:30
Antony M Kancidrowski3-Dec-04 5:30 
GeneralRe: Make each cell in a CListCtrl a little bigger Pin
anderslundsgard5-Dec-04 5:50
anderslundsgard5-Dec-04 5:50 
GeneralRe: Make each cell in a CListCtrl a little bigger Pin
Antony M Kancidrowski5-Dec-04 11:34
Antony M Kancidrowski5-Dec-04 11:34 
GeneralRe: Make each cell in a CListCtrl a little bigger Pin
anderslundsgard5-Dec-04 22:21
anderslundsgard5-Dec-04 22:21 
GeneralRe: Make each cell in a CListCtrl a little bigger Pin
Antony M Kancidrowski5-Dec-04 22:32
Antony M Kancidrowski5-Dec-04 22:32 
GeneralRe: Make each cell in a CListCtrl a little bigger Pin
anderslundsgard5-Dec-04 23:41
anderslundsgard5-Dec-04 23:41 
QuestionHow I can stop an USB-drive from my application? Pin
Rolf Faßler2-Dec-04 23:20
Rolf Faßler2-Dec-04 23:20 
QuestionHow to put tables into RichEdit Pin
Lee Seung Ic2-Dec-04 21:43
Lee Seung Ic2-Dec-04 21:43 
Questionhow to change Pin
vc-programmer-2-Dec-04 20:51
vc-programmer-2-Dec-04 20:51 

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.