Announcement

Collapse
No announcement yet.

Is it possible to manage StreetDeck from a .Net project

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

  • Is it possible to manage StreetDeck from a .Net project

    Hi All,

    How can i start/run an instance of StreetDeck from a C# (.Net) project?

    **Not start StreetDeck as another program** but make an instance of it from a C# class and manipulate it.

    For example: i want to create a windows app with 2 buttons:
    - 1 button to run StreetDeck from my Application
    - 1 button to close StreetDeck from my application.

    Please let me know...
    i am going crazy trying to do this...

  • #2
    Do they have an sdk? You will need to reference an assembly in your project. Sorry, not too familiar with SD.
    2006 Lancer Evolution IX MR In-Dash PC Project - WIP

    Planning:
    [----------] 100%
    Purchasing:
    [----------] 90%
    Installation/Fab/Assembly (Revised v2):
    [----------] 90%

    Comment


    • #3
      The SDK is mostly for SD addins.

      You CAN add a reference to StreetDeck.exe in your .Net project but i can't instance StreetDeck from the application, and i want to be able to handle some features of SD from my own C# application...

      This is a good reference but it is not working for me:
      http://www.mp3car.com/wiki/index.php...er_Application

      If anybody knows how to do this... please let me know

      Comment


      • #4
        OK, for this you do not want to add sd as a reference in your project because it is not a .net assembly and can't be directly referenced. You will need to instantiate a com object as an interface to an instance of SD. You should do this AFTER opening the window as a child in your app. To open as a child in your app use the command in the link provided.
        2006 Lancer Evolution IX MR In-Dash PC Project - WIP

        Planning:
        [----------] 100%
        Purchasing:
        [----------] 90%
        Installation/Fab/Assembly (Revised v2):
        [----------] 90%

        Comment


        • #5
          OK yes, you are right! and thanks for your response.
          I can open SD as a child as indicated in the link (streedeck -embed...)
          But my problem is when I try to do this:

          C# Example:
          StreetDeck.StreetDeckApp app;
          app = new StreetDeck.StreetDeckAppClass();


          It always show the same error:
          Retrieving the COM class factory for component with CLSID {FB7DFEC0-05D1-4853-BA41-3D2FE15295FE} failed due to the following error: 80040154.

          I have read several articles/forums related to this error and i can't fix it. I have used different tools (www.sysinternals.com) to find out what exactly is happening and i can't fix this error.

          Any idea????
          Thanks for your help!

          Comment


          • #6
            Hmm, have you run SD outside of your test app so that it's included COM interface is registered?

            It looks like it is looking for the correct GUID but can't find it. Could be unregistered or the component you do have registered has a different GUID. Did you look at their entire C# example solution?
            2006 Lancer Evolution IX MR In-Dash PC Project - WIP

            Planning:
            [----------] 100%
            Purchasing:
            [----------] 90%
            Installation/Fab/Assembly (Revised v2):
            [----------] 90%

            Comment


            • #7
              Yes i already ran SD outside my test app.
              And if I check that key using RegEdit, it doesnt even exists....
              I tried to Register SD using regsvr32 and it doesn't help.
              I also tried with "StreetDeck -RegServer" from the command line and it doesn't work neither.

              And i did check the entire C# example but they are assuming that StretDeck is installed using that exact registry key ({FB7DFEC0-05D1-4853-BA41-3D2FE15295FE})...

              It is exactly here where i get the problem:
              app = new StreetDeckAppClass();

              any other idea??????
              Please let me know. And once again, thx for your help!

              Comment


              • #8
                Does somebody has a working example?????

                Comment


                • #9
                  My current working environment is:
                  Windows XP - Service Pack2
                  Visual Studio 2005 - v.8.0.50727
                  StreetDeck version= 1.0.6.3

                  Comment


                  • #10
                    If that reg key doesn't exist it is probably the main issue. Isn't that supposed to be created when SD runs once and registers its interface?? I am not certain as I haven't used COM in years...but it should be there at least according to those instructions.
                    2006 Lancer Evolution IX MR In-Dash PC Project - WIP

                    Planning:
                    [----------] 100%
                    Purchasing:
                    [----------] 90%
                    Installation/Fab/Assembly (Revised v2):
                    [----------] 90%

                    Comment


                    • #11
                      Any SD personnel here to resolve the fact that this guy has SD installed but doesn't have the documented reg key??
                      2006 Lancer Evolution IX MR In-Dash PC Project - WIP

                      Planning:
                      [----------] 100%
                      Purchasing:
                      [----------] 90%
                      Installation/Fab/Assembly (Revised v2):
                      [----------] 90%

                      Comment

                      Working...
                      X