Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIs there any way to determine plunging or removing of a removable storage like flash memories to the system in MFC? Pin
A&Ms18-Nov-09 7:37
A&Ms18-Nov-09 7:37 
AnswerRe: Is there any way to determine plunging or removing of a removable storage like flash memories to the system in MFC? Pin
Luc Pattyn18-Nov-09 7:44
sitebuilderLuc Pattyn18-Nov-09 7:44 
GeneralRe: Is there any way to determine plunging or removing of a removable storage like flash memories to the system in MFC? Pin
A&Ms18-Nov-09 8:05
A&Ms18-Nov-09 8:05 
GeneralRe: Is there any way to determine plunging or removing of a removable storage like flash memories to the system in MFC? Pin
Luc Pattyn18-Nov-09 8:19
sitebuilderLuc Pattyn18-Nov-09 8:19 
QuestionRe: Is there any way to determine plunging or removing of a removable storage like flash memories to the system in MFC? Pin
David Crow18-Nov-09 7:53
David Crow18-Nov-09 7:53 
AnswerRe: Is there any way to determine plunging or removing of a removable storage like flash memories to the system in MFC? [modified] Pin
A&Ms18-Nov-09 8:07
A&Ms18-Nov-09 8:07 
GeneralRe: Is there any way to determine plunging or removing of a removable storage like flash memories to the system in MFC? Pin
«_Superman_»18-Nov-09 8:09
professional«_Superman_»18-Nov-09 8:09 
QuestionRe: DDE in MFC Pin
mla15418-Nov-09 5:51
mla15418-Nov-09 5:51 
Hello all,
I am using Visual Studio 2008, and I created a new MDI application.  In the setup of the application, I chose a file extension to use.  In InitInstance of the class derived from CWinApp, I added this code as the first line of the function:
AfxMessageBox("InitInstance");

Also, in the class derived from CWinApp, I added as the first line of the function OnDDECommand:
AfxMessageBox("OnDDECommand");

When I run this program from the IDE, everything appears to be fine.  However, when I run this from Windows explorer and double-click on the appropriate file (a file with the extension my program uses), I see the message:  "Windows cannot find 'E:\Mikea Documents\mdi41.mdi4'.  Make sure you typed the name correctly, and then try again.  To search for a file, click the Start button, and then click Search."  I also saw the InitInstance message as was expected, but I didn't see any GUI, nor did I see any OnDDECommand message.  The application remains open.  Now, if I double-click on the file again, I see the OnDDECommand message and the GUI, but I didn't see the InitInstance message.  The application now closes.

I have looked at different places on the internet to try to figure out why this is happening, but I haven't gotten anywhere.  Does anyone have any ideas?

Regards,
Mike

AnswerRe: DDE in MFC Pin
22491718-Nov-09 14:02
22491718-Nov-09 14:02 
QuestionRe: DDE in MFC Pin
mla15419-Nov-09 11:01
mla15419-Nov-09 11:01 
AnswerRe: DDE in MFC Pin
22491719-Nov-09 14:16
22491719-Nov-09 14:16 
QuestionCFile::Read for readonly files Pin
Rakesh518-Nov-09 3:54
Rakesh518-Nov-09 3:54 
QuestionRe: CFile::Read for readonly files Pin
David Crow18-Nov-09 3:55
David Crow18-Nov-09 3:55 
AnswerRe: CFile::Read for readonly files Pin
Rajesh R Subramanian18-Nov-09 4:00
professionalRajesh R Subramanian18-Nov-09 4:00 
AnswerRe: CFile::Read for readonly files Pin
krmed18-Nov-09 5:34
krmed18-Nov-09 5:34 
QuestionDebug assertion failed caused by the "GetSafeHmenu()" [modified] Pin
transoft18-Nov-09 2:54
transoft18-Nov-09 2:54 
AnswerRe: Debug assertion failed caused by the "GetSafeHmenu()" Pin
CPallini18-Nov-09 3:14
mveCPallini18-Nov-09 3:14 
GeneralRe: Debug assertion failed caused by the "GetSafeHmenu()" Pin
transoft18-Nov-09 3:47
transoft18-Nov-09 3:47 
GeneralRe: Debug assertion failed caused by the "GetSafeHmenu()" Pin
Nemanja Trifunovic18-Nov-09 5:32
Nemanja Trifunovic18-Nov-09 5:32 
GeneralRe: Debug assertion failed caused by the "GetSafeHmenu()" Pin
CPallini18-Nov-09 5:45
mveCPallini18-Nov-09 5:45 
GeneralRe: Debug assertion failed caused by the "GetSafeHmenu()" Pin
Rajesh R Subramanian19-Nov-09 4:45
professionalRajesh R Subramanian19-Nov-09 4:45 
QuestionRe: Debug assertion failed caused by the "GetSafeHmenu()" Pin
David Crow18-Nov-09 3:24
David Crow18-Nov-09 3:24 
AnswerRe: Debug assertion failed caused by the "GetSafeHmenu()" Pin
transoft18-Nov-09 3:44
transoft18-Nov-09 3:44 
GeneralRe: Debug assertion failed caused by the "GetSafeHmenu()" Pin
David Crow18-Nov-09 3:48
David Crow18-Nov-09 3:48 
GeneralRe: Debug assertion failed caused by the "GetSafeHmenu()" Pin
transoft18-Nov-09 4:47
transoft18-Nov-09 4:47 

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.