VB写控件,主要是MAKE DLL
Public Sub writefile()
Open "d://example3.txt" For Output As #1
Print #1, "这是一个示例"
Print #1, '写入一个空行
Print #1, "同学,"; " "; "你好!"
Close #1
End Sub
public function ff() as String
{
ff ="sss"'函数的返回值:函数名=值
}
----------------------------------------------------------------------------------------------------
前台界面//object 中的id随便写,在本级情况下,codeBase将会自动注册,
<html>
<body>
<object id="haha" classid="clsid:ECF56D19-8014-48A9-BBFD-C61AF40E579C" >
</object>
<script>
haha.writefile();
</script>