Click here to Skip to main content
15,892,697 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DirectShow .NET HELP!!!! Pin
Brian JR14-Jul-03 16:16
Brian JR14-Jul-03 16:16 
GeneralRe: DirectShow .NET HELP!!!! Pin
J. Dunlap14-Jul-03 21:15
J. Dunlap14-Jul-03 21:15 
GeneralRe: DirectShow .NET HELP!!!! Pin
Brian JR15-Jul-03 7:47
Brian JR15-Jul-03 7:47 
GeneralRe: DirectShow .NET HELP!!!! Pin
Brian JR15-Jul-03 8:54
Brian JR15-Jul-03 8:54 
GeneralLarge fonts in Windows XP Pin
Navin14-Jul-03 8:04
Navin14-Jul-03 8:04 
GeneralCommunicating C++ and C# Pin
pdunn14-Jul-03 7:45
pdunn14-Jul-03 7:45 
GeneralModeless windows Pin
Jay Hova14-Jul-03 7:40
Jay Hova14-Jul-03 7:40 
GeneralRe: Modeless windows Pin
Joaquín M López Muñoz14-Jul-03 10:23
Joaquín M López Muñoz14-Jul-03 10:23 
If your modeless dialogs are bell behaved, then they auto-delete in PostNcDestroy. The problem is that m_pStats will be non-NULL even after the window it formerly pointed to has gone into oblivion. You can try the following approach. Define a CStats ** member into CStats just like this:
class CStats
{
...
CStats ** m_myself;
};
After calling new CStats and before Create use m_myself to let the window know about the variable pointing to it:
if (m_pStats== NULL){
     m_pStats= new CStats;          
     m_pStats->m_myself=&m_pStats;
...
Now, in PostNcDestroy you can take advantage of this variable to set m_pStats to NULL:
Void CStats::PostNcDestroy()
{
  *m_myself=NULL;
  delete this;
}


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: Modeless windows Pin
Toni7814-Jul-03 19:30
Toni7814-Jul-03 19:30 
GeneralRe: Modeless windows Pin
Jay Hova15-Jul-03 1:19
Jay Hova15-Jul-03 1:19 
GeneralRe: Modeless windows Pin
Toni7815-Jul-03 15:50
Toni7815-Jul-03 15:50 
GeneralRe: Modeless windows Pin
Jay Hova15-Jul-03 1:31
Jay Hova15-Jul-03 1:31 
GeneralRe: Modeless windows Pin
mlsteeves16-Jul-03 6:16
mlsteeves16-Jul-03 6:16 
GeneralCEdit carriage returns Pin
scontapay14-Jul-03 7:23
scontapay14-Jul-03 7:23 
GeneralRe: CEdit carriage returns Pin
valikac14-Jul-03 7:32
valikac14-Jul-03 7:32 
GeneralRe: CEdit carriage returns Pin
Shay Harel14-Jul-03 7:37
Shay Harel14-Jul-03 7:37 
GeneralRe: CEdit carriage returns Pin
scontapay14-Jul-03 7:48
scontapay14-Jul-03 7:48 
GeneralRe: CEdit carriage returns Pin
Shay Harel14-Jul-03 7:50
Shay Harel14-Jul-03 7:50 
GeneralRe: CEdit carriage returns Pin
scontapay14-Jul-03 7:52
scontapay14-Jul-03 7:52 
GeneralRe: CEdit carriage returns Pin
John R. Shaw14-Jul-03 7:46
John R. Shaw14-Jul-03 7:46 
GeneralRe: CEdit carriage returns Pin
scontapay14-Jul-03 7:49
scontapay14-Jul-03 7:49 
GeneralRe: CEdit carriage returns Pin
John R. Shaw14-Jul-03 8:06
John R. Shaw14-Jul-03 8:06 
GeneralRe: CEdit carriage returns Pin
Shog914-Jul-03 9:32
sitebuilderShog914-Jul-03 9:32 
GeneralRe: CEdit carriage returns Pin
scontapay14-Jul-03 9:35
scontapay14-Jul-03 9:35 
GeneralRe: CEdit carriage returns Pin
David Crow14-Jul-03 7:55
David Crow14-Jul-03 7:55 

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.