Loading ...
Sorry, an error occurred while loading the content.

CC3 Directory

Expand Messages
  • Joachim de Ravenbel
    Help please! I need to get the CC3 Directory full path for an XP. What I want to do is something like : string ^FilePath = GetCC3MainDirectory() +
    Message 1 of 5 , Feb 23, 2012
    • 0 Attachment
      Help please!
       
      I need to get the CC3 Directory full path for an XP.
      What I want to do is something like :
       
      string ^FilePath = GetCC3MainDirectory() + "\newfolder\";
      saveFileDialog1.InitialDirectory = FilePath;
       
      Is there a command like GetCC3MainDirectory ?
       
      I saw a RSC_GetOurPath int but didn't managed to use it.
      RscAdr(RSC_GetOurPath) doesn't work...
       
      By the way, what does RSC mean ? I guess it's not the Rotten Squeezed Cucumber my frustration made it :)
       
      Thanks,
      Joachim de Ravenbel
    • L. Lee Saunders
      From the FCW32.TXT file: ; =============================================================== ; GetOurPath - Get path to FCW32.EXE into RSC_OurPath
      Message 2 of 5 , Feb 23, 2012
      • 0 Attachment

        From the FCW32.TXT file:

         

        ;               ===============================================================

        ;               GetOurPath - Get path to FCW32.EXE into RSC_OurPath

        ;               ---------------------------------------------------------------

        ;               On exit:

        ;                               RSC_OurPath contains our load path ending with \ NULL

        ;               ===============================================================

         

        Is that what you are looking for?

         

        BTW, RSC_OurPath  is defined in the file _RSCID.H
                            #define RSC_OurPath                         3059     // path to FCW32.EXE (ends with \)

         

        Since I do not see a “glue routine” that wraps a C call around a ASM call to GetOurPath, you will have to write your own. 

         

        Or, if Peter reads this, he may be able to help you do it.  I’ve not written a Glue routine in maybe 10 years, sorry.

         

        Lee

         

        From: cc2-dev-l@yahoogroups.com [mailto:cc2-dev-l@yahoogroups.com] On Behalf Of Joachim de Ravenbel
        Sent: Thursday, February 23, 2012 8:34 AM
        To: cc2-dev-l@yahoogroups.com
        Subject: [cc2-dev-l] CC3 Directory

         

         

        Help please!

         

        I need to get the CC3 Directory full path for an XP.

        What I want to do is something like :

         

        string ^FilePath = GetCC3MainDirectory() + "\newfolder\";

        saveFileDialog1.InitialDirectory = FilePath;

         

        Is there a command like GetCC3MainDirectory ?

         

        I saw a RSC_GetOurPath int but didn't managed to use it.

        RscAdr(RSC_GetOurPath) doesn't work...

         

        By the way, what does RSC mean ? I guess it's not the Rotten Squeezed Cucumber my frustration made it :)

         

        Thanks,

        Joachim de Ravenbel

      • Peter Olsson
        The easiest is to use RSC_OurPath to get a pointer: char *pMyPath = RscAdr(RSC(RSC_OurPath)); Peter *Från:* cc2-dev-l@yahoogroups.com
        Message 3 of 5 , Feb 23, 2012
        • 0 Attachment

          The easiest is to use RSC_OurPath to get a pointer:

           

          char *pMyPath = RscAdr(RSC(RSC_OurPath));

           

          Peter

           

          Från: cc2-dev-l@yahoogroups.com [mailto:cc2-dev-l@yahoogroups.com] För L. Lee Saunders
          Skickat: den 23 februari 2012 16:45
          Till: cc2-dev-l@yahoogroups.com
          Ämne: RE: [cc2-dev-l] CC3 Directory

           

           

          From the FCW32.TXT file:

           

          ;               ===============================================================

          ;               GetOurPath - Get path to FCW32.EXE into RSC_OurPath

          ;               ---------------------------------------------------------------

          ;               On exit:

          ;                               RSC_OurPath contains our load path ending with \ NULL

          ;               ===============================================================

           

          Is that what you are looking for?

           

          BTW, RSC_OurPath  is defined in the file _RSCID.H
                              #define RSC_OurPath                         3059     // path to FCW32.EXE (ends with \)

           

          Since I do not see a “glue routine” that wraps a C call around a ASM call to GetOurPath, you will have to write your own. 

           

          Or, if Peter reads this, he may be able to help you do it.  I’ve not written a Glue routine in maybe 10 years, sorry.

           

          Lee

           

          From: cc2-dev-l@yahoogroups.com [mailto:cc2-dev-l@yahoogroups.com] On Behalf Of Joachim de Ravenbel
          Sent: Thursday, February 23, 2012 8:34 AM
          To: cc2-dev-l@yahoogroups.com
          Subject: [cc2-dev-l] CC3 Directory

           

           

          Help please!

           

          I need to get the CC3 Directory full path for an XP.

          What I want to do is something like :

           

          string ^FilePath = GetCC3MainDirectory() + "\newfolder\";

          saveFileDialog1.InitialDirectory = FilePath;

           

          Is there a command like GetCC3MainDirectory ?

           

          I saw a RSC_GetOurPath int but didn't managed to use it.

          RscAdr(RSC_GetOurPath) doesn't work...

           

          By the way, what does RSC mean ? I guess it's not the Rotten Squeezed Cucumber my frustration made it :)

           

          Thanks,

          Joachim de Ravenbel

        • Joachim de Ravenbel
          Thanks a lot Peter and Larry ! If someone s interested, here is the code part I used (and it works !) (...) char * MainPath = (char*)RscAdr(RSC(RSC_OurPath));
          Message 4 of 5 , Feb 24, 2012
          • 0 Attachment
            Thanks a lot Peter and Larry !
             
            If someone's interested, here is the code part I used (and it works !)
             
            (...)
            char * MainPath = (char*)RscAdr(RSC(RSC_OurPath));
            String^ SPath = gcnew String(MainPath);
            SPath += "System";
            saveFileDialog1->InitialDirectory = SPath:
            (...)
             
            Joachim de Ravenbel
             
            ----- Original Message -----
            Sent: Thursday, February 23, 2012 8:34 PM
            Subject: Re: [cc2-dev-l] CC3 Directory

             

            The easiest is to use RSC_OurPath to get a pointer:

             

            char *pMyPath = RscAdr(RSC(RSC_OurPath));

             

            Peter

             

            Från: cc2-dev-l@yahoogroups.com [mailto:cc2-dev-l@yahoogroups.com] För L. Lee Saunders
            Skickat: den 23 februari 2012 16:45
            Till: cc2-dev-l@yahoogroups.com
            Ämne: RE: [cc2-dev-l] CC3 Directory

             

            From the FCW32.TXT file:

             

            ;               ===============================================================

            ;               GetOurPath - Get path to FCW32.EXE into RSC_OurPath

            ;               ---------------------------------------------------------------

            ;               On exit:

            ;                               RSC_OurPath contains our load path ending with \ NULL

            ;               ===============================================================

             

            Is that what you are looking for?

             

            BTW, RSC_OurPath  is defined in the file _RSCID.H
                                #define RSC_OurPath                         3059     // path to FCW32.EXE (ends with \)

             

            Since I do not see a “glue routine” that wraps a C call around a ASM call to GetOurPath, you will have to write your own. 

             

            Or, if Peter reads this, he may be able to help you do it.  I’ve not written a Glue routine in maybe 10 years, sorry.

             

            Lee

             

            From: cc2-dev-l@yahoogroups.com [mailto:cc2-dev-l@yahoogroups.com] On Behalf Of Joachim de Ravenbel
            Sent: Thursday, February 23, 2012 8:34 AM
            To: cc2-dev-l@yahoogroups.com
            Subject: [cc2-dev-l] CC3 Directory

             

            Help please!

             

            I need to get the CC3 Directory full path for an XP.

            What I want to do is something like :

             

            string ^FilePath = GetCC3MainDirectory() + "\newfolder\";

            saveFileDialog1.InitialDirectory = FilePath;

             

            Is there a command like GetCC3MainDirectory ?

             

            I saw a RSC_GetOurPath int but didn't managed to use it.

            RscAdr(RSC_GetOurPath) doesn't work...

             

            By the way, what does RSC mean ? I guess it's not the Rotten Squeezed Cucumber my frustration made it :)

             

            Thanks,

            Joachim de Ravenbel

          • L. Lee Saunders
            Ah, I see we are going the C++/cli route! From: cc2-dev-l@yahoogroups.com [mailto:cc2-dev-l@yahoogroups.com] On Behalf Of Joachim de Ravenbel Sent: Friday,
            Message 5 of 5 , Feb 24, 2012
            • 0 Attachment

              Ah, I see we are going the C++/cli route! 

               

              From: cc2-dev-l@yahoogroups.com [mailto:cc2-dev-l@yahoogroups.com] On Behalf Of Joachim de Ravenbel
              Sent: Friday, February 24, 2012 12:23 PM
              To: cc2-dev-l@yahoogroups.com
              Subject: Re: [cc2-dev-l] CC3 Directory

               

               

              Thanks a lot Peter and Larry !

               

              If someone's interested, here is the code part I used (and it works !)

               

              (...)

              char * MainPath = (char*)RscAdr(RSC(RSC_OurPath));

              String^ SPath = gcnew String(MainPath);

              SPath += "System";

              saveFileDialog1->InitialDirectory = SPath:

              (...)

               

              Joachim de Ravenbel

               

              ----- Original Message -----

              Sent: Thursday, February 23, 2012 8:34 PM

              Subject: Re: [cc2-dev-l] CC3 Directory

               

               

              The easiest is to use RSC_OurPath to get a pointer:

               

              char *pMyPath = RscAdr(RSC(RSC_OurPath));

               

              Peter

               

              Från: cc2-dev-l@yahoogroups.com [mailto:cc2-dev-l@yahoogroups.com] För L. Lee Saunders
              Skickat: den 23 februari 2012 16:45
              Till: cc2-dev-l@yahoogroups.com
              Ämne: RE: [cc2-dev-l] CC3 Directory

               

              From the FCW32.TXT file:

               

              ;               ===============================================================

              ;               GetOurPath - Get path to FCW32.EXE into RSC_OurPath

              ;               ---------------------------------------------------------------

              ;               On exit:

              ;                               RSC_OurPath contains our load path ending with \ NULL

              ;               ===============================================================

               

              Is that what you are looking for?

               

              BTW, RSC_OurPath  is defined in the file _RSCID.H
                                  #define RSC_OurPath                         3059     // path to FCW32.EXE (ends with \)

               

              Since I do not see a “glue routine” that wraps a C call around a ASM call to GetOurPath, you will have to write your own. 

               

              Or, if Peter reads this, he may be able to help you do it.  I’ve not written a Glue routine in maybe 10 years, sorry.

               

              Lee

               

              From: cc2-dev-l@yahoogroups.com [mailto:cc2-dev-l@yahoogroups.com] On Behalf Of Joachim de Ravenbel
              Sent: Thursday, February 23, 2012 8:34 AM
              To: cc2-dev-l@yahoogroups.com
              Subject: [cc2-dev-l] CC3 Directory

               

              Help please!

               

              I need to get the CC3 Directory full path for an XP.

              What I want to do is something like :

               

              string ^FilePath = GetCC3MainDirectory() + "\newfolder\";

              saveFileDialog1.InitialDirectory = FilePath;

               

              Is there a command like GetCC3MainDirectory ?

               

              I saw a RSC_GetOurPath int but didn't managed to use it.

              RscAdr(RSC_GetOurPath) doesn't work...

               

              By the way, what does RSC mean ? I guess it's not the Rotten Squeezed Cucumber my frustration made it :)

               

              Thanks,

              Joachim de Ravenbel

            Your message has been successfully submitted and would be delivered to recipients shortly.