class1.java

来自「经验交流,从网上下载的好东西望大家分享」· Java 代码 · 共 36 行

JAVA
36
字号
/**
 * This class is designed to be packaged with a COM DLL output format.
 * The class has no standard entry points, other than the constructor.
 * Public methods will be exposed as methods on the default COM interface.
 * @com.register ( clsid=DFFE86C0-ED1D-11D2-BB52-006097B5EAFC, typelib=DFFE86C1-ED1D-11D2-BB52-006097B5EAFC )
 */

/**
 * @com.register ( clsid=DFFE86C9-ED1D-11D2-BB52-006097B5EAFC, typelib=DFFE86C8-ED1D-11D2-BB52-006097B5EAFC )
 */
public class Class1 implements java.io.Serializable 
{
	private String test = "Guy";
	Class1()
	{
		com.ms.win32.User32.MessageBox(0, test + ", this = " + this, "constructor 1", 0);
	}
	
	private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
	{
		com.ms.win32.User32.MessageBox(0, test + ", this = " + this, "writeObject 1", 0);
		test = "Changing string in writeObject.";
		
		out.defaultWriteObject();
		
		com.ms.win32.User32.MessageBox(0, test + ", this = " + this, "writeObject 2", 0);
	}
	
	private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException
	{
		in.defaultReadObject();
		
		com.ms.win32.User32.MessageBox(0, test + ", this = " + this, "readObject 1", 0);
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?