亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? errorhandling.java

?? vc ADO 連接數據庫
?? JAVA
字號:
//******************************************************************************
// ErrorHandling.java:	Applet
//
//******************************************************************************
import java.applet.*;
import java.awt.*;
import com.ms.com.*;
import msado15.*;

//==============================================================================
// Main Class for applet ErrorHandling
//
//==============================================================================
public class ErrorHandling extends Applet implements Runnable
{
	// THREAD SUPPORT:
	//		m_ErrorHandling	is the Thread object for the applet
	//--------------------------------------------------------------------------
	private Thread	 m_ErrorHandling = null;

	// ANIMATION SUPPORT:
	//		m_Graphics		used for storing the applet's Graphics context
	//		m_Images[]		the array of Image objects for the animation
	//		m_nCurrImage	the index of the next image to be displayed
	//		m_ImgWidth		width of each image
	//		m_ImgHeight		height of each image
	//		m_fAllLoaded	indicates whether all images have been loaded
	//		NUM_IMAGES 		number of images used in the animation
	//--------------------------------------------------------------------------
	private Graphics m_Graphics;
	private Image	 m_Images[];
	private int 	 m_nCurrImage;
	private int 	 m_nImgWidth  = 0;
	private int 	 m_nImgHeight = 0;
	private boolean  m_fAllLoaded = false;
	private final int NUM_IMAGES = 18;


	// ErrorHandling Class Constructor
	//--------------------------------------------------------------------------
	public ErrorHandling()
	{
		// TODO: Add constructor code here
	}

	// APPLET INFO SUPPORT:
	//		The getAppletInfo() method returns a string describing the applet's
	// author, copyright date, or miscellaneous information.
    //--------------------------------------------------------------------------
	public String getAppletInfo()
	{
		return "Name: ErrorHandling\r\n" +
		       "Author: Don Willits\r\n" +
		       "Created with Microsoft Visual J++ Version 1.1";
	}


	// The init() method is called by the AWT when an applet is first loaded or
	// reloaded.  Override this method to perform whatever initialization your
	// applet needs, such as initializing data structures, loading images or
	// fonts, creating frame windows, setting the layout manager, or adding UI
	// components.
    //--------------------------------------------------------------------------
	public void init()
	{
        // If you use a ResourceWizard-generated "control creator" class to
        // arrange controls in your applet, you may want to call its
        // CreateControls() method from within this method. Remove the following
        // call to resize() before adding the call to CreateControls();
        // CreateControls() does its own resizing.
        //----------------------------------------------------------------------
    	resize(320, 240);

		// TODO: Place additional initialization code here
	}

	// Place additional applet clean up code here.  destroy() is called when
	// when you applet is terminating and being unloaded.
	//-------------------------------------------------------------------------
	public void destroy()
	{
		// TODO: Place applet cleanup code here
	}

    // ANIMATION SUPPORT:
    //		Draws the next image, if all images are currently loaded
    //--------------------------------------------------------------------------
	private void displayImage(Graphics g)
	{
		if (!m_fAllLoaded)
			return;

		// Draw Image in center of applet
		//----------------------------------------------------------------------
		g.drawImage(m_Images[m_nCurrImage],
				   (size().width - m_nImgWidth)   / 2,
				   (size().height - m_nImgHeight) / 2, null);
	}

	// ErrorHandling Paint Handler
	//--------------------------------------------------------------------------
	public void paint(Graphics g)
	{
		// ANIMATION SUPPORT:
		//		The following code displays a status message until all the
		// images are loaded. Then it calls displayImage to display the current
		// image.
		//----------------------------------------------------------------------
		if (m_fAllLoaded)
		{
			Rectangle r = g.getClipRect();
			
			g.clearRect(r.x, r.y, r.width, r.height);
			displayImage(g);
		}
		else
			g.drawString("Loading images...", 10, 20);

		// TODO: Place additional applet Paint code here
	}

