Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » What is the status of IDOK please?
Re: What is the status of IDOK please? [message #13386 is a reply to message #13384] Thu, 03 January 2008 21:27 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
nixnixnix wrote on Thu, 03 January 2008 14:14

Thanks Mirek,

I am not storing the result. This is the code which causes the first error (picked cos it was first)

void OpenWind::ReportAllSites()
{
	FileSel fs;
	fs.DefaultExt("txt");
	fs.Type("Tab-Delimited Text File *.txt", "*.txt");
	fs.ActiveDir(GetActiveDir());
	
	if(fs.ExecuteSaveAs("Save Energy Capture Results")!=IDOK)return;

....


it compiles fine under windows with MSC8, MSC9 and MINGW.

What do you think? Is there anything else I can supply?

Nick


I see. Well, you are not supposed to use IDOK there - it returns "true" on success, "false" on cancel.

	if(fs.ExecuteSaveAs("Save Energy Capture Results"))return;


(Note that even formally, it is not "OK" button in the FileSel after all Smile

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FindFile::GetCreationTime() not found in linux
Next Topic: Bug in app.cpp compiling non-gui apps (linux)
Goto Forum:
  


Current Time: Sun Aug 24 06:11:17 CEST 2025

Total time taken to generate the page: 0.04917 seconds