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

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

?? openingadorecordsetwithjavasdk.java

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

//==============================================================================
// Main Class for applet OpeningADORecordsetWithJavaSDK
//
//==============================================================================
public class OpeningADORecordsetWithJavaSDK extends Applet implements Runnable
{
	// THREAD SUPPORT:
	//		m_OpeningADORecordsetWithJavaSDK	is the Thread object for the applet
	//--------------------------------------------------------------------------
	private Thread	 m_OpeningADORecordsetWithJavaSDK = 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;


	// OpeningADORecordsetWithJavaSDK Class Constructor
	//--------------------------------------------------------------------------
	public OpeningADORecordsetWithJavaSDK()
	{
		// 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: OpeningADORecordsetWithJavaSDK\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);
	}

	// OpeningADORecordsetWithJavaSDK 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_OpeningADORecordsetWithJavaSDK == null)
		{
			m_OpeningADORecordsetWithJavaSDK = new Thread(this);
			m_OpeningADORecordsetWithJavaSDK.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_OpeningADORecordsetWithJavaSDK != null)
		{
			m_OpeningADORecordsetWithJavaSDK.stop();
			m_OpeningADORecordsetWithJavaSDK = 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 main( String args[])
    {
        msado15._Recordset   Rs1 = new msado15.Recordset();
        Variant Source     = new Variant( "SELECT * FROM Authors" );
        Variant Connect    = new Variant( "DSN=AdoDemo;UID=admin;PWD=;" );
        int     LockType   = msado15.CursorTypeEnum.adOpenForwardOnly;
        int     CursorType = msado15.LockTypeEnum.adLockReadOnly;
        int     Options    = -1;

        Rs1.Open( Source, Connect, LockType,  CursorType, Options );
        Rs1.Close();
        Rs1 = null;

        System.out.println( "Success!\n" );
    }


}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品第1页| 色综合久久久久网| 91丝袜呻吟高潮美腿白嫩在线观看| 色香蕉久久蜜桃| 国产清纯白嫩初高生在线观看91| 亚洲第一在线综合网站| 国产suv精品一区二区三区| 欧美三级视频在线播放| 欧美韩国日本不卡| 六月婷婷色综合| 欧美日韩在线播放三区| 亚洲欧洲一区二区在线播放| 激情六月婷婷久久| 欧美一区二区黄色| 亚洲一区二区五区| 91论坛在线播放| 国产日韩成人精品| 国产麻豆视频精品| 欧美刺激午夜性久久久久久久| 一区二区久久久久| 91丨九色丨黑人外教| 亚洲国产精品高清| 国产成人精品影视| 欧美精彩视频一区二区三区| 精彩视频一区二区| 精品成人一区二区三区| 日韩在线观看一区二区| 欧美日韩视频在线一区二区| 亚洲视频精选在线| 91久久精品一区二区三区| 亚洲欧美另类图片小说| 波多野结衣一区二区三区| 国产精品二区一区二区aⅴ污介绍| 国产精品一区二区在线播放 | 欧美日韩一本到| 亚洲欧美日韩久久| 在线这里只有精品| 亚洲国产成人av| 在线播放欧美女士性生活| 日本亚洲一区二区| 欧美电影免费观看高清完整版在| 秋霞国产午夜精品免费视频| 欧美一区二区三区人| 麻豆精品视频在线观看| 久久欧美中文字幕| 国产成人久久精品77777最新版本| 国产精品欧美一区二区三区| 成人av资源下载| 亚洲一级二级在线| 欧美一区二区女人| 国产精品123| 亚洲精品高清在线| 日韩欧美视频一区| 激情五月激情综合网| 国产区在线观看成人精品| 在线视频综合导航| 麻豆国产精品视频| 亚洲国产精品二十页| 欧美亚洲高清一区二区三区不卡| 日本不卡视频一二三区| 精品成人a区在线观看| av网站免费线看精品| 亚洲国产成人av好男人在线观看| 精品国产免费久久| 色琪琪一区二区三区亚洲区| 蜜桃视频一区二区三区 | 亚洲精品视频在线| 日韩三级视频在线看| 99这里只有精品| 亚洲国产精品自拍| 国产肉丝袜一区二区| 欧美色网一区二区| 丰满少妇在线播放bd日韩电影| 亚洲自拍偷拍麻豆| 国产欧美精品一区二区三区四区| 91久久精品一区二区三| 国产在线精品一区二区三区不卡| 怡红院av一区二区三区| 久久亚洲捆绑美女| 51久久夜色精品国产麻豆| 成人在线视频一区| 久久激情五月激情| 亚洲丶国产丶欧美一区二区三区| 国产亚洲一区二区三区四区 | 国产视频一区二区在线观看| 欧美专区亚洲专区| 成人免费高清视频在线观看| 青青草视频一区| 亚洲午夜久久久久| 中文字幕制服丝袜成人av| 精品第一国产综合精品aⅴ| 欧美日韩dvd在线观看| 91美女精品福利| 成人深夜福利app| 国产精品99久久久久久久女警| 水蜜桃久久夜色精品一区的特点| 18涩涩午夜精品.www| 国产午夜精品一区二区三区视频 | 精品va天堂亚洲国产| 欧美男同性恋视频网站| 91在线观看成人| 成人福利电影精品一区二区在线观看| 久久69国产一区二区蜜臀| 亚洲国产你懂的| 午夜欧美电影在线观看| 一区二区三区蜜桃网| 亚洲精品免费在线| 亚洲精品视频免费看| 成人免费在线视频| 亚洲精品五月天| 亚洲综合成人在线视频| 一卡二卡欧美日韩| 亚洲国产美国国产综合一区二区| 一区二区三区波多野结衣在线观看| 中文字幕一区二区三区在线不卡| 中文字幕精品综合| 国产精品二区一区二区aⅴ污介绍| 国产精品美女久久久久久久网站| 国产欧美精品一区二区色综合朱莉| 久久精品视频在线免费观看| 国产日韩欧美亚洲| 国产精品久久国产精麻豆99网站| 国产精品另类一区| 亚洲视频小说图片| 视频一区国产视频| 国产精品夜夜嗨| www.欧美.com| 在线观看日韩电影| 337p亚洲精品色噜噜噜| 欧美成人艳星乳罩| 中文字幕精品在线不卡| 一区二区免费视频| 久久精品国产精品青草| 大桥未久av一区二区三区中文| a美女胸又www黄视频久久| 欧美视频一区在线| 日韩美女一区二区三区| 国产欧美日韩视频一区二区| 国产精品网友自拍| 亚洲午夜精品网| 韩国av一区二区三区| 成年人网站91| 欧美久久久久久久久久| 久久综合久色欧美综合狠狠| 最新欧美精品一区二区三区| 亚洲成va人在线观看| 国产综合久久久久影院| 色婷婷精品久久二区二区蜜臀av| 91精品欧美久久久久久动漫| 久久久久久麻豆| 亚洲影视在线播放| 国产中文字幕精品| 色狠狠色狠狠综合| 26uuu久久综合| 亚洲亚洲精品在线观看| 精品亚洲国内自在自线福利| 91视频xxxx| 337p粉嫩大胆色噜噜噜噜亚洲| 一区二区三区**美女毛片| 精品一区中文字幕| 欧美视频精品在线观看| 中文字幕精品一区二区精品绿巨人 | 亚洲情趣在线观看| 韩国v欧美v亚洲v日本v| 在线观看欧美日本| 国产精品国产三级国产专播品爱网 | 一区二区三区欧美视频| 国产成人自拍在线| 欧美一级二级在线观看| 一区二区三区在线视频免费| 国产原创一区二区| 91精品国产综合久久久久久久久久 | 成人成人成人在线视频| 欧美xxxxxxxxx| 午夜精品爽啪视频| 99国产精品久久久久久久久久| 精品久久久网站| 麻豆国产欧美日韩综合精品二区 | 99re这里只有精品6| 久久久久久电影| 老司机精品视频导航| 欧美中文字幕不卡| 亚洲欧美韩国综合色| 99久久婷婷国产| 欧美国产成人精品| 国产.欧美.日韩| 国产欧美一区二区三区在线看蜜臀 | 26uuu色噜噜精品一区| 男女男精品网站| 日韩午夜电影在线观看| 亚洲第一福利一区| 欧美日韩综合在线| 亚洲午夜国产一区99re久久| 色婷婷综合激情| 尤物在线观看一区| 欧美日韩中字一区| 偷拍日韩校园综合在线| 欧美美女直播网站| 日韩二区三区四区| 欧美一区二区精美|