Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Is it possible to manage StreetDeck from a .Net project

  1. #1
    Jaf
    Jaf is offline
    Newbie
    Join Date
    Sep 2007
    Posts
    26

    Unhappy 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. #2
    Maximum Bitrate galvitron's Avatar
    Join Date
    Mar 2007
    Location
    Socal
    Posts
    719
    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%


  3. #3
    Jaf
    Jaf is offline
    Newbie
    Join Date
    Sep 2007
    Posts
    26

    Question

    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

  4. #4
    Maximum Bitrate galvitron's Avatar
    Join Date
    Mar 2007
    Location
    Socal
    Posts
    719
    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%


  5. #5
    Jaf
    Jaf is offline
    Newbie
    Join Date
    Sep 2007
    Posts
    26
    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!

  6. #6
    Maximum Bitrate galvitron's Avatar
    Join Date
    Mar 2007
    Location
    Socal
    Posts
    719
    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%


  7. #7
    Jaf
    Jaf is offline
    Newbie
    Join Date
    Sep 2007
    Posts
    26
    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!

  8. #8
    Jaf
    Jaf is offline
    Newbie
    Join Date
    Sep 2007
    Posts
    26
    Does somebody has a working example?????

  9. #9
    Jaf
    Jaf is offline
    Newbie
    Join Date
    Sep 2007
    Posts
    26
    My current working environment is:
    Windows XP - Service Pack2
    Visual Studio 2005 - v.8.0.50727
    StreetDeck version= 1.0.6.3

  10. #10
    Maximum Bitrate galvitron's Avatar
    Join Date
    Mar 2007
    Location
    Socal
    Posts
    719
    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%


Page 1 of 2 12 LastLast

Similar Threads

  1. .net or not .net
    By lostreception in forum Software & Software Development
    Replies: 11
    Last Post: 10-13-2007, 05:05 AM
  2. Building a .Net Addin for StreetDeck
    By crabbdaddy in forum Wiki Discussion Threads
    Replies: 4
    Last Post: 09-13-2007, 10:47 AM
  3. Streetdeck!
    By TheLlama in forum Off Topic
    Replies: 37
    Last Post: 11-08-2006, 06:39 PM
  4. DIN compatable PC project
    By don-m in forum Worklogs
    Replies: 4
    Last Post: 10-23-2005, 11:11 AM
  5. Carputer as a comp sci final year project?
    By MikeHunt79 in forum General MP3Car Discussion
    Replies: 5
    Last Post: 06-23-2004, 10:19 AM

Bookmarks

Posting Permissions

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