	//		The start() method is called when the page containing the applet
	// first appears on the screen. The AppletWizard's initial implementation
	// of this method starts execution of the applet's thread.
	//--------------------------------------------------------------------------
	public void start()
	{
		if (m_ErrorHandling == null)
		{
			m_ErrorHandling = new Thread(this);
			m_ErrorHandling.start();
		}
		// TODO: Place additional applet start code here
	}
	
	//		The stop() method is called when the page containing the applet is
	// no longer on the screen. The AppletWizard's initial implementation of
	// this method stops execution of the applet's thread.
	//--------------------------------------------------------------------------
	public void stop()
	{
		if (m_ErrorHandling != null)
		{
			m_ErrorHandling.stop();
			m_ErrorHandling = null;
		}

		// TODO: Place additional applet stop code here
	}

	// THREAD SUPPORT
	//		The run() method is called when the applet's thread is started. If
	// your applet performs any ongoing activities without waiting for user
	// input, the code for implementing that behavior typically goes here. For
	// example, for an applet that performs animation, the run() method controls
	// the display of images.
	//--------------------------------------------------------------------------
	public void run()
	{
		m_nCurrImage = 0;
		
		// If re-entering the page, then the images have already been loaded.
		// m_fAllLoaded == TRUE.
		//----------------------------------------------------------------------
        if (!m_fAllLoaded)
		{
    		repaint();
    		m_Graphics = getGraphics();
    		m_Images   = new Image[NUM_IMAGES];

    		// Load in all the images
    		//------------------------------------------------------------------
    		MediaTracker tracker = new MediaTracker(this);
    		String strImage;

    		// For each image in the animation, this method first constructs a
    		// string containing the path to the image file; then it begins
    		// loading the image into the m_Images array.  Note that the call to
    		// getImage will return before the image is completely loaded.
    		//------------------------------------------------------------------
    		for (int i = 1; i <= NUM_IMAGES; i++)
    		{
    			// Build path to next image
    			//--------------------------------------------------------------
    			strImage = "images/img00" + ((i < 10) ? "0" : "") + i + ".gif";
			    m_Images[i-1] = getImage(getDocumentBase(), strImage);

                tracker.addImage(m_Images[i-1], 0);
    		}

    		// Wait until all images are fully loaded
    		//------------------------------------------------------------------
			try
			{
				tracker.waitForAll();
				m_fAllLoaded = !tracker.isErrorAny();
			}
			catch (InterruptedException e)
			{
				// TODO: Place exception-handling code here in case an
				//       InterruptedException is thrown by Thread.sleep(),
				//		 meaning that another thread has interrupted this one
			}
			
			if (!m_fAllLoaded)
			{
			    stop();
			    m_Graphics.drawString("Error loading images!", 10, 40);
			    return;
			}
			

			// Assuming all images are same width and height.
			//--------------------------------------------------------------
		    m_nImgWidth  = m_Images[0].getWidth(this);
		    m_nImgHeight = m_Images[0].getHeight(this);
        }		
		repaint();

		while (true)
		{
			try
			{
				// Draw next image in animation
				//--------------------------------------------------------------
				displayImage(m_Graphics);
				m_nCurrImage++;
				if (m_nCurrImage == NUM_IMAGES)
					m_nCurrImage = 0;

				// TODO:  Add additional thread-specific code here
				Thread.sleep(50);
			}
			catch (InterruptedException e)
			{
				// TODO: Place exception-handling code here in case an
				//       InterruptedException is thrown by Thread.sleep(),
				//		 meaning that another thread has interrupted this one
				stop();
			}
		}
	}

public static void AdoErrorEx( msado15._Connection Conn1 )
{
    // Local Error Objects
    msado15.Errors      Errs1 = null;
    msado15.Error       Err1  = null;

    long        nCount;
    Variant     v = new Variant();

    if ( Conn1 == null )
        return;

    Errs1  = Conn1.getErrors();
    nCount = Errs1.getCount();
    for( long i = 0; i < nCount; i++ )
    {
        v.putInt( (int) i );
        Err1 = Errs1.getItem( v );
        System.out.println( "    Number " + Err1.getNumber() );
        System.out.println( "        Description = " + Err1.getDescription()  );
        if ( Err1 != null ) Err1 = null;
    }
    if ( Errs1 != null ) Errs1 = null;
}

public static void main( String args[])
{
    msado15._Connection Conn1      = new msado15.Connection();

    try
    {
        Conn1.Open( "", "", "", -1  );
    }
    // Catch Blocks -- These catch blocks are a subset of the 
    //                 Exception Handling demonstrated in LogEx.Java &
    //                 AdoUtils.java in the Java Rosetta Stone Samples    
    catch (com.ms.com.ComFailException e)    
    {
        // Test if Connection.Errors Collection is non-empty 
        AdoErrorEx( Conn1 );

        // Crack open ComFailure class that wraps COM Exceptions
        System.out.println( "ComFailException Class Raised:" );
        System.out.println( "Exception Class = " + e.getClass()   );
        System.out.println( "Error Message   = " + e.getMessage() );
        System.out.println( "Failed HRESULT  = " + e.getHResult() ); 
    }
    catch(Exception e) 
    {
        // Test if Connection.Errors Collection is non-empty
        AdoErrorEx( Conn1 );

        // Crack open Java Exception class
        System.out.println( "Exception Class Raised:" );
        System.out.println( "Exception Class = " + e.getClass()   );
        System.out.println( "Error Message   = " + e.getMessage() );
    }
}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美经典一区二区| 国产无一区二区| 91在线porny国产在线看| 国产99一区视频免费| 国产精品99久| 国产高清视频一区| kk眼镜猥琐国模调教系列一区二区 | 91亚洲永久精品| 成人国产精品免费观看| av毛片久久久久**hd| heyzo一本久久综合| 91在线免费视频观看| 日本乱人伦一区| 在线亚洲一区二区| 91精品啪在线观看国产60岁| 在线成人高清不卡| 精品国产在天天线2019| 久久久影院官网| 中文天堂在线一区| 亚洲777理论| 久久99深爱久久99精品| 成人黄色电影在线| 欧美久久一二三四区| 亚洲精品一线二线三线无人区| 久久久久成人黄色影片| 亚洲精品日产精品乱码不卡| 香蕉久久一区二区不卡无毒影院| 丝袜亚洲精品中文字幕一区| 黄网站免费久久| 91蝌蚪porny| 欧美成人vps| 亚洲欧美日韩人成在线播放| 亚洲午夜私人影院| 国产精品一卡二卡在线观看| 91麻豆免费在线观看| 欧美大度的电影原声| 亚洲欧美国产三级| 精品一区二区三区免费毛片爱 | 亚洲一级电影视频| 捆绑调教一区二区三区| 色综合久久中文字幕综合网| 欧美不卡一区二区| 亚洲一区二区四区蜜桃| 国产一区二区三区综合| 精品视频免费看| 国产精品国产三级国产aⅴ入口| 亚欧色一区w666天堂| av在线一区二区三区| 久久综合九色综合欧美98| 亚洲成人你懂的| av不卡一区二区三区| 欧美精品一区二区三区蜜桃视频| 亚洲一卡二卡三卡四卡无卡久久| 成人看片黄a免费看在线| 欧美videos中文字幕| 天天综合日日夜夜精品| 色婷婷综合在线| 国产精品色婷婷久久58| 国产美女在线精品| 精品国产免费久久| 蜜臀久久99精品久久久画质超高清| 色老汉av一区二区三区| 亚洲欧美自拍偷拍| 成人免费高清在线| 久久先锋影音av| 老司机午夜精品| 日韩三级在线免费观看| 日韩精品一二三四| 91精品国产欧美日韩| 日韩精品乱码免费| 欧美高清性hdvideosex| 视频在线观看国产精品| 欧美日韩一级片在线观看| 亚洲一区二区精品3399| 欧美日本精品一区二区三区| 天堂成人免费av电影一区| 欧美日韩精品三区| 日韩电影在线观看网站| 91精品国产aⅴ一区二区| 视频一区二区三区在线| 这里只有精品视频在线观看| 久久成人麻豆午夜电影| 精品国产欧美一区二区| 精品无码三级在线观看视频| 26uuu国产在线精品一区二区| 久久国产视频网| 久久久久久亚洲综合影院红桃| 国产精品一二二区| 综合久久国产九一剧情麻豆| 成人福利视频在线| 亚洲香肠在线观看| 日韩无一区二区| 国产成人综合自拍| 日韩理论片一区二区| 色婷婷亚洲综合| 久久成人免费网| 中文字幕av一区二区三区免费看 | 99久久精品免费| 亚洲精品va在线观看| 日韩一区二区视频在线观看| 国产美女一区二区| 一区二区在线电影| 日韩欧美区一区二| www.一区二区| 日本va欧美va欧美va精品| 久久嫩草精品久久久久| 欧美中文字幕不卡| 国产伦精品一区二区三区视频青涩 | 色婷婷激情一区二区三区| 日韩av电影一区| 久久免费看少妇高潮| 色婷婷亚洲综合| 国产剧情一区二区三区| 亚洲va天堂va国产va久| 久久精品这里都是精品| 欧美午夜精品久久久久久孕妇| 久久99国内精品| 亚洲影院久久精品| 日本一区二区三区在线观看| 欧美色偷偷大香| 成人精品在线视频观看| 午夜国产不卡在线观看视频| 国产精品欧美久久久久一区二区 | 国产成人久久精品77777最新版本| 亚洲一区二区欧美激情| 国产精品久久久久久一区二区三区| 欧美精品 日韩| 在线观看av一区二区| 成人高清av在线| 国产成人午夜精品影院观看视频 | 欧美成人免费网站| 欧美片网站yy| 一本色道久久综合精品竹菊| 国产成人免费在线视频| 久久国产精品区| 亚洲第一成年网| 亚洲欧美韩国综合色| 国产精品久久国产精麻豆99网站| 欧美变态tickle挠乳网站| 欧美日韩高清在线| 欧美手机在线视频| 在线亚洲免费视频| 一本大道久久a久久综合婷婷| 成人精品视频.| 成人av在线影院| 成人黄色一级视频| aaa欧美日韩| 一本一道久久a久久精品| 波多野结衣亚洲一区| 不卡av在线网| 91麻豆自制传媒国产之光| 97精品久久久久中文字幕| 99精品视频中文字幕| 色欧美片视频在线观看在线视频| 成人白浆超碰人人人人| 波多野结衣一区二区三区 | 国产99久久久国产精品| 国产成人av在线影院| 国产成人aaa| 成人免费看黄yyy456| 97久久人人超碰| 日本韩国欧美一区| 欧美午夜精品一区二区三区| 精品视频色一区| 欧美xxxx老人做受| 国产欧美精品一区二区色综合| 中文在线资源观看网站视频免费不卡| 欧美极品另类videosde| 亚洲人成网站色在线观看| 一区二区三区精品视频在线| 天天综合色天天综合| 国产精品一区二区x88av| 99精品久久99久久久久| 欧美性猛片aaaaaaa做受| 91精品国产高清一区二区三区| 精品国产精品网麻豆系列| 国产精品卡一卡二卡三| 性欧美疯狂xxxxbbbb| 国产麻豆9l精品三级站| 在线观看国产精品网站| 日韩欧美亚洲另类制服综合在线| 国产三级一区二区| 一区二区三区日韩| 国内成+人亚洲+欧美+综合在线| 成人av免费网站| 欧美一区二区免费观在线| 日本一区二区免费在线 | 欧美国产精品v| 亚洲成人综合网站| 国产老女人精品毛片久久| 色视频成人在线观看免| 久久一夜天堂av一区二区三区| 亚洲视频在线一区观看| 麻豆成人免费电影| 日本久久一区二区三区| 久久久久久久综合色一本| 一区二区三区在线观看网站| 激情另类小说区图片区视频区| 色婷婷精品大在线视频| 欧美—级在线免费片|