Results 1 to 9 of 9

Thread: RoadRunner SDK Problem - .Net 2005

  1. #1
    Variable Bitrate
    Join Date
    Aug 2006
    Posts
    257

    RoadRunner SDK Problem - .Net 2005

    Hi all,

    I was going to have a play around with the roadrunner sdk but the .net sample errors on upgrade, I have managed to sort out all but one of them.
    I'm getting:

    "'AddressOf' expression cannot be converted to 'Integer' because 'Integer' is not a delegate type" - Line 77

    I think I have to add 'Private Declare Function SetWindowLong'........ ?
    Bit stuck here as I haven't fully got my head around all this yet.

    Cheers

  2. #2
    Newbie
    Join Date
    Aug 2006
    Location
    Los Angeles (Woodland Hills), CA
    Posts
    13
    You don't have AddressOf operator in VB.Net anymore... PLus it is a bad idea to try and convert old vb6 code to .net. It'll just completely mess up everything.

  3. #3
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    If you want to SEND commands to RR, you can just use the EXEC.EXE provided with RR. To receive commands, you'd have to implement the Window Procedure. Still if you ask nicely, I can make you a simple COM object to send/receive data to/from RR, that should be easy enough to use in .NET or anything else. (I honestly thought that the .NET example was in working condition -- apparently not, and I'm not the author)
    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."

  4. #4
    Variable Bitrate
    Join Date
    Aug 2006
    Posts
    257
    Thanks Guino,

    All I need to be able to do is find out if RR is currently playing anything (so that I know weather to pause, and if to resume when finished)
    I understand that I can easily pause using EXEC.exe but if there isn't a way to determine if nothing was playing in the first place my plugin will then start something when it exits.
    Hope that makes sense!

  5. #5
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    If you use: "EXEC.exe PAUSE" it will never play if it was already paused, as "EXEC.exe RESUME" will never pause if it was already playing. I'll build the COM control regardless.
    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
    Variable Bitrate
    Join Date
    Aug 2006
    Posts
    257
    Aha! I was thinking exec.exe PLAY to start music again - hence I thought I would play even if not playing before!
    Thanks for the pointer

  7. #7
    Low Bitrate
    Join Date
    Aug 2006
    Posts
    66
    What about to add a DDE server to RR? It would be very easy (and resourceless) to pass commands to RR, without using an external exe or embendding a com object into your project. Just an idea.

  8. #8
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    DDE is too buggy for my taste.. it doesn't work in lots of machines (for no apparent reason), then it gets messages doubled and all sorts of little issues like that.. but I guess it could be added.. The COM object I'm thinking of, would be just a DLL file created with "CreateObject".. very simple and accessible from anything without the trouble of having to insert it into a form or anything like that. However, the API method (as in the SDK example) still is the most reliable and most resource-efficient method.
    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."

  9. #9
    Low Bitrate
    Join Date
    Aug 2006
    Posts
    66
    Thanks, i will have a look into it. Actually i would like MORE the DLL solution, but that's why i'm a programmer, i just guessed a DDE solution would be more easly for who is looking for a fast link without invest to much time into library declarations or so..
    Well atm i don't have so much time outside programming "for my job", and im glad to you for your time investing into this.
    Cheers.

Similar Threads

  1. Developing Touchscreen SDK -- need feedback!
    By kevlar in forum Software & Software Development
    Replies: 3
    Last Post: 07-14-2005, 05:55 PM
  2. SDK command request
    By tolisn in forum FreeDrive
    Replies: 6
    Last Post: 04-17-2005, 12:43 PM
  3. roadrunner problem
    By i3igmind in forum RR Bug Tracker
    Replies: 9
    Last Post: 03-19-2005, 04:03 PM
  4. Problem with Rikaline and MS S&T 2005
    By iamConceyted in forum GPS
    Replies: 0
    Last Post: 02-24-2005, 10:49 AM
  5. Replies: 4
    Last Post: 01-01-2005, 04:19 PM

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
  •