Click here to Skip to main content
15,742,797 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: PlaySound method doesn't function in a Win7 Srvany Service Pin
MicroVirus10-Apr-13 0:23
MicroVirus10-Apr-13 0:23 
QuestionOnFileOpen crashing Pin
_Flaviu4-Apr-13 22:31
_Flaviu4-Apr-13 22:31 
AnswerRe: OnFileOpen crashing Pin
CPallini4-Apr-13 22:40
mveCPallini4-Apr-13 22:40 
AnswerRe: OnFileOpen crashing Pin
Jochen Arndt4-Apr-13 22:42
professionalJochen Arndt4-Apr-13 22:42 
GeneralRe: OnFileOpen crashing Pin
_Flaviu4-Apr-13 23:07
_Flaviu4-Apr-13 23:07 
GeneralRe: OnFileOpen crashing Pin
_Flaviu4-Apr-13 23:26
_Flaviu4-Apr-13 23:26 
GeneralRe: OnFileOpen crashing Pin
Jochen Arndt4-Apr-13 23:35
professionalJochen Arndt4-Apr-13 23:35 
GeneralRe: OnFileOpen crashing Pin
_Flaviu4-Apr-13 23:46
_Flaviu4-Apr-13 23:46 
No, I didn't call CWinApp::OnFileOpen, but I call OpenDocumentFile(...), something like that:
C++
void CMyApp::OnFileOpen(void)
{
	CFileDialog dlg(TRUE);
	if(IDOK == dlg.DoModal())
	{
		POSITION pos = dlg.GetStartPosition();
		while(pos)OpenDocumentFile(dlg.GetNextPathName(pos));
	}
	// the document is loaded, I can see the bitmap in child frame ...
	AfxMessageBox("By here, everything it's OK.");
}

after all, I think that the problem it's in another place ... I really don't know ...

And this is weird, because if I open the same file from MRU, everything is OK ...

modified 5-Apr-13 5:54am.

GeneralRe: OnFileOpen crashing Pin
Jochen Arndt5-Apr-13 0:12
professionalJochen Arndt5-Apr-13 0:12 
GeneralRe: OnFileOpen crashing Pin
_Flaviu5-Apr-13 0:27
_Flaviu5-Apr-13 0:27 
GeneralRe: OnFileOpen crashing Pin
Jochen Arndt5-Apr-13 0:31
professionalJochen Arndt5-Apr-13 0:31 
GeneralRe: OnFileOpen crashing Pin
_Flaviu5-Apr-13 0:32
_Flaviu5-Apr-13 0:32 
GeneralRe: OnFileOpen crashing Pin
SoMad5-Apr-13 0:51
professionalSoMad5-Apr-13 0:51 
GeneralRe: OnFileOpen crashing Pin
_Flaviu5-Apr-13 1:24
_Flaviu5-Apr-13 1:24 
GeneralRe: OnFileOpen crashing Pin
SoMad5-Apr-13 10:58
professionalSoMad5-Apr-13 10:58 
AnswerRe: OnFileOpen crashing [solved] Pin
_Flaviu5-Apr-13 2:18
_Flaviu5-Apr-13 2:18 
GeneralRe: OnFileOpen crashing [solved] Pin
David Crow5-Apr-13 3:14
David Crow5-Apr-13 3:14 
GeneralRe: OnFileOpen crashing [solved] Pin
Richard MacCutchan5-Apr-13 3:35
mveRichard MacCutchan5-Apr-13 3:35 
GeneralRe: OnFileOpen crashing [solved] Pin
SoMad5-Apr-13 7:39
professionalSoMad5-Apr-13 7:39 
QuestionWindows Service Controler & CAsyncSocket Pin
Member 33971274-Apr-13 20:43
Member 33971274-Apr-13 20:43 
AnswerRe: Windows Service Controler & CAsyncSocket Pin
Jochen Arndt4-Apr-13 22:55
professionalJochen Arndt4-Apr-13 22:55 
GeneralRe: Windows Service Controler & CAsyncSocket Pin
Member 33971275-Apr-13 1:46
Member 33971275-Apr-13 1:46 
GeneralRe: Windows Service Controler & CAsyncSocket Pin
Jochen Arndt5-Apr-13 2:18
professionalJochen Arndt5-Apr-13 2:18 
AnswerRe: Windows Service Controler & CAsyncSocket Pin
Member 33971275-Apr-13 3:27
Member 33971275-Apr-13 3:27 
QuestionTimer not working properly. Pin
Le@rner4-Apr-13 20:25
Le@rner4-Apr-13 20: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.