Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

How to set CFileDialog default file path at dlg.DoModal (in Windows 7)?

$
0
0

I found this answer in an old forum post:

CFileDialog findcpr(true, ".vtl", NULL, NULL, "cpr files (*.cpr)||All Files (*.*)||");
findcpr.m_ofn.lpstrInitialDir = m_jobdir;
findcpr.DoModal();

It works as expected under Windows XP, but not under Windows 7.

TIA.



Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>