Shoutbox

[VB] DLL rename problem - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: [VB] DLL rename problem (/showthread.php?tid=27839)

[VB] DLL rename problem by DJmorphine on 06-28-2004 at 06:36 PM

ok i created a plugin,  Project Name: "UniCoder" and the object is called "plug"
so far so good, i compile it to the original filename(MPPluginVB.dll) put it in the plugin dir registered the dll with:

install.reg:
REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Patchou\MsgPlus2\RegisteredPlugins]
"UniCoder By DJmorphine"="UniCode.plug"

rebooted msn
plugin works fine, BUT when i change the filename to UniCoder.dll OR UniDJmorphine.dll or just a name.  it doenst load any more.

Do i have to change something else somewhere??


RE: [VB] DLL rename problem by Mike on 06-28-2004 at 06:42 PM

I think because it needs you to register it again...
Try registering it again...


RE: [VB] DLL rename problem by Choli on 06-28-2004 at 06:46 PM

quote:
Originally posted by Mike2
I think because it needs you to register it again...
Try registering it again...
yep, that may be the problem. When you compile a DLL, VB registers it for you, but if you change its name maybe you need to register it again:

regsvr32 dll_name.dll
RE: [VB] DLL rename problem by DJmorphine on 06-28-2004 at 06:48 PM

i dont know why that should help because the project name and the object name stay's the same.  but i tried it... and still nothing


RE: [VB] DLL rename problem by Choli on 06-28-2004 at 06:53 PM

then try to compile the with the final name you're going to use ;)

Also, do this: close messenger, unregister the dll (with regsvr32 /u dllname.dll), register it again and start messenger.

Ah, btw, and make sure plus loads the dll in your account (plus > preferences > plugins > you dll should be checked) Maybe your dll did something dodgy and the plus' protection removed it from the list of dlls to load.


RE: [VB] DLL rename problem by DJmorphine on 06-28-2004 at 07:33 PM

yeah, problem was the saving thingie,... thangs allot!!!