![]() |
#1 |
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. |
![]() |
![]() |
![]() |
#2 |
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 |
![]() |
![]() |
![]() |
#3 |
Senior Member
|
Problem Solved
![]() found a thread witch tells you how to do it, the answer is between the last posts and it has a PoiterToString function. ![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
|
Stupid
Haha, stupid me i forgot the link to the thread here it goes: LINK TO THE THREAD .
|
![]() |
![]() |
![]() |
#5 |
Member
|
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 |
![]() |
![]() |
![]() |
#6 |
Senior Member
|
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. |
![]() |
![]() |
![]() |
#7 |
Member
|
Ok I figured it out. I just used WinampCOM and got the full path name from it.
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|