Old 8th January 2002, 21:20   #1
rockstar1971
Junior Member
 
Join Date: Oct 2001
Posts: 6
VB Plugin and getting the filename

I'm writing a simple plug-in for WinAmp using VB6 and GenWrapper. Here's what I want it to do:

I store my mp3s on a drive with this file structure:
E:\*Artist*\*Album*\*Track*.mp3
For each album I have that album's cover in the albums directory named "cover.jpg"

Every time WinAmp plays a new track from my collection I want to get the file path of the currently playing song so I can use it to grab the cover image and show it in a window.

I'm able to do everything I want except get the stinkin' file path.
WinAmp returns a memory pointer to this info. I'm a beginning VB Programmer and not to savvy with getting a string from a pointer.
I've been scouring this forum and I've found all sorts of stuff about using a "CopyMemory" function. I've tried that, but it crashed WinAmp every time.

I'm really frustrated by this. All I need is a simple path to the file and my plug-in will work but I can't get it.

If anyone out there has some code they want to share or any advice on how I can accomplish this seemingly simple task, please help.

Thanks.
rockstar1971 is offline   Reply With Quote
Old 2nd February 2002, 17:19   #2
nsg
Junior Member
 
Join Date: Jan 2002
Posts: 3
same problem

i also don't understand how to handle such a pointer.....

please help us!

nsg
nsg is offline   Reply With Quote
Old 13th March 2002, 12:44   #3
Pvs3
Senior Member
 
Pvs3's Avatar
 
Join Date: Jan 2002
Location: My Pc
Posts: 116
Send a message via ICQ to Pvs3 Send a message via Yahoo to Pvs3
Problem Solved

Yeah, i finaly solved the problem, well not me but i
found a thread witch tells you how to do it, the answer is between the last posts and it has a PoiterToString function.
Pvs3 is offline   Reply With Quote
Old 13th March 2002, 12:48   #4
Pvs3
Senior Member
 
Pvs3's Avatar
 
Join Date: Jan 2002
Location: My Pc
Posts: 116
Send a message via ICQ to Pvs3 Send a message via Yahoo to Pvs3
Stupid

Haha, stupid me i forgot the link to the thread here it goes: LINK TO THE THREAD .
Pvs3 is offline   Reply With Quote
Old 21st March 2002, 09:00   #5
wa21guy
Member
 
Join Date: Nov 2000
Location: Seattle, WA USA area
Posts: 87
Send a message via AIM to wa21guy Send a message via Yahoo to wa21guy
Ok, i got the function from the web site you pointed to but how do I implement this into my code? Do I have to use this with a plug-in or can it still get the path externally from WinAmp? I only know VB and am rather new to this so help me out. Thanks!!

Ethan
wa21guy is offline   Reply With Quote
Old 22nd March 2002, 14:44   #6
Pvs3
Senior Member
 
Pvs3's Avatar
 
Join Date: Jan 2002
Location: My Pc
Posts: 116
Send a message via ICQ to Pvs3 Send a message via Yahoo to Pvs3
Implementation

You have to write the function and the api declaration in a module.
The function has to be called from a plugin , it will return an empty string if you call it from an external program. I cannot demonstrate aything now, i'm at an ICafe.
Pvs3 is offline   Reply With Quote
Old 23rd March 2002, 12:34   #7
wa21guy
Member
 
Join Date: Nov 2000
Location: Seattle, WA USA area
Posts: 87
Send a message via AIM to wa21guy Send a message via Yahoo to wa21guy
Ok I figured it out. I just used WinampCOM and got the full path name from it.
wa21guy is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump