一个关于注册组件的问题。
各位,我用下面的代码注册组件,但不成功。Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (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
Private Sub Command1_Click()
ShellExecute hwnd, "open", "regsvr32 C:\XPForm.ocx", "", "", 1
End Sub
麻烦各位帮我检查一下,然后给我一个正确的答案。谢谢……
[此贴子已经被作者于2006-2-1 20:31:01编辑过]