CXTPBrowseEdit asserts in your sample |
Post Reply |
Author | |
MichaelN
Senior Member Joined: 19 September 2006 Status: Offline Points: 112 |
Post Options
Thanks(0)
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. Michael
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |