The MP3car.com Store The MP3car.com Store    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-25-2007, 02:05 PM   #1
Jaf
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...
Jaf is offline   Reply With Quote
Advertisement
 
Advertisement
Advertisement Sponsored links

Old 10-09-2007, 05:24 PM   #2
Maximum Bitrate
 
galvitron's Avatar
 
Join Date: Mar 2007
Location: Socal
Posts: 610
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:
[----------] 100%
Installation/Fab/Assembly (Revised):
[----------] 80%

galvitron is offline   Reply With Quote
Old 10-09-2007, 05:46 PM   #3
Jaf
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
Jaf is offline   Reply With Quote
Old 10-09-2007, 06:22 PM   #4
Maximum Bitrate
 
galvitron's Avatar
 
Join Date: Mar 2007
Location: Socal
Posts: 610
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:
[----------] 100%
Installation/Fab/Assembly (Revised):
[----------] 80%

galvitron is offline   Reply With Quote
Old 10-09-2007, 08:04 PM   #5
Jaf
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!
Jaf is offline   Reply With Quote
Old 10-09-2007, 10:03 PM   #6
Maximum Bitrate
 
galvitron's Avatar
 
Join Date: Mar 2007
Location: Socal
Posts: 610
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:
[----------] 100%
Installation/Fab/Assembly (Revised):
[----------] 80%

galvitron is offline   Reply With Quote
Old 10-10-2007, 03:21 PM   #7
Jaf
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!
Jaf is offline   Reply With Quote
Old 10-10-2007, 04:51 PM   #8
Jaf
Newbie
 
Join Date: Sep 2007
Posts: 26
Does somebody has a working example?????
Jaf is offline   Reply With Quote
Old 10-10-2007, 05:49 PM   #9
Jaf
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
Jaf is offline   Reply With Quote
Old 10-10-2007, 06:51 PM   #10
Maximum Bitrate
 
galvitron's Avatar
 
Join Date: Mar 2007
Location: Socal
Posts: 610
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:
[----------] 100%
Installation/Fab/Assembly (Revised):
[----------] 80%

galvitron is offline   Reply With Quote
Old 10-13-2007, 04:33 AM   #11
Maximum Bitrate
 
galvitron's Avatar
 
Join Date: Mar 2007
Location: Socal
Posts: 610
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:
[----------] 100%
Installation/Fab/Assembly (Revised):
[----------] 80%

galvitron is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

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


All times are GMT -5. The time now is 04:58 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics