PythonWin & SWIG : DoModal / AfxMessageBox in C++ : No Window appears

Robert Kiendl rkiendl at gmx.net
Thu Aug 8 07:07:40 EDT 2002


the SWIG interface to my C++ / MFC code works well.
But when a windows message-loop is entered for a non-PythonWin-Window in
a C++ Funktion (DoModal or AfxMessageBox...) no window appears and the
thing hangs.

think this is a problem of the message dispatching in PyhtonWin ?

------------

C++:

void MyMsgBox(char* text) {
	AfxMessageBox(text);
}


ext.MyMsgBox("hello")	

OR:

import ext
dirdialog=ext.CDirDialog("C:\\devel")
dirdialog.DoModal()



More information about the Python-list mailing list