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 :
// 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 :
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