Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CXTPBrowseEdit asserts in your sample
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPBrowseEdit asserts in your sample

 Post Reply Post Reply
Author
Message
MichaelN View Drop Down
Senior Member
Senior Member


Joined: 19 September 2006
Status: Offline
Points: 112
Post Options Post Options   Thanks (0) Thanks(0)   Quote MichaelN Quote  Post ReplyReply Direct Link To This Post Topic: CXTPBrowseEdit asserts in your sample
    Posted: 27 November 2012 at 4:49pm
Your sample project "BrowseEdit_vc90" asserts when using my own CFileDialog. In your CBrowseEditDlg.cpp there is a #if 0 block where you give code to implement a CFileDialog. I switched that to #if 1 to enable it, then re-built the sample app and ran it. When I click the [...] button to open the CFileDialog it works the first time. I close the file dialog and click [...] again and it asserts at line 377 of dlgfile.cpp. The assert is here:

hr = (

static_cast<IFileDialog*>(m_pIFileDialog))->SetFileTypes(nFilterCount, pFilter);

ENSURE(SUCCEEDED(hr));

The debugger shows nFilterCount = 2 and pFilter is the expected filter string.
 
Then I tried what you recommend, to make the CFileDialog a class variable and create it in the dialog constructor. I get exactly the same ASSERT.
Michael
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.