ÔÚVBÓ¦ÓóÌÐòÖÐÇÉÓÃDLL_VB.net_ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤»ùµØ--Powered by WWW.RONGSEN.COM.CN

ÔÚVBÓ¦ÓóÌÐòÖÐÇÉÓÃDLL

×÷ÕߣººÚ¿Í·ÀÏßÍø°²VB½Ì³Ì»ùµØ À´Ô´£ººÚ¿Í·ÀÏßÍø°²VB½Ì³Ì»ùµØ ä¯ÀÀ´ÎÊý£º0

ºÚ¿Í·ÀÏßÍø°²ÍøѶ£ºÔÚʹÓÃVB¿ª·¢¶àýÌåÓ¦ÓóÌÐòʱ£¬ÈçºÎºÏÀíµØ´æ·Å´óÁ¿µÄ¶àýÌå×ÊÔ´£¬ÊÇÒ»¼þÊ®·Ö¼¬ÊÖµÄÊ¡£Èç¹û½«×ÊÔ´ÒÔÎļþÐÎʽ´æ·ÅÔÚ´Å£¨¹â£©ÅÌÉÏ£¬Ê¹ÓÃʱÔÙ´ÓÅÌÉ϶ÁÈ¡£¬ÊƱشó´óÓ°Ïì×ÊÔ´µ÷ÓõÄËٶȡ£Èç¹û½«...

ÔÚʹÓÃVB¿ª·¢¶àýÌåÓ¦ÓóÌÐòʱ£¬ÈçºÎºÏÀíµØ´æ·Å´óÁ¿µÄ¶àýÌå×ÊÔ´£¬ÊÇÒ»¼þÊ®·Ö¼¬ÊÖµÄÊ¡£Èç¹û½«×ÊÔ´ÒÔÎļþÐÎʽ´æ·ÅÔÚ´Å£¨¹â£©ÅÌÉÏ£¬Ê¹ÓÃʱÔÙ´ÓÅÌÉ϶ÁÈ¡£¬ÊƱشó´óÓ°Ïì×ÊÔ´µ÷ÓõÄËٶȡ£Èç¹û½«×ÊÔ´Ö±½Ó±àÒëÔÚÓ¦ÓóÌÐòµÄ¿ÉÖ´ÐÐÎļþÖУ¬ËäÈ»¿ÉÒÔ»ñµÃÁîÈËÂúÒâµÄ×ÊÔ´´æÈ¡Ëٶȣ¬µ«»áµ¼ÖÂ×îÖյĿÉÖ´ÐÐÎļþ³ß´ç´ó´óÅòÕÍ¡£ÈçºÎ½â¾öÕâ¸öì¶ÜÄØ£¿±ÊÕß´ÓWindows¶¯Ì¬Á´½Ó¿âµÄÔ­ÀíÖеõ½Æô·¢£¬ÕÒµ½ÁËÒ»¸ö½áºÏ¶þÕßÓÅÊƵĽâ¾ö·½·¨¡£

