Announcement

Collapse
No announcement yet.

App.Path not work

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • App.Path not work

    i have truble in vb6 code
    i have my converted plugin into F:\Programmi\RideRunner\Plugins\silabs folder
    if i call "msgbox App.Path" riderunner give me "f:\document and setting\spidermunz\desktop"

    i can't load my plugin because App.Path return to me a wrong folder

  • #2
    Are you sure your using vb6?

    In vb6 App.Path=path here exe was executed from. vb.net is different and sounds more like what your describing.
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

    Comment


    • #3
      yes i using vb6 not vb.net

      Comment


      • #4
        ha i knew i wasnt the only person with this issue! I uninstalled/reinstalled vb suite to get app.path to work correctly.
        mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
        Follow Me on Twitter or Facebook
        Live mp3Car Facebook Chat

        Comment


        • #5
          Very odd...Mine has always worked correctly
          RideRunner...The #1 FE, PERIOD.

          Current Project: DFXVoice [v1.0 Released]
          Next in line: RRMedia v2.0

          DFX 5.1.1 Skin
          Appstore Link

          My RideRunner Plugins
          RRMedia
          RRExtended
          DFXVoice

          "There are no bugs - only undocumented features."

          Comment


          • #6
            Originally posted by Sonicxtacy02 View Post
            ha i knew i wasnt the only person with this issue! I uninstalled/reinstalled vb suite to get app.path to work correctly.
            ok i try

            Comment


            • #7
              It does seem flakey with RRPlugins though. ie whilst when it first starts it will actually contain the path the app (plugin is in) it will later on pick up either RR' path, the skin path or some other path, that is why I stick it in a variable when it first starts now.

              Comment


              • #8
                Well....as I've said, I've never had a problem with the app.path thing..

                And with the upcomming plugin std change, plugins won't be storing any data in their folder (like they are not supposed to accod to win stds).....TBC
                RideRunner...The #1 FE, PERIOD.

                Current Project: DFXVoice [v1.0 Released]
                Next in line: RRMedia v2.0

                DFX 5.1.1 Skin
                Appstore Link

                My RideRunner Plugins
                RRMedia
                RRExtended
                DFXVoice

                "There are no bugs - only undocumented features."

                Comment


                • #9
                  never had a app.path issue myself, but as mentioned above, it does reflect the location where the application is running from, NOT where the EXE is saved.
                  Ride Runner RR's Myspace

                  "Being happy is not about having what you want, it's about wanting what you have."
                  "The best things in life are always free - but that doesn't mean money can't buy you good things."

                  Comment


                  • #10
                    i have solved the app.path problem
                    but now i have this new problem:

                    i have thios in my code
                    Public Declare Sub SetMute Lib "usbsilabs.dll" (ByVal mute As Boolean)

                    the plugin is running into riderunner but don't load the ussbsilabsdll
                    some other command of the same plugin works perfectly

                    Comment


                    • #11
                      And what is the assoc code that would call that sub cmd?
                      RideRunner...The #1 FE, PERIOD.

                      Current Project: DFXVoice [v1.0 Released]
                      Next in line: RRMedia v2.0

                      DFX 5.1.1 Skin
                      Appstore Link

                      My RideRunner Plugins
                      RRMedia
                      RRExtended
                      DFXVoice

                      "There are no bugs - only undocumented features."

                      Comment


                      • #12
                        Public Function ProcessCommand(CMD As String, frm As Object) As Integer
                        Dim rrSDK As Object
                        Set rrSDK = CreateObject("RideRunner.SDK")
                        Dim Index As Integer

                        Select Case LCase(CMD)
                        ....
                        Case "mutesilabs"
                        SetMute True
                        silabmute = True
                        ProcessCommand = 2 'Command completed

                        Case "unmutesilabs"
                        SetMute False
                        silabmute = False
                        ProcessCommand = 2 'Command completed
                        .....

                        Comment


                        • #13
                          That should work. IDK, try SetMute (False)

                          I do also see a BIG no no! Creating RR's object like that is not the way to do it, that would create a obj ref with every cmd that flows through your plugin, and is a waste of CPU that isn't doing anything if not executing any of your cmds.

                          your better off moving the "Dim rrSDK As Object" line to the top of the RRExtention class and then move the "Set rrSDK = CreateObject("RideRunner.SDK")" line inside the RRExtention Class_Initialize function.

                          This way your only creating it once when the plugin is loaded.
                          RideRunner...The #1 FE, PERIOD.

                          Current Project: DFXVoice [v1.0 Released]
                          Next in line: RRMedia v2.0

                          DFX 5.1.1 Skin
                          Appstore Link

                          My RideRunner Plugins
                          RRMedia
                          RRExtended
                          DFXVoice

                          "There are no bugs - only undocumented features."

                          Comment

                          Working...
                          X