×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Super Contributor
    Join Date
    Jun 2005
    Location
    Berlin
    Posts
    721

    How to read the release version of OpenC during runtime?

    hello,


    because of adding new functions in openc1.6, the application needs to check out, which version of openc is installed, during runtime.


    I have not found such kind of function. (the uname() function doesn't contain openc's version).

    With OpenC1.6, I get Version: 2:0:1177 by using uname(), but I don't think it belongs to openc.



    Does anybody know about it?


    Thanks in advanced

    Pai
    Symbian && Android && iPhoneOS

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: How to read the release version of OpenC during runtime?

    Depending on what you are planning to do exactly, it might be much easier than you think:
    Quote Originally Posted by s60opencreleasenotes.txt
    13. P.I.P.S. applications built using the Open C 1.6 plug-in, will not run
    on earlier versions of runtimes. All applications built using OpenC 1.5
    (beta) will need to be recompiled against OpenC 1.6 plug-in to get
    signal support.

  3. #3
    Registered User
    Join Date
    Aug 2007
    Posts
    5

    Re: How to read the release version of OpenC during runtime?

    See s60opencreleasenotes.txt
    8. P.I.P.S. version information is now available at build time in
    pipsversion.h.
    Note that this API is newly added to 1.6. OpenC version will be same.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: How to read the release version of OpenC during runtime?

    What I meant was that your application probably would not be able to start at all if the OpenC version happened to be an older one.

  5. #5
    Super Contributor
    Join Date
    Jun 2005
    Location
    Berlin
    Posts
    721

    Re: How to read the release version of OpenC during runtime?

    Quote Originally Posted by wizard_hu_ View Post
    What I meant was that your application probably would not be able to start at all if the OpenC version happened to be an older one.
    Hello wizard_hu,


    You are right. (Now I want to use a native Symbian C++ application to check the version number of openC)


    I need the version of PIPS to decide, if install new openc or not.

    Is there any Symbian C++ API which can be used for reading installed package version?

    maybe i should use pkg to check the version number.


    Regards

    Pai
    Last edited by paipeng; 2009-09-04 at 16:18.
    Symbian && Android && iPhoneOS

  6. #6
    Super Contributor
    Join Date
    Jun 2005
    Location
    Berlin
    Posts
    721

    Re: How to read the release version of OpenC during runtime?

    Quote Originally Posted by vinodkumarp View Post
    See s60opencreleasenotes.txt
    8. P.I.P.S. version information is now available at build time in
    pipsversion.h.
    Note that this API is newly added to 1.6. OpenC version will be same.
    Hello vinodkumarp,


    Thanks for your helpful information, I always don't read document carefully.

    Only the macro is usful during build time, not runtime.


    Regards,

    Pai
    Symbian && Android && iPhoneOS

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: How to read the release version of OpenC during runtime?

    Interesting question. Have you tried what happens if you attempt installing an older version of the OpenC plugin on a newer one?
    If it installs itself replacing the old one, that may cause some problems - practically older applications having OpenC embedded would start killing newer applications.

  8. #8
    Super Contributor
    Join Date
    Jun 2005
    Location
    Berlin
    Posts
    721

    Re: How to read the release version of OpenC during runtime?

    Quote Originally Posted by wizard_hu_ View Post
    Interesting question. Have you tried what happens if you attempt installing an older version of the OpenC plugin on a newer one?
    If it installs itself replacing the old one, that may cause some problems - practically older applications having OpenC embedded would start killing newer applications.
    Hello wizard_hu,


    i have just tested installing old openc(1.3) on new openc(1.6), and the installation process is finished.
    After that, the new openc is replaced by the old one.


    It is one real problem now.


    regards,

    Pai
    Symbian && Android && iPhoneOS

  9. #9
    Super Contributor
    Join Date
    Jun 2005
    Location
    Berlin
    Posts
    721

    Re: How to read the release version of OpenC during runtime?

    I have also tried to install OVI store client on my E71.


    It looks like, this client is using openc1.3 and after installation the new openc1.6 is replaced by OVI client's openc.


    regards,

    Pai
    Symbian && Android && iPhoneOS

  10. #10
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: How to read the release version of OpenC during runtime?

    Yes, because of the installer's awkwardness there has always been chances for that this concept could easily suck, but it is a "relief" to see it really does :-)
    Downgrading to a lower version of any given package just should not happen that easily. Unfortunately the "IF package(0x...)" construct does not allow checking for version numbers (or at least it is not documented anywhere), but "appprop" could be still used for some versioning magic.

    For creating some "immortal" application one could have a launcher (which does not depend on any plugins) and check availability/version of the plugin (and installing if necessary) prior to launching the main application. Or rather say: "meanwhile" - if RProcess::Create fails with some KErrNotFound, it probably means that the library is missing, and version mismatch also raises some specific error code I guess (KErrNotSupported perhaps?).
    Last edited by wizard_hu_; 2009-09-08 at 10:37.

Similar Threads

  1. Python for S60 1.9.6 released
    By tvijayan in forum Symbian
    Replies: 27
    Last Post: 2009-07-19, 15:52
  2. Replies: 5
    Last Post: 2008-12-04, 19:35
  3. Replies: 0
    Last Post: 2003-05-12, 10:11
  4. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46
  5. Questions about version code in MMS protocol
    By wangzhong in forum General Messaging
    Replies: 1
    Last Post: 2002-11-21, 10:32

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×