如何编写dll
哪位大哥帮我写一个api dll, 功能要求: 运行一个可执行文件 如 当前目录下的server.exe!
怎么写这个东西? 谢谢
[解决办法]
直接shell不就可以了吗
[解决办法]
新建一个activex dll工程,类名为OpenClass,添加一函数OpenExe
Public Sub OpenExe()
shell app.path & "\server.exe"
End Sub
'调用
OpenClass.OpenExe
[解决办法]
................
[解决办法]
Public Declare Function ShellExecuteA Lib "shell32.dll" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Call ShellExecuteA (0, "Open", app.path & "\server.exe", "", "", 1)
[解决办法]