Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

vbÅжÏ.bmpÎļþÊÇ·ñ´ò¿ª

Open App.Path & "\tu\hb.bmp" For Binary As #100
ÓÃopenÓï¾ä´ò¿ªÎļþ,ÎÒÏëÓÃifÓï¾äÅжÏÕâ¸öÎļþÊÇ·ñ´ò¿ª,¾ÍÊÇ˵Èç¹ûû´ò¿ª,¾Í´ò¿ª,ÇëÎʸ÷λÅóÓÑÔõôд?
ÊÇ·ñ´ò¿ªÊÇÖ¸ÊÇ·ñÒѾ­Óû­±Ê´ò¿ªÁËô?»¹ÊDZðµÄÈí¼þ´ò¿ªÁË?
Èç¹ûÊÇ»­±Ê,¿ÉÒÔÓÃFindwindowº¯ÊýÅжÏÓÐûÓдò¿ª

Ϊ-1ÓÐÁ½ÖÖÇé¿ö,¿ÉÒÔͨ¹ýAPIº¯ÊýGetLastErrorÀ´ÅжÏ.Èç¹ûGetLastErrorµÄֵΪERROR_FILE_NOT_FOUND(ÖµÊÇ2),Ôò±íʾÎļþ²»´æÔÚ;Èç¹ûÊÇERROR_ACCESS_DENIED(ֵΪ5),Ôò±íʾÎļþÕýÔÚʹÓÃÖÐ,ÆäËüµÄ¾Í¸ù¾Ý¾ßÌåµÄ´íÎóºÅÇø·ÖÁË.

¶àлÁ½Î»ÅóÓÑ,¾ÍÊÇÓÃopen´ò¿ª,Ï£ÍûÁ½Î»Ð´µÄÏêϸһµã,лл°¡!!


²âÊÔ¹ý?
ÅÄÄÔ´üÏë³öÀ´µÄ°É?
ÎÒÓû­±Ê´ò¿ªºóÔõô¿ÉÒÔÖ±½Óɾ³ý?

ÒýÓÃ
»»ÖÖ˼·£¬Èç¹ûÏëÒª¶ÔÒ»¸öÒÑ´ò¿ªµÄÎļþʹÓà FileCopy Óï¾ä£¬Ôò»á²úÉú´íÎó¡£¾ÍÊÇ˵Èç¹û±¨´í£¬ËµÃ÷ÒѾ­´ò¿ª

´úÂ룺

on error goto A1
  FileCopy App.Path & "\tu\hb.bmp", "hb.bmp"
  kill "hb.bmp"
  'Èç¹û²»±¨´í£¬ËµÃ÷ûÓдò¿ª
    Open App.Path & "\tu\hb.bmp" For Binary As #100
    ......
  exit sub
A1:
  msgbox "ÎļþÒѾ­´ò¿ª"
end sub


ÉèÖÃÒ»²¼¶ûÁ¿,ÔÚ´°Ìå¼ÓÔصÄʱºò¸³ÖµFalse,ÿ´ÎOpen App.Path & "\tu\hb.bmp" For Binary As #100
ºóÃæΪ¸Ã±äÁ¿¸³ÖµTrue
È»ºóÔÚÿ´Î´ò¿ªÖ®Ç°ÅжÏһϸñäÁ¿
ÎÒÕâÀïûVB,×Ô¼ºÊÔÊÔ

ÒýÓÃ
²âÊÔ¹ý


Ïà¹ØÎÊ´ð£º

¹ØÓÚASP.net(vb)²¥·Å¼à¿Ø¼ÏñµÄÎÊÌâ

ÎÒÓг§¼Ò×öµÄASPµÄ¼à¿Ø¼Ïñ£¨DVR£©µÄ¾ÖÓòÍø²¥·ÅµÄÔ´³ÌÐòÓë¿Ø¼þ£¬ÏëÒªÓÃASP.net×öÒ»¸öÊÓƵ»Ø·ÅµÄ³ÌÐò£¨ÀûÓÃËûµÄ¿Ø¼þ£©µ«²»ÖªÈçÏÂÈ¥×ö£¬Íû¸÷λָµã¡£
ÏȸãÇå³þËûÃǵĿؼþÊÇÔõôÓõÄ,
È»ºó¾ÍÖ±½ÓÓúÃÁË.
²»¹ý,Èç ......

VB ½ûÖ¹Ö¸¶¨´°¿Ú±êÌâÀ¸²Ëµ¥

Õâ¸ö³ÌÐòÊǹ̶¨µÄ£¬±ÈÈçcmd.exe
´ò¿ªCMDºó£¬Êó±êÔÚCMDµÄ±êÌâÀ¸¿ÉÒÔµã»÷ÓÒ¼üºÍ×ó¼ü£¬µ¯³öÏàÓ¦µÄ²Ëµ¥¡£

ÎÒÒª´ïµ½µÄÄ¿µÄÊÇ£ºÎÞÂÛÊÇ×ó»÷»¹ÊÇÓÒ»÷CMDµÄ±êÌâÀ¸¶¼²»Äܵ¯³ö²Ëµ¥¡£
»òÕßÄܳöÏֲ˵¥Ò²ÐУ¬µ«Ö»Äܳö ......

vb MSFlexGrid1.Row ʵʱ´íÎó'30009'RowÊýÖµÎÞЧ

´úÂëÈçÏ£º
Private Sub MSFlexGrid1_SelChange()
  If MSFlexGrid1.Rows = 1 Then Exit Sub
  If MSFlexGrid1.Row = 0 Then Exit Sub
 
  grid_row = MSFlexGrid1.Row
......

VB »ñÈ¡ÍøÒ³Ô´´úÂë

Ò»¸ö²éѯijÐÅÏ¢µÄASPÍøÒ³£¬Ìá½»²ÉÓõÄÊÇpost·½·¨£¬²éÕÒ½á¹ûµÄÍøÒ³±ØÐëÓÒ¼üµã»÷¡°²é¿´Ô´Îļþ¡±²ÅÄÜ¿´µ½ÕæÕý²éѯ½á¹ûÍøÒ³µÄÔ´´úÂ룬ÓÃä¯ÀÀÆ÷²Ëµ¥¿´µ½µÄÊDzéѯǰµÄÔ´´úÂë
ÓÃVBÓÐʲô°ì·¨¿ÉÒÔ»ñÈ¡µ½Õâ¸ö²éѯºóµÄÔ´´ú ......

VB Îı¾¿ò

×Ö·û´® m1="E"
×Ö·û´® m2="F"

Èç¹ûtext1.text=m1+m2µÄ»°  Ôòtext1ÏÔʾµÄÊÇ EF

µ«ÊÇÈç¹û
×Ö·û´® m1="E"
×Ö·û´® m2="6"
Èç¹ûtext1.text=m1+m ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