¶¯Ì¬Á´½Ó¿âÊÇʵÏÖWindowsÓ¦ÓóÌÐò¹²Ïí×ÊÔ´¡¢½ÚÊ¡ÄÚ´æ¿Õ¼ä¡¢Ìá¸ßʹÓÃЧÂʵÄÒ»¸öÖØÒª¼¼ÊõÊֶΡ£³£¼ûµÄ¶¯Ì¬¿â°üº¬Íⲿº¯ÊýºÍ×ÊÔ´£¬Ò²ÓÐһЩ¶¯Ì¬¿âÖ»°üº¬×ÊÔ´£¬ÈçWindows×ÖÌå×ÊÔ´Îļþ£¬ÎÒÃǽ«ÕâÀද̬¿â³Æ֮Ϊ×ÊÔ´¶¯Ì¬Á´½Ó¿â¡£ÖÆ×÷×ÊÔ´¶¯Ì¬¿âµÄ·½·¨ºÜ¶à£¬±ÊÕßÔÚ´ËÌṩÁËÒ»ÖÖÎÞÐè±à³Ì¡¢¼òµ¥ÓÐЧµÄ·½·¨¡£¸Ã·½·¨ÀûÓÃÁËBorland C++µÄ×ÊÔ´¹ÜÀíÆ÷Resource WorkshopµÄ·´±àÒëÄÜÁ¦£¬½èÓÃÏֳɵĶ¯Ì¬¿â£¬½«Æä¸ÄÖÆΪ×Ô¼ºµÄ×ÊÔ´¶¯Ì¬¿â¡£¾ßÌå·½·¨ÊÇ£¬¿½±´Ò»¸öÏֳɵÄ×ÊÔ´¶¯Ì¬¿âÎļþ£¨ÈçwindowssystemĿ¼ÏµÄ×ÖÌå×ÊÔ´Îļþarial.fot£©µ½Ó¦ÓóÌÐò¹¤×÷Ŀ¼£¬¸ü¸ÄÎļþÃû£¬Èç¸ÄΪDEMO.DLL¡£È»ºóÔÚResource WorkshopÖдò¿ª¸ÃÎļþ£¬Ñ¡ÔñÆäÖÐÔ­ÓеÄ×ÊÔ´½«Æäɾ³ý£¬ÔÙ¼ÓÈë×Ô¼ºµÄ×ÊÔ´£¬¼´¿ÉÖƳÉ×Ô¼ºµÄ×ÊÔ´¶¯Ì¬¿â¡£ÓÉÓÚƪ·ùËùÏÞ£¬¾ßÌå²Ù×÷¹ý³ÌÇë¶ÁÕß²ÎÔÄÓйØ×ÊÁÏ¡£²»¹ýÓÐÁ½¸ö¹Ø¼üÎÊÌâÐèÒªÌáÇë¶ÁÕß×¢Ò⣬ÆäÒ»£¬¶ÔÓÚÉùÒôÕâÀà·ÇWindows´«Í³×ÊÔ´£¬ÔÚ¼ÓÈ붯̬¿â֮ǰ£¬ÐèÒªÓû§×Ô¶¨ÒåÒ»¸ö×ÊÔ´ÀàÐÍÒÔ´æ·ÅÕâÀà×ÊÔ´£¬Èç±ÊÕßÔÚDEMO.DLLÖÐΪWindowsÒôƵÎļþ¶¨ÒåÁËWAVE×ÊÔ´ÀàÐÍ£»Æä¶þ£¬¶¯Ì¬¿âÖÐÿһ¸ö×ÊÔ´µÄ×ÊÔ´ÃûÊ®·ÖÖØÒª£¬ËüÊǵ÷ÓÃ×ÊÔ´µÄ¹Ø¼ü£¬½¨ÒéÓû§×îºÃÔÚ¼ÓÈë×ÊÔ´ºóΪÆ䶨ÒåÒ»¸öÓÐÒâÒåµÄ×ÊÔ´Ãû¡£

ͨ¹ýÉÏÃæ½éÉܵÄ×ÊÔ´¶¯Ì¬¿âµÄ¼òµ¥ÖÆ×÷·½·¨£¬¼´Ê¹²»ÊìϤCÓïÑԵĶÁÕßÒ²¿ÉÒÔÇáËɵØÖÆ×÷×Ô¼ºµÄ×ÊÔ´¶¯Ì¬¿âÁË¡£ÏÖÔÚ£¬ÈÃÎÒÃÇÀ´¿´¿´ÈçºÎÔÚVB¶àýÌåÓ¦ÓóÌÐòÖе÷ÓÃ×ÊÔ´¶¯Ì¬¿âÖеÄ×ÊÔ´¡£VB±¾Éí²¢Ã»Óе÷Óö¯Ì¬¿âµÄº¯ÊýºÍÓï¾ä£¬Òò´Ë±ØÐë½èÖúÓÚWindows APIº¯Êý¡£ÏÂÃæ±ÊÕß½«½áºÏÒ»¸öʵÀý£¬¾ßÌå½éÉܵ÷Ó÷½·¨¡£ÊµÀýÖÐʹÓõÄÊDZÊÕßͨ¹ýÉÏÊö·½·¨ÖÆ×÷µÄ×ÊÔ´¶¯Ì¬¿âDEMO.DLL£¬ÆäÖаüº¬Á½¸öBITMAP£¨.bmp£©ÀàÐÍ×ÊÔ´B1ºÍB2£¬Á½¸öWAVE£¨.wav£©ÀàÐÍ×ÊÔ´S1ºÍS2¡£

