Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    licenseServer WritePlugInfo

    Scheduled Pinned Locked Moved SDK Help
    18 Posts 0 Posters 1.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 08/02/2009 at 03:28, xxxxxxxx wrote:

      OK, once again: I don't want to write any files! Just reading. But it seems, that reading also doesn't work. I just got some feedback from a customer. This should have been a temporary solution until the MAXON developers fix the WritePluginInfo bug. I prefer the crypted way to store such data, because this way you can store time periods for demos etc. If you write such data to normal files, the user just can delete it and gets a new demo period.

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 09/02/2009 at 07:14, xxxxxxxx wrote:

        Got an answer from the developers.

        **
        Bool ReadRegInfo(LONG pluginid, void* buffer, LONG size)
        Bool WriteRegInfo(LONG pluginid, void* buffer, LONG size)
        **

        These two functions were specifically introduced with R11 to write the plugin info to the local registry. Please use them in a license server enviroment.

        cheers,
        Matthias

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 09/02/2009 at 09:28, xxxxxxxx wrote:

          thanks for the info, i'll check it out.

          greetings,
          Daniel

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 10/02/2009 at 10:38, xxxxxxxx wrote:

            Hi,

            has anybody got it working under a license-server environment using Read-/WriteRegInfo ?

            For me it still does not work..

            Using a non-License-Server setup Read-/Write RegInfo seems to work fine though..

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 11/02/2009 at 01:32, xxxxxxxx wrote:

              This code is working fine here, contrary to Read-/WritePluginInfo:

              > \> Bool MenuTest::Execute(BaseDocument \*doc) \> { \>      CHAR text1[] = "hello world, abcdefghijklmnopqrstuvwxyz"; \>       \>      GePrint(String(text1, St8bit)); \> \>      const LONG len = sizeof(text1); \> \>      CHAR text2[len]; \> \>      if(WriteRegInfo(1000956, text1, len)) GePrint("w success"); \> \>      if(ReadRegInfo(1000956, text2, len)) GePrint("r success"); \> \>      GePrint(String(text2, St8bit)); \> \>      return TRUE; \> } \>

              cheers,
              Matthias

              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 11/02/2009 at 02:44, xxxxxxxx wrote:

                I don't have a license server available. I have stressed the patience of my customers enough, I think. So by now I have implemented the solution reading/writing the license data from/to the user pref dir. This works fine and it's easier to manage several licenses. One customer has three different multi licenses(!).

                1 Reply Last reply Reply Quote 0
                • H Offline
                  Helper
                  last edited by

                  THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                  On 11/02/2009 at 03:29, xxxxxxxx wrote:

                  Hey guys,

                  I am using my plugins folder here for everything (without problems so far). The dev kitchen is also a bit unclear concerning the modification of the plugins folder. on page 2 it says explicitly

                  "C4D application folder can't be modified
                  anymore (with the exception of "plugins") "

                  But on page 5 it says:

                  "Data can't be written into your plugin
                  directory anymore"

                  Hä? So, this is not very clear! As I said, I didn´t encounter any problems so far and no customer of mine did either.

                  Just wanted to mention this, though it seems to be save to use the prefs folder now.
                  MultiLicense also seems to be a pain currently, an easy interface class would surely make sense for future releases of the API.

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    Helper
                    last edited by

                    THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                    On 11/02/2009 at 03:58, xxxxxxxx wrote:

                    Quote: Originally posted by Matthias Bober on 11 February 2009
                    >
                    > * * *
                    >
                    > This code is working fine here, contrary to Read-/WritePluginInfo:
                    > .
                    > .
                    >
                    > cheers,
                    > Matthias
                    >
                    >
                    > * * *

                    Hello Matthias,

                    did you test it with the license-server running, or without it ?

                    When i test it at home without the license server runing,
                    using Read-/WritePluginInfo works fine.
                    When my customer uses it with the license server, it doesnt work for him..

                    I know this sounds strange and would mean that Read-/WritePluginInfo only works faulty when a license server is running..

                    Maybe the error is somewhere else in my code, but thats why i need to confirm that you also tested it successfully with the license server running..

                    thanks!

                    Daniel

                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      Helper
                      last edited by

                      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                      On 11/02/2009 at 04:03, xxxxxxxx wrote:

                      I tested it with the license server running. To summarize, use Read-/WriteRegInfo in a license server enviroment, use Read-/WritePluginInfo for single licenses.

                      cheers,
                      Matthias

                      1 Reply Last reply Reply Quote 0
                      • H Offline
                        Helper
                        last edited by

                        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                        On 12/02/2009 at 00:50, xxxxxxxx wrote:

                        Hi,

                        just to confirm this, everything is working fine now.
                        The problem i had in my last post was due to something else.

                        So as far as i can see, there's no bugs with registerung a plugin under a licenseServer environment, and its actually quite easy too.

                        thanks all.
                        Daniel

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post