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

Thread: New to VB.net and C# need help to interface with SDK

  1. #1
    Maximum Bitrate ws6vert's Avatar
    Join Date
    Sep 2008
    Location
    Baton Rouge
    Posts
    351

    New to VB.net and C# need help to interface with SDK

    I'm working on writing a Console application that sends commandline parameters into RR. At the moment, I can output any command line paramters to the console, but I cannot figure out how to send these values into RR. I created a reference to RR in the project for both the VB and C# version, but I cannot seem to get even a simple command such as RRSDK.Execute("AUDIO") to occur. I have gone through the extension plugin examples, but cannot figure this out. Im using VS2008, and can do the application in VB.net or C#, whichever solution works best. Sorry for the noob question, I have never used any VB, C#, or C++ languages, only actionscript. Someone hold my hand and walk me through setting this up. Thanks

  2. #2
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,259
    im not sure what ur tying to do...
    c# is a great lang, and a RR PLUGIN can be made
    if you want something to stand on its own, and get data from RR, that can be done too
    its about making the COM reference
    you should look at my C# example supplied with the installer

    in the file RRExtension.cs
    you will see
    static public class SDK

    copy that class to your program
    dont forget the usings...
    using System.Reflection;
    using System.Runtime.InteropServices;

    if you're going to make a RR Extension in C#
    remember generate unique GUIDS, do NOT use the ones in the example

    /*
    * Remember every new plug in must have new GUIDS, there are 3:
    * The Interface class (IRRExtension.cs), the RRExtension class (RRExtsion.cs)
    * and in the properties for the ASSEMBLY (AssemblyInfo.cs)
    */
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  3. #3
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,259
    oh, a beginner, might want to just USE Vb6 and make a activex dll
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  4. #4
    Maximum Bitrate ws6vert's Avatar
    Join Date
    Sep 2008
    Location
    Baton Rouge
    Posts
    351
    Ok, so here is a better description of the idea:
    I was looking to further the integration of coverjuke into RR by writing a true plugin to interface the program with RR. At the moment, Coverjuke can communicate to other programs by passing command line arguments such as the folder path of the album or a list of the songs in the album. Since RR does not accept these command line arguments, I need to first write a simple Communicator EXE (console app), which I aptly plan to name CJRRCommunicator. This EXE will basically take the command line arguments sent to it, parse them into something usable and send it to RR (unlesss this can be done via dll by sending the command line args straight to RR?). The simple functionality at the moment is intended to read the folderpath of the selected album sent via command line, forward this path as a string into RR to either be played immediately or display a track list of the selected album.

    In conjunction, I also intend to write an extension dll to add a few commands,labels, and sliders, specifically dealing with embedding coverjuke, sending keystrokes to CJ, emulating transparency, playing the folder path, that kinda thing. Originally this was accomplished with AutoIT scripts, but lately they have been shoddy at accomplishing the task.

    I hope this clears up the idea, and will help you in helping me get this going. I agree that C# is a good language, and I am really leaning toward using it for this project as a good learning experience.

  5. #5
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    Quote Originally Posted by ws6vert View Post
    Ok, so here is a better description of the idea:
    I was looking to further the integration of coverjuke into RR by writing a true plugin to interface the program with RR. At the moment, Coverjuke can communicate to other programs by passing command line arguments such as the folder path of the album or a list of the songs in the album. Since RR does not accept these command line arguments, I need to first write a simple Communicator EXE (console app), which I aptly plan to name CJRRCommunicator. This EXE will basically take the command line arguments sent to it, parse them into something usable and send it to RR (unlesss this can be done via dll by sending the command line args straight to RR?). The simple functionality at the moment is intended to read the folderpath of the selected album sent via command line, forward this path as a string into RR to either be played immediately or display a track list of the selected album.

    In conjunction, I also intend to write an extension dll to add a few commands,labels, and sliders, specifically dealing with embedding coverjuke, sending keystrokes to CJ, emulating transparency, playing the folder path, that kinda thing. Originally this was accomplished with AutoIT scripts, but lately they have been shoddy at accomplishing the task.

    I hope this clears up the idea, and will help you in helping me get this going. I agree that C# is a good language, and I am really leaning toward using it for this project as a good learning experience.
    You can use EXEC.EXE to send commands to RR by command like.. you can execute standard commands, set custom labels and indicators, or better yet, set global variables -- I attached it to this post but it should come with RR. It is not the most desirable form of integration but works.

    i.e.:
    exec AUDIO
    exec SETVAR;MYLBL;Hello / Label code: "=$MYLBL$"
    Attached Files Attached Files
    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."

  6. #6
    Maximum Bitrate ws6vert's Avatar
    Join Date
    Sep 2008
    Location
    Baton Rouge
    Posts
    351
    Im not trying to pass commands to RR via cmdline, Im trying to use the SDK to send commands to RR. Maybe this will clear it up:

    CoverJuke ---> CJRRCommunicator ---> RideRunner

    I have the first part worked out. My CJRRCommunicator console App reads the parameters coverjuke sends via commandline. I cannot figure out how to then get CJRRCommunicator to output the parsed parameters into RR. Specifically I can't get the SDK set up to send any commands to RR. Does that make sense? My main question is how do I get the SDK set up in the console app to send messages to RR.

  7. #7
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    from CJRRComm it just depends on the language it uses ? you can execute EXEC.EXE <RRCOMMAND> (like I posted above) or you can use COM to create the RRSDK object and send commands that way (there's a FAQ on explaining that).
    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."

  8. #8
    Maximum Bitrate ws6vert's Avatar
    Join Date
    Sep 2008
    Location
    Baton Rouge
    Posts
    351
    Thanks for the help, I have finally got the SDK set up and working. I went away from a console app for the communicator and it is now a windows service app. Seems to work better for the need. Thanks again for the help on this side of the project.

  9. #9
    Maximum Bitrate ws6vert's Avatar
    Join Date
    Sep 2008
    Location
    Baton Rouge
    Posts
    351
    Quick question: Has anyone ever had to deal with a blank properties window in Visual Studio 2008? It is only doing it in C#, VB works fine, but I have been developing everything in C#. I have repaired and reinstalled multiple times as well as searched the internet, but no solutions have worked thus far. Any suggestions would be a god-send!

  10. #10
    Maximum Bitrate ws6vert's Avatar
    Join Date
    Sep 2008
    Location
    Baton Rouge
    Posts
    351
    Bump... I still have this problem only for C# in VS2008. Any suggestions are welcomed.

Page 1 of 2 12 LastLast

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
  •