ResDllCreate

创建仅资源 dll。这样的dll不会有任何可执行代码,但可以加载到程序中来访问资源。

OutputVar := ResDllCreate(DllPath)
命令示例: ResDllCreate A_ScriptDir "\MyDll.dll"
函数示例: ResDllCreate(A_ScriptDir "\MyDll.dll")

参数

OutputVar(输出变量)

如果 dll 写入成功,则存储 true / 1 的变量名称,否则存储 0 / false。

DllPath(dll 路径)

要创建的 dll 的路径。

ErrorLevel

如果无法创建文件,ErrorLevel 将设置为 1(真),否则将为 0(假)。

相关

ResGet, ResPut, ResPutFile, ResExist, ResDelete, ResDllCreate, UnZipRawMemory

示例

If !ResDllCreate(A_ScriptDir "\MyDll.dll")
	MsgBox 无法创建 dll。