Ê×ÏÈ£¬Ð½¨Ò»¸öVB¹¤³Ì£¬ÆäÖаüº¬Ò»¸ö´°ÌåForm1ºÍÒ»¸öÄ£¿éModule1¡£ÔÚ´°ÌåForm1ÖмÓÈëÁËÒ»¸öͼƬ¿ò¿Ø¼þPicture1ºÍËĸöÃüÁî°´Å¥¿Ø¼þ£¬Picture1ÓÃÓÚÏÔʾ¶¯Ì¬¿âÖеÄλͼ×ÊÔ´£¬ËĸöÃüÁî°´Å¥µÄÊôÐÔÉèÖú͹¦Äܺ¬ÒåÈçÏÂ±í£º

ÊôÐÔ ¹¦ÄÜ

Name Index Caption
cmdBitmap 0 BitmapA ÔÚPicture1ÖÐÏÔʾDEMO.DLLÖÐ×ÊÔ´ÃûΪB1µÄλͼ×ÊÔ´
cmdBitmap 1 BitmapB ÔÚPicture1ÖÐÏÔʾDEMO.DLLÖÐ×ÊÔ´ÃûΪB2µÄλͼ×ÊÔ´
cmdSound 0 SoundA ²¥·ÅDEMO.DLLÖÐ×ÊÔ´ÃûΪS1µÄÉùÒô×ÊÔ´
cmdSound 1 SoundB ²¥·ÅDEMO.DLLÖÐ×ÊÔ´ÃûΪS2µÄÉùÒô×ÊÔ´
½Ó×ÅÔÚModule1ºÍForm1ÖмÓÈëÏÂÁдúÂ룬±ã¿ÉÍê³ÉʵÀý³ÌÐò£º
¡ùMoudle1.basÇåµ¥
'ÉùÃ÷APIº¯Êý
Declare Function LoadLibrary% Lib "Kernel" (ByVal lpLibFileName$)
Declare Sub FreeLibrary Lib "Kernel" (ByVal hLibModule%)
Declare Function LoadBitmap% Lib "User" (ByVal hInstance%, ByVal lpBitmapName As Any)
Declare Function GetObj% Lib "GDI" Alias "GetObject" (ByVal hObject%, ByVal nCount%, lpObject As Any)
Declare Function CreateCompatibleDC% Lib "GDI" (ByVal hDC%)
Declare Function SelectObject% Lib "GDI" (ByVal hDC%, ByVal hObject%)
Declare Function BitBlt% Lib "GDI" (ByVal hDestDC%, ByVal x%, ByVal y%, ByVal nWidth%, ByVal nHeight%, ByVal hSrcDC%, ByVal XSrc%, ByVal YSrc%, ByVal dwRop&)
Declare Function DeleteDC% Lib "GDI" (ByVal hDC%)
Declare Function DeleteObject% Lib "GDI" (ByVal hObject%)
Declare Function FindResource% Lib "Kernel" (ByVal hInstance%, ByVal lpName$, ByVal lpType As Any)
Declare Function LockResource& Lib "Kernel" (ByVal hResData%)
Declare Function LoadResource% Lib "Kernel" (ByVal hInstance%, ByVal hResInfo%)
Declare Function GlobalUnlock% Lib "Kernel" (ByVal hMem%)
Declare Function sndPlaySound% Lib "MMSYSTEM" (ByVal lpszSoundName As Any, ByVal uFlags%)
'λͼÊý¾Ý½á¹¹ÀàÐÍ
Type BITMAP
bmType As Integer
bmWidth As Integer
bmHeight As Integer
bmWidthBytes As Integer
bmPlanes As String * 1
bmBitsPixel As String * 1
bmBits As Long
End Type

    ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤·½°¸±¾ÆªÁ¬½Ó£ºhttp://www.rongsen.com.cn/show-14732-1.html
Íøվά»¤½Ì³Ì¸üÐÂʱ¼ä:2012-04-03 01:13:27  ¡¾´òÓ¡´ËÒ³¡¿  ¡¾¹Ø±Õ¡¿
ÎÒÒªÉêÇë±¾Õ¾£ºNµã | ºÚ¿Í·ÀÏß¹ÙÍø |  
רҵ·þÎñÆ÷ά»¤¼°Íøվά»¤ÊÖ¹¤°²È«´î½¨»·¾³£¬ÍøÕ¾°²È«¼Ó¹Ì·þÎñ¡£ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤»ùµØÕÐÉ̽øÐÐÖУ¡QQ:29769479

footer  footer  footer  footer