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 » Developing U++ » UppHub » More new functions
Re: More new functions [message #19220 is a reply to message #19210] Fri, 21 November 2008 07:40 Go to previous messageGo to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

I have not found file "SlaveProcess.cpp" in usvn folder from uppsrc folder (updated by svn).
From where can o get this file?
In package organizer is not added usvn package. this is not a problem. I can add this!

[Updated on: Fri, 21 November 2008 07:42]

Report message to a moderator

Re: More new functions [message #19221 is a reply to message #19220] Fri, 21 November 2008 08:17 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello Ion

Here they are SlaveProcess.cpp and SlaveProcess.h.

Best regards
Koldo
  • Attachment: usvn.rar
    (Size: 4.00KB, Downloaded 297 times)


Best regards
IƱaki
Re: More new functions [message #19222 is a reply to message #19221] Fri, 21 November 2008 13:25 Go to previous messageGo to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

koldo wrote on Fri, 21 November 2008 09:17

Hello Ion

Here they are SlaveProcess.cpp and SlaveProcess.h.

Best regards
Koldo


Hello Koldo

The class LocalProcess is redefinition. May be you used a old svn version?

The class LocalProcess is create in core/LocalProcess.h

[Updated on: Fri, 21 November 2008 13:26]

Report message to a moderator

Re: More new functions [message #19226 is a reply to message #19222] Fri, 21 November 2008 16:13 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello Ion

Yes, that's right... it has been moved to core 5 days ago!.
Today I will post the update.

Best regards
Ińaki


Best regards
IƱaki
Re: More new functions [message #19229 is a reply to message #18804] Fri, 21 November 2008 22:24 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello all

Here it is the updated version.

Best regards
Koldo
  • Attachment: SysInfo.7z
    (Size: 17.74KB, Downloaded 275 times)


Best regards
IƱaki
Re: More new functions [message #19232 is a reply to message #19229] Sat, 22 November 2008 08:32 Go to previous messageGo to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

Hello Coldo!
There is a mistake:

Quote:


#if defined(PLATFORM_WIN32)
#if defined(__MINGW32__)

#define PRODUCT_UNDEFINED 0x00000000

#define PRODUCT_ULTIMATE 0x00000001
#define PRODUCT_HOME_BASIC 0x00000002
#define PRODUCT_HOME_PREMIUM 0x00000003
#define PRODUCT_ENTERPRISE 0x00000004
#define PRODUCT_HOME_BASIC_N 0x00000005
#define PRODUCT_BUSINESS 0x00000006
#define PRODUCT_STANDARD_SERVER 0x00000007
#define PRODUCT_DATACENTER_SERVER 0x00000008
#define PRODUCT_SMALLBUSINESS_SERVER 0x00000009
#define PRODUCT_ENTERPRISE_SERVER 0x0000000A
#define PRODUCT_STARTER 0x0000000B
#define PRODUCT_DATACENTER_SERVER_CORE 0x0000000C
#define PRODUCT_STANDARD_SERVER_CORE 0x0000000D
#define PRODUCT_ENTERPRISE_SERVER_CORE 0x0000000E
#define PRODUCT_ENTERPRISE_SERVER_IA64 0x0000000F
#define PRODUCT_BUSINESS_N 0x00000010
#define PRODUCT_WEB_SERVER 0x00000011
#define PRODUCT_CLUSTER_SERVER 0x00000012
#define PRODUCT_HOME_SERVER 0x00000013
#define PRODUCT_STORAGE_EXPRESS_SERVER 0x00000014
#define PRODUCT_STORAGE_STANDARD_SERVER 0x00000015
#define PRODUCT_STORAGE_WORKGROUP_SERVER 0x00000016
#define PRODUCT_STORAGE_ENTERPRISE_SERVER 0x00000017
#define PRODUCT_SERVER_FOR_SMALLBUSINESS 0x00000018
#define PRODUCT_SMALLBUSINESS_SERVER_PREMIUM 0x00000019

#define PRODUCT_UNLICENSED 0xABCDABCD
#endif
...
#endif



you have defined only for mingw32 build but not and for msc8, or msc9!
Re: More new functions [message #19244 is a reply to message #19232] Sat, 22 November 2008 23:24 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello Ion

I have seen that MSC9 includes those constants but at least the MinGW version included in Ultimate does not, so I have included them only for MinGW.

Best regards
Koldo


Best regards
IƱaki
Re: More new functions [message #19248 is a reply to message #19244] Sun, 23 November 2008 07:58 Go to previous messageGo to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

koldo wrote on Sun, 23 November 2008 00:24

Hello Ion

I have seen that MSC9 includes those constants but at least the MinGW version included in Ultimate does not, so I have included them only for MinGW.

Best regards
Koldo

Hello Coldo. With MSC8 is not included.
Re: More new functions [message #19250 is a reply to message #19244] Sun, 23 November 2008 10:45 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Sat, 22 November 2008 17:24

Hello Ion

I have seen that MSC9 includes those constants but at least the MinGW version included in Ultimate does not, so I have included them only for MinGW.

Best regards
Koldo


#ifdef?

Mirek
Re: More new functions [message #19255 is a reply to message #19250] Sun, 23 November 2008 16:20 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
As you like!

In this case both #if defined(__MINGW32__) and #ifdef __MINGW32__ are equivalent.

If you prefer I will change all the #if defined to #ifdef.

The second is shorter but the first is a little richer. For example I think #if defined(x) || defined(y) is not possible with #ifdef.

Best regards
Koldo


Best regards
IƱaki
Re: More new functions [message #19258 is a reply to message #19255] Sun, 23 November 2008 18:23 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Sorry, I meant

#ifndef PRODUCT_UNDEFINED

Mirek
Re: More new functions [message #19264 is a reply to message #19258] Sun, 23 November 2008 20:08 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello luzr

Really PRODUCT_UNDEFINED and some others are not used inside the code, but I will do what you indicate me.

Best regards
Koldo


Best regards
IƱaki
Re: More new functions [message #19277 is a reply to message #18804] Mon, 24 November 2008 00:28 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello all

Here I enclose you an update with a fix to a problem in Kde that has been very hard for me to solve: in certain situations Kde console demo got an Xlib exception in situations covered by the program. This did not happened in Gnome or Xfce.

The solution has been as simple as including a dummy X11 error handler, as the program by itself manages the errors properly. As usual the solution came analyzing the Upp code.

Thank you for your comments. Please give me some feedback if the program works right and in which environments.

Best regards
Koldo

  • Attachment: SysInfo.7z
    (Size: 17.82KB, Downloaded 279 times)


Best regards
IƱaki
Re: More new functions [message #19424 is a reply to message #18804] Wed, 03 December 2008 09:30 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello all

I am very happy to show you the SysInfo testing results (see inclosed spreadsheet for details).
- If Smile the distro is tested and all or almost all the functions run properly
- If Sad I did not found a live CD to test the distro or I have had problems when running it that avoided me to test the SysInfo console demo

DISTROS AND O.S.
BSD
Sad Freesbie
GNU/Linux
Smile Fedora
Sad Fluxbox
Sad Gentoo
Sad Knoppix
Smile Kubuntu
Smile Mandriva
Smile Opengeu
Smile OpenSuse
Sad Slackware
Smile Slax (Slackware)
Smile Ubuntu (32 & 64 bits)
Smile Xubuntu
Windows
Smile Vista
Smile XP

DESKTOPS
Smile Gnome
Smile Kde
Smile Xfce
Smile Enlightenment
Sad Fluxbox

In the inclosed SysInfo.zip you can find the source, the demo and the testing results including the log files and a spreadsheet table with the detailed results per distro.

For now the functions documentation is in the SysInfo.h file

SysInfo functions give information about:
- Special folders (Desktop, Download, Music, ...)
- System Info
- Memory Info
- Os Info
- Distro Info
- Default Exes
- Drives Info
- Launch File
- Find and Kill Window
- Windows List
- Process List

This functions do not require:
- To install additional programs. They do not have dependencies
- Super user permissions

If you want to use SysInfo and your distro/kernel is not in the list please try it. If some of the functions do not work please send me a post and I will try to solve it.

I will try to put this in Bazaar (now I do not know how)

In another post I will include new SysInfo functions I want to do. Ideas are acknowledged.

Best regards
Koldo

  • Attachment: SysInfo.zip
    (Size: 65.06KB, Downloaded 283 times)


Best regards
IƱaki
Re: More new functions [message #19554 is a reply to message #19424] Mon, 15 December 2008 10:07 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Wed, 03 December 2008 03:30


- If Smile the distro is tested and all or almost all the functions run properly
- If Sad I did not found a live CD to test the distro or I have had problems when running it that avoided me to test the SysInfo console demo



IMO, using Smile / Sad was not a best idea Smile Also, mixing "not found a live CD" vs "problems" is not a good idea either...

I think we should have 3 lists - where it works, where it does not and where it was not tested.

Mirek
Re: More new functions [message #19570 is a reply to message #19554] Wed, 17 December 2008 08:33 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Ok

I will update it in next December release to be done in Bazaar.

Best regards
Koldo


Best regards
IƱaki
Re: More new functions [message #19783 is a reply to message #18804] Sat, 17 January 2009 22:32 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello all

Added SysInfo and Automation libraries and samples in Bazaar (post http://www.ultimatepp.org/forum/index.php?t=msg&goto=197 76&#msg_19776).

Best regards
Koldo


Best regards
IƱaki
Re: More new functions [message #30288 is a reply to message #19783] Wed, 22 December 2010 07:49 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

It looks like GetAppDataFolder() returns empty string in some cases on Windows 7 (especially when run under debugger). Inner tracing shows that SHGetFolderPathW() returns <void>, and I don't know if it is good.
More of that, GetHomeDirectory() is more stable but returns poorly encoded value under Windows 7. In such cases, ToSystemCharset(GetHomeDirectory()) returns right value.
App encoding is UTF8, Win version is Win7 Ultimate Russian. User name is in russian characters. Local folders are default.

[Updated on: Wed, 22 December 2010 09:48]

Report message to a moderator

Re: More new functions [message #30334 is a reply to message #30288] Sat, 25 December 2010 10:05 Go to previous message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello Mindtraveller

In fact SHGetFolderPathW seems to be deprecated.


Best regards
IƱaki
Previous Topic: Simple app-wide "macros"
Next Topic: Grid helper
Goto Forum:
  


Current Time: Fri Apr 19 08:08:10 CEST 2024

Total time taken to generate the page: 0.04702 seconds