foo_listeningto, NowPlaying plugin |
![]() ![]() |
foo_listeningto, NowPlaying plugin |
Oct 7 2007, 01:18
Post
#1
|
|
|
Group: Members Posts: 15 Joined: 3-September 05 Member No.: 24291 |
foo_listeningto_v0.1.3_beta_src_bin.7z
Plugin sends NowPlaying information to Miranda IM. Only works with ListeningTo Miranda IM plugin. Works best with ListeningTo v0.1.1.8. To receive information in Miranda, enable Options->Status->Listening info->Players->Other players. Compiled against foobar2000 SDK v0.9.4. Options page contains only Enable/Disable checkbox and custom title formatting field (not functional at the moment). This post has been edited by LRN: Oct 9 2007, 04:49 |
|
|
|
Oct 7 2007, 11:30
Post
#2
|
|
![]() troll / multiple accounts Group: Banned Posts: 98 Joined: 22-June 05 Member No.: 22890 |
Impossible to load plugin: error detected by foobar2000 which prevents plugin to work.
|
|
|
|
Oct 7 2007, 11:36
Post
#3
|
|
|
Group: Members Posts: 15 Joined: 3-September 05 Member No.: 24291 |
Please, tell me exact error message. And foobar2000 version (if it is not 0.9.4.4).
|
|
|
|
Oct 7 2007, 14:24
Post
#4
|
|
![]() troll / multiple accounts Group: Banned Posts: 98 Joined: 22-June 05 Member No.: 22890 |
QUOTE Failed to load DLL: foo_listeningto.dll Reason: Cette application n'a pas pu démarrer car la configuration de l'application est incorrecte. Réinstaller l'application pourrait résoudre ce problème. Translation: QUOTE Failed to load DLL: foo_listeningto.dll Reason: this app can't start because application configuration is incorrect. Reinstall application might solve this problem. I'm using 0.9.4.4, winxp SP2 up to date. |
|
|
|
Oct 7 2007, 14:41
Post
#5
|
|
|
Group: Members Posts: 15 Joined: 3-September 05 Member No.: 24291 |
Ah, this is, probably, because you don't have some fu***n MSVC dlls on your PC. Must be MSVCR80.dll. Try this
|
|
|
|
Oct 8 2007, 18:50
Post
#6
|
|
![]() troll / multiple accounts Group: Banned Posts: 98 Joined: 22-June 05 Member No.: 22890 |
After installing what you said, it works.
Just for info,after installation, I had no MSVCR80.dll in system32 so it depends on another dll. ps: what are the differences between your plugin and foo_msn_alt ? |
|
|
|
Oct 8 2007, 19:02
Post
#7
|
|
|
Group: Members Posts: 15 Joined: 3-September 05 Member No.: 24291 |
foo_listeningto is for Miranda IM, while foo_msn_alt is, as i presume, for MSN Messenger. Other than that they are pretty similar, i think.
|
|
|
|
Oct 8 2007, 20:13
Post
#8
|
|
![]() Group: Members (Donating) Posts: 779 Joined: 25-September 03 From: Umeå, Sweden Member No.: 9001 |
Just for info,after installation, I had no MSVCR80.dll in system32 so it depends on another dll. That's because the DLLs are nowadays in the WinSxS directory, in neatly named side-by-side folders. This conveniently avoids the DLL hell. -------------------- Zao shang yong zao nong zao rang zao ren zao.
To, early in the morning, use a chisel to build a bathtub makes impatient people hot-tempered. |
|
|
|
Oct 8 2007, 20:24
Post
#9
|
|
![]() Group: Members Posts: 193 Joined: 30-September 01 From: C-ville, VA Member No.: 83 |
Ah, this is, probably, because you don't have some fu***n MSVC dlls on your PC. Must be MSVCR80.dll. Try this It might be easier for users if you utilize static linking of the .dll at runtime, rather than dynamic linking when you compile your plugin. This post has been edited by jarsonic: Oct 8 2007, 20:24 |
|
|
|
Oct 8 2007, 21:15
Post
#10
|
|
![]() Group: FB2K Moderator (Donating) Posts: 4224 Joined: 24-February 03 Member No.: 5153 |
Your plugin contains a serious bug in the part that extracts the filename from a track's path.
Offending code (DO NOT COPY THIS): CODE char *filename = (char*)strrchr(p_track->get_path(),'\\'); if (filename == NULL) filename = (char*)strrchr(p_track->get_path(),'/'); // ***UNSAFE*** removing const modifier if (filename == NULL) filename = ""; else { filename++; char *tmp2 = strrchr(filename,'.'); if (tmp2 != NULL) tmp2[0] = 0; // ***BUG*** write access to constant string } Use pfc::string_filename to extract the filename instead: CODE pfc::string_filename filename(p_track->get_path()); Please fix your plugin as soon as possible, or we will have to ban it for corrupting the core's data structures. -------------------- http://foosion.foobar2000.org/ - my components for foobar2000
|
|
|
|
Oct 8 2007, 23:16
Post
#11
|
|
![]() troll / multiple accounts Group: Banned Posts: 98 Joined: 22-June 05 Member No.: 22890 |
foo_listeningto is for Miranda IM, while foo_msn_alt is, as i presume, for MSN Messenger. Other than that they are pretty similar, i think. But like Pescuma's plugin allows to make believe Miranda IM is WLM, foo_msn_alt works too. But if I can, I prefer to use a plugin especially for Miranda IM, so I'll use yours. You're a bit rude, foosion... ps: thanks Zao for information. |
|
|
|
Oct 8 2007, 23:40
Post
#12
|
|
|
Group: Members Posts: 15 Joined: 3-September 05 Member No.: 24291 |
QUOTE This conveniently avoids the DLL hell. Yeah, maybe they did it AT LAST! QUOTE It might be easier for users if you utilize static linking of the .dll at runtime, rather than dynamic linking when you compile your plugin. I'll try.QUOTE Use pfc::string_filename to extract the filename instead: Thanks. ----EDIT Updated link in the first post to version 0.1.2. Compiles with /MT (that is right, jarsonic?) Extracts filename via pfc::string_filename class. I hope i did not messed up with object destruction. As you can see, i am not really fond of objects... QUOTE for corrupting the core's data structures. Oops. Looks like i forgot why i created a strdup from ptrack->get_path() ----EDIT Updated link in the first post to version 0.1.3. *sigh* Looks like i will never learn to write bug-free code. This time it is miscalculated estimated buffer length. This post has been edited by LRN: Oct 9 2007, 04:49 |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th June 2013 - 14:34 |