INTERACT FORUM

Windows => Plug-in Development => Topic started by: Nikolay on August 06, 2002, 12:39:16 pm

Title: MJ Automation Update
Post by: Nikolay on August 06, 2002, 12:39:16 pm
MJAutomation interface has been updated.  Changes are:

- Added to new function to MJAutomation to create and modify playlists.
- Added new parameters to MJ command line interface.
- Sort function in MJAutomation was not working with playlists.
- Added ability to retrieve Top Hits and Recently Played playlists through MJAutomation
Title: RE:MJ Automation Update
Post by: WickedEwok on August 07, 2002, 03:23:15 am
Hi Nickolay,
 I can't wait to start playing with these new features.

 Unfortunately, I'm having a problem, and I can't seem to pin it down. I've copied the new Media Jukebox.tlb file over the old one in my development area (I'm working on the new WebRemote in C/C|PLS||PLS|), but I can't seem to get it to show me the new functions. Is their some step I need to take to make Visual C|PLS||PLS| to 'reimport' the functions? I know someone else had a similar problem before, but I just can't fix this. I've looked in the tlb file, and I see text for some of the new commands, so I'm assuming they're there and the compiler can't see them.

  Ugh.

  Thanks Nickolay,
  -Ben
Title: RE:MJ Automation Update
Post by: Nikolay on August 07, 2002, 05:37:45 am
WickedEwok,

I just checked the TLB file. It's the latest version.  Make sure that you copy file to the right location.  

Web Remote uses import directive to get info from tlb:
#import "..\..\Media Jukebox\Debug\Media Jukebox.tlb"  no_namespace, named_guids

Nikolay
Title: RE:MJ Automation Update
Post by: WickedEwok on August 07, 2002, 05:53:26 am
I'm using

#import "Media Jukebox.tlb" no_namespace, named_guids

And it complains if I remove the copy from my directory, so I know it's going against the right one. And I've looked in the tlb file, and I see it has your new stuff.

For some reason, the compiler isn't picking up the changes. I am totally new to COM and this tlb stuff, so I'm a bit mystified. I've cleaned, removed the _p and _i files, rebuilt. Nothing. I still can't "see" the new methods in IMJPlaylistsAutomationPtr.

I was hoping there was some "quick fix" that maybe you or another COM expert could help me with. If not, darn.

-Ben
Title: RE:MJ Automation Update
Post by: WickedEwok on August 07, 2002, 06:11:34 am
It's me again.

I figured it out. I had to delete the ncb file, as it controls intellisense. Rebuilt, and now I can see the new things.

Sorry about my confusion.
Title: RE:MJ Automation Update
Post by: Nikolay on August 07, 2002, 07:07:18 am
No problem.  Development environment is getting more and more complicated with every new versions.  It's becoming very hard to keep up with everything it does; especially when something does not work as it should.

Nikolay