C++: Help with Winamp plugin...

  • Thread starter Shannon
  • 4 comments
  • 659 views
15,799
I'm using a Winamp plugin that automatically reads the track off the screen and sends it to a URL on your server, where it can be displayed on a webpage. I have the plugin set up to write to a PHP file.

Anyway, I was listening to Metallica - Outlaw Torn S&M and realized that it didn't display the &M part of the song. Something about 'the & sign separates different variables'. As I know nothing of C++, would anyone be kind enough to go through the source for the plugin and find possibly make the plugin convert '&' to it's hexadecimal partner - %0026?

Thanks. :D
 
Just to let you all know, in a PHP Get line (?blah=bah&a=see) the & separates different variables. This is what he means.

I've had a look at the sourcecode to this plugin, and found out how to fix it, but it wont compile for me.. I'm probably doign something wrong.

Anyway, for some reason the part to replace the & and ? signs are commented out.. You can find this a little ways down in gen_sender.cpp - I knwo nothing about C++, so i couldnt figure out why i was getting errors trying to compile..

If anyone could help, Shannon (and i) would appreciate it!

EDIT: Oh, and i found an outputted file with all the errors and stuff in it.. I don't really understand a whole lot of it, so i uploaded it for you smart C++ people to figure out..

http://tehacidx.bladestorm.net/misc/Gen_Sender.html

Thanks guys.
 
OK I DOnt Know Much ABout C++ BUt If Your Going To Use Copiled Source For A While _ALWAYS_ Do A Relese Compile
(build->set active configuration) It Decreases the Errors By A lot

but anyways this is the output i got when i compiled it

Code:
Build Log

--------------------Configuration: gen_sender - Win32 Release--------------------

Command Lines
Creating temporary file "F:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSPBD.tmp" with contents
[
/nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /Fp"Release/gen_sender.pch" /YX /Fo"Release/" /Fd"Release/" /FD /c 
"F:\Documents and Settings\Administrator\Desktop\gen_sender-1.1\gen_sender.cpp"
]
Creating command line "cl.exe @F:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSPBD.tmp" 
Output Window
Compiling...
gen_sender.cpp
F:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxv_w32.h(119) : warning C4005: '_WIN32_WINDOWS' : macro redefinition
        F:\Documents and Settings\Administrator\Desktop\gen_sender-1.1\stdafx.h(22) : see previous definition of '_WIN32_WINDOWS'
F:\Documents and Settings\Administrator\Desktop\gen_sender-1.1\gen_sender.cpp(180) : error C2664: 'SetTimer' : cannot convert parameter 4 from 'void (struct HWND__ *,unsigned int,unsigned long,unsigned long)' to 'void (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,unsigned long)'
        None of the functions with this name in scope match the target type
Error executing cl.exe.



Results
gen_sender.obj - 1 error(s), 1 warning(s)
 
Is this thread dead? Well, if you havent figured this out yet Shannon, I may have fixed it. Unfortunately I can't compile stuff that requires the Windows API, so if you could compile and let me know if it works, that would be great.

(I attached the only file that I changed, just remove the .txt at the end of the filename. I had to do that so I could attach it to this post.)
 

Attachments

  • gen_sender.cpp.txt
    6.4 KB · Views: 13
Back