func sample
Last modified: 04 Nov 2001
download
Download Func Sample in Zip Format
about
The aim of this sample is to demonstrate how to do certain tasks using
GenWrapper and Visual Basic. This is in answer to questions I have been asked.
The functionality demonstrated by this sample includes:
-
Showing nonmodal forms (thanks to Manuel Reimer)
-
Getting the strings returned from WinAmp messages (for example, to get Playlist
entries)
Note: this project (Func.vbp) references GenWrapper.tlb, the type library that
comes with the GenWrapper distribution. When you open the project, Visual Basic
may not be able to find this file, so you may need to go into
Project->References and Browse for GenWrapper.tlb. To avoid this issue, I
recommend copying GenWrapper.tlb to your windows system directory; this way
Visual Basic will find it automatically.
What the plugin does is to display a nonmodal form which shows the playlist
index, title and filename of the currently playing song in WinAmp. To see this
in action:
-
Compile the project to Func.dll
-
Copy Func.dll to your WinAmp plugins folder
-
Copy GenWrapper.dll from your GenWrapper distribution to your WinAmp plugins
folder and rename it to gen_Func.Plugin.dll.
(These are the normal steps for setting up a GenWrapper style plugin.)