发表于 2023-4-8 07:35:57

【插件】黑月编译器v4.1.7.7

<p></p>
<p><span style="color: #ff0000;"><strong>[被封七号升级记录]</strong></span><br /><strong><span style="color: #ff0000;">4.1.7.7版本</span></strong><br /><strong><span style="color: #ff0000;">本次更新特别鸣谢以下技术指导:</span></strong><br /><strong><span style="color: #ff0000;">黑月原作者: 云外归鸟</span></strong><br /><strong><span style="color: #ff0000;">黑月前升级负责人: 泪闯天涯(邓学彬)</span></strong><br /><strong><span style="color: #ff0000;">IT界的大神: 些似</span></strong><br /><strong><span style="color: #0000ff;">新版黑月的配置项目录为%ProgramData%\BlackMoon</span></strong><br /><strong><span style="color: #ff0000;">【更新内容】</span></strong><br />黑月编译器版本(4.1):<br />[+] 更换黑月工具设置界面。(系统必须安装有VC++2015运行库,黑月才能被易语言正常识别)<br />[!] 修复易语言5.92版本无法生成VC调用文件的问题。<br />[!] 增强生成VC调用文件功能,不需要保存当前源码也能正确生成。<br />[+] 新增 编译DLL将所有导出函数改为cdecl调用约定 的功能。<br />[!] 修复编译DLL时,符号表没有正确反映出调用约定而导致VC调用文件无法使用的问题。<br />[+] 新增生成事件功能<br />[-] 除去UPX压缩选项(可改用生成事件进行压缩)<br />[+] 新增特定备注功能<br />[!] 修改菜单&ldquo;黑月指定模式编译&rdquo;为&ldquo;黑月指定配置编译&rdquo;。<br />[!] 修复低概率出现选择黑月编译后黑月不处理的问题。(感谢 你凌哥i 协助测试)<br />[!] 编译前自动删除目标文件,避免某些情况下编译失败。<br />[+] 新增免配置直接调试静态库的功能(详情请更新后查看e\samples\黑月例程\调试静态库)。<br />[-] 废除旧版黑月的静态库调试方案,库文件名不再填写"静态库"。<br />[+] 新增黑月编译快捷键Alt+F7。<br />[+] 新增黑月编译调用接口,调用方法为<br />&nbsp; &nbsp;方法1.窗口消息<br />&nbsp; &nbsp;SendMessage(hEIdeWnd, BMM_COMPILE, lpstrFile, lpstrDescription);<br />&nbsp; &nbsp;&nbsp;&nbsp;hEIdeWnd为易语言IDE主窗口句柄<br />&nbsp; &nbsp;&nbsp;&nbsp;BMM_COMPILE常量值为WM_USER + 0x10,即1040(十进制);<br />&nbsp; &nbsp;&nbsp;&nbsp;lpstrFile为目标文件全路径(可为0);<br />&nbsp; &nbsp;&nbsp;&nbsp;lpstrDescription 为0;<br />&nbsp; &nbsp;下面为获取当前黑月版本的接口,返回值为文本指针,4.0以前的黑月版本返回NULL。<br />&nbsp; &nbsp;LPCSTR strVersion = (LPCSTR)SendMessage(hEIdeWnd, BMM_VERSION, 0, 0);<br />&nbsp; &nbsp;&nbsp;&nbsp;hEIdeWnd为易语言IDE主窗口句柄<br />&nbsp; &nbsp;&nbsp;&nbsp;BMM_VERSION常量值为WM_USER + 0x11,即1041(十进制);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<br />&nbsp; &nbsp;方法2.接口函数<br />&nbsp; &nbsp;typedef int (__stdcall*BMCOMPILE)(LPCSTR lpstrFile, LPCSTR lpstrDescription);<br />&nbsp; &nbsp;typedef LPCSTR (__stdcall*GETBMVERSION)();<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;HMODULE hBM = GetModuleHandle("blackmoon.fne");<br />&nbsp; &nbsp;if (hBM)<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp;&nbsp; &nbsp; BMCOMPILE pfnBMCompile = (BMCOMPILE)GetProcAddress(hBM, "BMCompile");<br />&nbsp; &nbsp;&nbsp; &nbsp; GETBMVERSION pfnGetBMVersion = (GETBMVERSION)GetProcAddress(hBM, "GetBMVersion");<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; if (pfnGetBMVersion)<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;::MessageBox(NULL, pfnGetBMVersion(), "当前黑月版本", MB_OK);<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; if (pfnBMCompile)<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;pfnBMCompile("C:\\test.exe", NULL); //调用黑月编译<br />&nbsp; &nbsp;&nbsp; &nbsp; }<br />&nbsp; &nbsp;}<br />[+] 新增自动递增次构建号的功能(仅在使用黑月编译时有效)。<br />[+] 修复易语言在多屏环境下智能提示只出现在主屏的问题。<br />[+] 增加 文本到UTF16()、UTF16到文本() 两个支持库命令<br />[+] 新增配置项ConfigOnInstallPath=1时,黑月项目配置保存在黑月安装目录下。<br />[+] 增加项目配置,该配置保存在源码文件中,只对当前源码有效,编译时优先采用。<br /><strong><span style="color: #0000ff;">【安装说明】</span></strong><br />一、必须解压安装到你的易语言安装路径,比如:C:\Program Files\e<br />二、在工具-&gt;支持库配置 里把黑月编译器插件选上<br />三、在工具菜单就出现黑月工具了,点击黑月资源编辑器,可以给程序增加资源脚本。<br />四、用4.13版最好把易的加入版本信息关了,用黑月自己的资源脚本来生成。否则在没资源的情况下,会破坏黑月编译出来程序。运行时出现不是有效WIN32程序的错误提示。<br />五、若需要黑月链接编译其它支持库,必须安装易语言5.0以上版本。<br /><br /><strong><span style="color: #ff0000;">【下载地址】</span></strong><br /><span style="color: #e03e2d;"><a style="color: #e03e2d;" href="https://pan.baidu.com/s/1ethU4HKW-Jac2UR1edoFfA?pwd=r44u" target="_blank" rel="noopener"><strong>https://pan.baidu.com/s/1ethU4HKW-Jac2UR1edoFfA?pwd=r44u</strong></a></span></p>
页: [1]
查看完整版本: 【插件】黑月编译器v4.1.7.7