在64位系统上不能安装Matlab notebook的解决方案
过程分解
第一步:安装好matlab(附:Matalab R2015a界面)
第二步:在matlab中执行命令 >>notebook -setup ,完成安装notebook
第三步: 输入命令>>notebook ,启动notebook,弹出如下问题界面(64bit系统安装时)
解决方法:替换下面红色方框内的这段内容
解决方案(拷贝覆盖即可):
添加PtrSafe属性,将:
Private Declare Function WinHelp Lib "USER32.DLL" Alias "WinHelpA" (ByVal hWnd As Integer, ByVal lpHelpFile _
As String, ByVal wCmd As Integer, ByVal dwData As String) As Integer
Private Declare Function GetActiveWindow Lib "USER32.DLL" () As Integer
改为:
Private Declare PtrSafe Function WinHelp Lib "USER32.DLL" Alias "WinHelpA" (ByVal hWnd As Integer, ByVal lpHelpFile _
As String, ByVal wCmd As Integer, ByVal dwData As String) As Integer
Private Declare PtrSafe Function GetActiveWindow Lib "USER32.DLL" () As Integer
在matlab中执行命令 >>notebook ,启动notebook 即可.