Click here to Skip to main content
15,905,073 members

Comments by Kyudos (Top 26 by date)

Kyudos 29-Oct-23 18:01pm View    
Deleted
I have (I hope it goes without saying!) read the documentation, and checked everything I can about the structure. Bear in mind this is code for a commercial product that we purchased along with the DLL it supposedly represents. It obviously works as intended in the DLL - but not in my rebuilt version. Hence my first assumption is that the problem relates to how I've reconstructed the build project, rather than the the code itself. As I said, I've copied in other ChooseFont example code which similarly fails. Other common dialog stuff (printer, open, save etc.) all seems fine....I just seem to have an issue with the fonts...
Kyudos 29-Oct-23 18:01pm View    
I have (I hope it goes without saying!) read the documentation, and checked everything I can about the structure. Bear in mind this is code for a commercial product that we purchased along with the DLL it supposedly represents. It obviously works as intended in the DLL - but not in my rebuilt version. Hence my first assumption is that the problem relates to how I've reconstructed the build project, rather than the the code itself. As I said, I've copied in other ChooseFont example code which similarly fails. Other common dialog stuff (printer, open, save etc.) all seems fine....I just seem to have an issue with the fonts...
Kyudos 10-Jul-23 19:33pm View    
Yes, particularly if you are using the built-in customisation functions, controlled by the "bVistaStyle" flag in the constructor. As I may not have quite got over in the original post, the dialog does seem to be centred if you leave it at the default size. However, the resizable version remembers its size, so will not be centred if you make it bigger. This may also be affected by my customisation - adding extra controls changes the dialog size also.
Kyudos 9-Jul-23 19:32pm View    
So is the `CWnd* pParentWnd` in the CFileDialog constructor just for backward compatibility? Is doesn't actually do anything? I would have thought connecting the file dialog to the application which created it would be an inherent part of its functionality?
Kyudos 23-Nov-21 15:37pm View    
It's not SQL server. My app is an interface to MDB / ACCDB files, and part of that interface allows the user to run SQL queries through CRecordset classes and/or CDatabase::ExecuteSQL. In this case the CDBException is "Syntax error in FROM clause." (State:37000,Native:-3506,Origin:[Microsoft][ODBC Microsoft Access Driver])