/*
豆腐制作,都是精品
http://www.asp888.net 豆腐技术站
如转载 请注明出处
*/
下面我们来看一些 vb7 的简单应用,我们仍然从 hello world 开始
imports system
imports system.runtime.interopservices
namespace classlibrary1
public class foo
shared function <dllimport("user32.dll")> messageboxa (byval h as integer, byval m as string, byval c as string, byval type as integer) as integer
end function
public shared sub main()
messageboxa(0, "hello world2!", "www.asp888.net", 0)
console.writeline("hello world!!!")
end sub
end class
end namespace
在这个例子,我们调用了 user.dll 中的 messageboxa 的api 函数,这样的方法同样适用与我们自己作的
dll中
作者:豆腐()
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器