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++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Changes in SysInfo Bazaar package (svn 6019)
Re: Changes in SysInfo Bazaar package (svn 6019) [message #39818 is a reply to message #39815] Fri, 03 May 2013 19:40 Go to previous messageGo to previous message
BioBytes is currently offline  BioBytes
Messages: 307
Registered: October 2008
Location: France
Senior Member
Hello Koldo,

Thank you very much for explanation. I see now why the source code has been modified.

The "problem" I faced is that the new function GetWindowIdFromCaption has not the same behaviour under Win XP and Win 7. For some reason, my application checks if an instance is already running and therefore inform the user that only one instance can be opened on his/her computer.

Under Upp svn 6009, the code (working under Win XP or Win 7) was:

bool QSkillsWin::IsSingleInstance()
{
    if(GetWindowIdFromCaption(GetTitle().ToString())>0)return true;
	  else return false;
}



Under Upp svn 6019, the new code is:

bool RegManager::IsSingleInstance()
{
	if(IsWin7())
	{
		if(GetWindowIdFromCaption(GetTitle().ToString(),true)==INT64_MAX)return true;
	  	else return false;
	}
	 else
	  {
	  	if(GetWindowIdFromCaption(GetTitle().ToString(),true)<INT64_MAX)return true;
	    else return false;
	  }
}



Without the above modification, the function is working well under Win 7 but return opposite value under Win XP showing a dialogue window informing the user that the application is already running in memory (?!).

My U++ project is compiled using MSC 9 on the two computers (one is running under XP, the other under Win 7).

If I would like to move my application under Linux, should I integrate a test to check that Linux or Posix is running ?

Thank you in advance for your comments

Regards

Biobytes
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: linker problem
Next Topic: [BUG] MscBuilder crashes the IDE when building all shared.
Goto Forum:
  


Current Time: Sat Apr 27 06:25:24 CEST 2024

Total time taken to generate the page: 3.93712 seconds