±¾ÎÄÀ´×Ôqingye2008Ëù·¢µÄ´ËÌûµÄÌÖÂÛ£¬¸Ðл³Â»Ô¡¢ÂíÔƽ£¡¢qingyeµÄÄÍÐÄÖ¸µãºÍ·ÖÏí¡£
1¡¢ÒýÑÔ
»°ËµqingyeͬѧµÃµ½ÁËÒ»¸öÓÃÓÚ¼Ó½âÃܵÄDll£¨¸Ã¶¯Ì¬¿âÔÚÕâÀïÏÂÔØ£©£¬Í¨¹ýDll Export Viewer¿´µ½dllÓÐ2¸öµ¼³öº¯Êý·Ö±ðÊÇDll_EncInºÍDll_EncOut£¬qingyeͬѧÏëÔÚVBÖÐʹÓÃÕâÁ½¸öº¯Êý¡£ÒòΪ¸ã²»µ½½Ó¿Ú˵Ã÷£¬Ö»ºÃͨ¹ý²é¿´»ã±à´úÂëÀ´²Â²â²ÎÊýÊýÁ¿ºÍÀàÐÍ¡£Í¨¹ýͬѧÃǵÄÒ»·¬ÃþË÷£¬´óÖµĹý³ÌС½áÈçÏ£º
£¨1£©ÏÈÓÃIDAÖ®ÀàµÄ¾²Ì¬·´»ã±à¹¤¾ß¿´º¯ÊýµÄ²ÎÊýÓм¸¸ö¡¢ÓÐûÓзµ»ØÖµ£»£¨È·¶¨ÊÇÁ½¸ö¡¢Ã»Óзµ»ØÖµ£©
£¨2£©ÔÙÓÃODÖ®ÀàµÄ¶¯Ì¬·´»ã±àµ÷ÊÔ¹¤¾ß¿´¼Ä´æÆ÷Àï´æµÄ²ÎÊý¾ßÌåÊÇɶ£¬²¢¸ù¾Ýº¯ÊýµÄÔ¤¶¨¹¦ÄÜ£¬À´²Â²â²ÎÊýÓ¦¸ÃÉùÃ÷³ÉʲôÀàÐ͵ġ¢Ó¦¸Ã´«Ê²Ã´ÄÚÈÝ¡£
a) ±ÈÈçÕâ¸öº¯ÊýµÄ¹¦ÄÜÊǼÓÃÜ£¬ÄǸù¾Ý¹¦Äܲ²âÒª´«½øÈ¥µÄ²ÎÊýÖÁÉÙÓ¦¸ÃÓÐÃ÷ÎÄ¡¢Ò²¿ÉÄÜ»¹Óг¤¶È¡£ÁíÍ⺯ÊýÓ¦¸Ã»¹Óиö°ì·¨À´·µ»Ø¼ÓÃܺóµÄÃÜÎÄ£¬¼ÈÈ»º¯ÊýûÓзµ»ØÖµ£¬ÄÇÓпÉÄÜ»¹Óиö´«µØÖ·µÄ²ÎÊýÊÇÃÜÎÄ¡£ËùÒÔ£¬³õ²½²Â²âÓ¦¸ÃÓÐÁ½¸ö²ÎÊý£¬Ò»¸ö´«Ã÷ÎÄ×Ö·û´®£¬Ò»¸öÓÃÀ´½ÓÊÕÃÜÎÄ×Ö·û´®¡£
b) ÓÃOD¸ú½øÈ¥¿´¼Ä´æÆ÷ÀïµÄÄÚÈÝ£¬·¢ÏÖ´«×Ö·û´®“123”£¬¼Ä´æÆ÷ÀïдµÄÊÇ&ldq ......
¹ØÓÚActiveXµÄ½Ì³Ì
Visual BasicÊÇÃæÏò¶ÔÏóµÄ³ÌÐòÉè¼ÆÓïÑÔ£¬Î¢Èí¹«Ë¾ÍƳöÁËActiveX¼¼Êõ£¬ÀûÓÃActiveX¼¼ÊõÌá³öµÄ±ê×¼£¬¶Ô½çÃæµÄÉè¼Æ½øÐÐÁË·â×°£¬ÐγÉÁËһϵÁбà³Ì¿Ø¼þ£¬¼´Ìض¨¹¦ÄܵijÌÐòÄ£¿é¡£ÔÚ³ÌÐòµÄÉè¼ÆÖУ¬Éè¼ÆÈËÔ±Ö»ÐèÒªÍ϶¯ËùÐè¿Ø¼þµ½´°Ì壬Ȼºó¶Ô¿Ø¼þ½øÐÐÊôÐÔÉèÖúÍʹÓÃÆä·½·¨¡¢Ê¼þ¼´¿É£¬´ó´ó¼õÇáÁË·±ËöµÄ³ÌÐòÉè¼Æ¡£
µÚÒ»½Ú ÈÏʶ²¢×°ÔØActiveX¿Ø¼þ
ÈÎÎñ1£ºActiveX¿Ø¼þµÄ¸ÅÄîºÍActiveX¿Ø¼þµÄ×°ÔØ·½·¨
¡¾ÈÎÎñµÄÌá³ö¡¿Visual Basic¹¤¾ßÏäÉϵıê×¼¿Ø¼þÖ»ÓÐ21¸ö¡£¶ÔÓÚ¸´ÔÓµÄÓ¦ÓóÌÐò£¬½ö½öʹÓÃһЩ±ê×¼¿Ø¼þÊDz»¹»µÄ£¬¿ÉÒÔÓ¦ÓÃVisual BasicÒÔ¼°µÚÈý·½¿ª·¢ÉÌÌṩµÄ´óÁ¿AcitveX¿Ø¼þ¡£ÕâЩ¿Ø¼þ¿ÉÒÔÌí¼ÓÔÚ¹¤¾ßÏäÉÏ¡£Ä¿Ç°ÔÚInternetÉÏ´óÔ¼ÓÐ1000¶àÖÖAcitveX¿Ø¼þ¿É¹©ÏÂÔØ£¬´ó´ó½ÚÔ¼ÁËÎÒÃǵĿª·¢Ê±¼ä¡£
±¾ÈÎÎñÖ÷Òª°üÀ¨ÒÔÏÂÄÚÈÝ£º
(1) ¿Ø¼þ·ÖÀ༰ActiveXµÄ¸ÅÄî¡£
(2) ×°ÔØActiveX¿Ø¼þ¡£
11.1.1 ¿Ø¼þ·ÖÀ༰ActiveXµÄ¸ÅÄî
Visual Basic 6.0ÖпؼþÖ÷Òª·ÖΪÈýÖÖ£ºÄÚ²¿¿Ø¼þ£¨±ê×¼¿Ø¼þ£©¡¢ActiveX¿Ø¼þ£¨Íⲿ¿Ø¼þ£©ºÍ¿É²åÈë¶ÔÏó¡£
1£®ÄÚ²¿¿Ø¼þ£¨Ò²³Æ±ê×¼¿Ø¼þ£©
¾ÍÊÇÎÒÃÇͨ³£Ê¹ÓõÄÈç±êÇ©¡¢Îı¾¿ò¡¢ÃüÁî°´Å¥µÈ³£Óÿؼþ£¬ÔÚÎÒÃÇÔËÐÐVisual Basic 6.0»·¾³Ê±£¬¿É×Ô¶¯ÔÚ¹¤¾ ......
Óо²Ì¬ºÍ¶¯Ì¬Á½ÖÖ£¬¾²Ì¬µÄÐèÒªlib¶ø¶¯Ì¬µÄÖ»ÐèÒªÒ»¸ödll¾Í¿ÉÒÔÁË£¨µ«ÊÇÒªÖªµÀº¯ÊýµÄ¶¨ÒåÒ»°ãÊÇÍ·ÎÄ
¼þ£©¶¯Ì¬Ïà¶Ô¸´ÔÓÒ»µã£¡µ«ÊÇÕÆÎÕÁËÒ²²»ÊǺÜÄÑ
//µÚÒ»²½ ¶¨Ò庯ÊýÖ¸Õë¾ÍÊÇÄãÒªµ÷Óõĺ¯Êý£¬²ÎÊý±ØÐëÒ»Ö£¬²»È»¾ÍÄÚ´æй¶
typedef HANDLE (PASCAL * OPEN)(char *,int);
//µÚ¶þ²½ ¶¨Òå±¾µØº¯Êý
//Ò»°ãÇ°Á½²½¶¼ÔÚÍ·ÎļþÀïÃæÉùÃ÷
OPEN open;
//µÚÈý²½ ¼ÓÔØdll
HMODULE m_hLib;
m_hLib ::LoadLibrary"E:\\yewufuwu\\TERMINALDLL\\Debug\\TerminalDLL.dll");
//ÊäÈëÏàÓ¦µÄ·¾¶
if(m_hLib == NULL )
{
MessageBox("¶¯Ì¬Á¬½Ó¿âûÓÐÕÒµ½!!!","LoadLibrary",MB_OK);
......
´úÂ룺
Option Explicit
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Lon ......
ºÜ¶àʱºò,ÎÒÃDz»ÏëÒ»¿ªÊ¼¾ÍÏÔʾ¹ö¶¯Ìõ,µ±Îı¾µ½´ïÖ¸¶¨ÐÐÊýÎı¾¿òÎÞ·¨ÍêÈ«ÏÔʾµÄʱºòÔÙÏÔʾËü,ÓÉÓÚScrollbarÊôÐÔÊÇÖ»¶ÁµÄ,ÎÞ·¨ÔÚÔËÐÐʱµÄ´úÂëÖиıäÕâ¸öÊôÐÔ,Ö»ÄÜʹÓÃÏÂÃæµÄAPIʵÏÖÕâ¸ö¹¦ÄÜ:
Public Declare Function ShowScrollBar Lib "user32" (ByVal hwnd As Long, ByVal wBar As Long, ByVal bShow As Long) As Long
Public Const SB_HORZ = 0 'ˮƽ
Public Const SB_VERT = 1 '´¹Ö±
Public Const SB_BOTH = 3 'Á½Õ߶¼ÓÐ
ÔÚChangeʼþÖÐ,µ÷ÓþͿÉÒÔÁË:
Private bShow As Boolean 'ÊÇ·ñÒѾ¸Ä±äScrollbarsÊôÐÔ,ÄãÒ²¿ÉÒÔÊ¡ÂÔÕâ¸ö¿ØÖÆ
Private Sub txtText_Change()
txtText.SelStart = Len(txtText.Text)
If bShow = True Then Exit Sub '¶ÁÈ¡Ò»¸ö±äÁ¿µÄËÙ¶ÈÒª±È¶ÁÈ¡Ò»¸öÊôÐÔ¿ì,¿´ÏÂC++
If TextHeight(txtText.Text) > txtText.Height Then
  ......
ʹÓÃoracleÊý¾Ý¿âÓÐÁ½ÖÖ·½·¨£º
1¡¢ÔÚ¿Í»§¶Ë»úÆ÷ÉÏ°²×°oracleµÄ¿Í»§¶ËÈí¼þ¡£Î¨Ò»µÄÀýÍâ¾ÍÊÇjavaÁ¬½ÓÊý¾Ý¿âµÄʱºò£¬¿ÉÒÔÓÃjdbc thinģʽ£¬²»ÓÃ×°oracleµÄ¿Í»§¶ËÈí¼þ¡£
2¡¢Èç¹ûÄãÔÚ»úÆ÷ÉÏ×°ÁËoracleÊý¾Ý¿â·þÎñÆ÷£¬¾Í²»ÐèÒªÔÚµ¥¶ÀÔڸûúÆ÷ÉÏ°²×°oracle¿Í»§¶ËÁË£¬ÒòΪװoracleÊý¾Ý¿âµÄʱºò»á×Ô¶¯°²×°oracle¿Í»§¶Ë
Èç¹ûÏëÓñ¾µØµÄ¼ÆËã»ú·ÃÎÊ»òÁ¬½ÓÔ¶³ÌµÄoracleÊý¾Ý¿â£¬ÄÇô¾Í±ØÐëÔÚ±¾µØµÄ¼ÆËã»úÉÏ°²×°oracle¿Í»§¶ËÈí¼þ¡£
ÔÚ°²×°¿Í»§¶ËÇ°£¬È·±£ÔÚ·þÎñÆ÷¶Ë£º
1£®±£Ö¤listener·þÎñÒѾÆô¶¯¡£
2£®±£Ö¤Êý¾Ý¿âÒѾÆô¶¯¡£
°²×°Íê¿Í»§¶ËÈí¼þºó£¬Òª¶Ô¿Í»§¶ËÈí¼þϵÄÅäÖúÍÒÆÖ²¹¤¾ß----¡·net configuration assianstant½øÐÐÅäÖ㬰´ÕÕÌáʾ£º
1¡¢Í¼ÐνçÃæÐ޸ģ¨×îºÃÓÃÕâÖÖ·½·¨Ð޸ģ©
¿ÉÒÔÔÚ¿Í»§¶Ë»úÆ÷ÉÏʹÓÃoracle Net Configuration Assistant»òoracle Net ManagerͼÐÎÅäÖù¤¾ß¶Ô¿Í»§¶Ë½øÐÐÅäÖ㬸ÃÅäÖù¤¾ßʵ¼ÊÉÏÐÞ¸Ätnsnames.oraÎļþ¡£
ÏÂÃæÊÇʹÓà ......