INTERACT FORUM

Windows => Plug-in Development => Topic started by: lucian.jp on December 29, 2008, 11:35:27 am

Title: [Fixed] Plugin compatibility MC12 to MC13 problem
Post by: lucian.jp on December 29, 2008, 11:35:27 am
Hi,

I have a plugin working pretty well in MC12. I used the VisualStudio2005 Template to create my plugin. I upgraded to MC13 and I changed the install path in the Inno Setup Compiler to tager MC13 folder. My plugin appear in Interface Plugin of MC13, but the layout isn't showing.

Here's what I have in MC12 :

(http://content.screencast.com/users/Lucian.jp/folders/Jing/media/c4fe2630-2d61-4d94-9034-f78039dbd42e/MC12.png)

With MC13 :
(http://content.screencast.com/users/Lucian.jp/folders/Jing/media/a3d03588-049a-4d37-a923-396ec86cb715/MC13.png)

Any help would be gladly appreciated.

EDIT:

OK I found it, in the template there was code to check version and deactivate the plugin if wrong version. The if wasn't done correctly.

Original :
Code: [Select]
// Check the version of Media Center.
// Don't support C# Plugins with versions lower than 11.1
// Certain Events are not supported with older versions
private Boolean checkVersion()
{
IMJVersionAutomation version = mcRef.GetVersion();

if (version.Major >= 12 && version.Minor >= 0 && version.Build >= 213)
{
return true;
}

setVisibility(Panel, false);

Panel.Visible = true;
txtUserInfo.Visible = true;

addUserInfoText("AutoEQ only works for MC 12.0.213 and up");

return false;
}

Modification that made it work :
Code: [Select]
private Boolean checkVersion()
{
IMJVersionAutomation version = mcRef.GetVersion();

if (version.Major >= 12 && (version.Major != 12 || version.Minor != 0 || version.Build >= 213))
return true;

setVisibility(Panel, false);

Panel.Visible = true;
txtUserInfo.Visible = true;

addUserInfoText("AutoEQ only works for MC 12.0.213 and up");

return false;
}

Thx
--
JP