Click here to Skip to main content
15,913,487 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPlease help with networking solutions Pin
Walote5-Nov-02 5:22
Walote5-Nov-02 5:22 
GeneralRe: Please help with networking solutions Pin
valikac5-Nov-02 8:33
valikac5-Nov-02 8:33 
GeneralSerialization question Pin
ns5-Nov-02 5:25
ns5-Nov-02 5:25 
GeneralRe: Serialization question Pin
Ravi Bhavnani5-Nov-02 6:06
professionalRavi Bhavnani5-Nov-02 6:06 
GeneralRe: Serialization question Pin
ns5-Nov-02 6:09
ns5-Nov-02 6:09 
GeneralHelp with ToolTips Pin
Aaron Schaefer5-Nov-02 5:00
Aaron Schaefer5-Nov-02 5:00 
GeneralGetSafeHwnd() Pin
ns5-Nov-02 4:53
ns5-Nov-02 4:53 
GeneralRe: GetSafeHwnd() Pin
TyMatthews5-Nov-02 6:14
TyMatthews5-Nov-02 6:14 
Your code is probably crashing NOT because of the call to GetSafeHwnd(), but rather the attempt to access the pView pointer, which is most likely invalid at the point this code is being executed. To be sure, change it to this:

if( pView != NULL )
{
    if( pView->m_list1.GetSafeHwnd() )
    {
        // do stuff
    }
}


It might help if you could explain a little about why you're trying to access the list control (on your FormView) from the mainframe class before the view is even spawned. Is this some initialization code?

    Ty


"The significant problems we face cannot be solved at the same level of thinking we were at when we created them." -Albert Einstein


GeneralRe: GetSafeHwnd() Pin
ns5-Nov-02 6:17
ns5-Nov-02 6:17 
GeneralRe: GetSafeHwnd() Pin
Ravi Bhavnani5-Nov-02 7:32
professionalRavi Bhavnani5-Nov-02 7:32 
GeneralRe: GetSafeHwnd() Pin
ns5-Nov-02 7:36
ns5-Nov-02 7:36 
GeneralRe: GetSafeHwnd() Pin
Ravi Bhavnani5-Nov-02 7:57
professionalRavi Bhavnani5-Nov-02 7:57 
GeneralSQL Wildcard Search Pin
Richard Hudson5-Nov-02 4:47
Richard Hudson5-Nov-02 4:47 
GeneralRe: SQL Wildcard Search Pin
Pete Bassett5-Nov-02 5:48
Pete Bassett5-Nov-02 5:48 
GeneralRe: SQL Wildcard Search Pin
Jon Hulatt5-Nov-02 5:43
Jon Hulatt5-Nov-02 5:43 
GeneralRe: SQL Wildcard Search Pin
Member 15922365-Nov-02 7:53
Member 15922365-Nov-02 7:53 
GeneralRegarding bsc files Pin
cutti5-Nov-02 4:09
cutti5-Nov-02 4:09 
GeneralSockets through Proxy Pin
Pete Bassett5-Nov-02 3:44
Pete Bassett5-Nov-02 3:44 
GeneralRe: Sockets through Proxy Pin
Daniel Turini5-Nov-02 5:03
Daniel Turini5-Nov-02 5:03 
GeneralRe: Sockets through Proxy Pin
Pete Bassett5-Nov-02 5:28
Pete Bassett5-Nov-02 5:28 
GeneralPrinting a dialog box Pin
Brad West5-Nov-02 3:03
Brad West5-Nov-02 3:03 
GeneralRe: Printing a dialog box Pin
dabs5-Nov-02 3:12
dabs5-Nov-02 3:12 
GeneralRe: Printing a dialog box Pin
includeh105-Nov-02 4:55
includeh105-Nov-02 4:55 
GeneralRe: Printing a dialog box Pin
Mazdak5-Nov-02 5:09
Mazdak5-Nov-02 5:09 
GeneralPrinting a dialog box Pin
Anonymous5-Nov-02 3:03
Anonymous5-Nov-02 3:03 

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.