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.
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
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.
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."
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!
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."
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![]()
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.![]()
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."
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.
Bookmarks