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

VBʹÓú¯ÊýÖ¸Õë~¸ßÊÖÀ´ ºÜÖµµÃÑо¿

ÍøÉÏ Ä³Ä³´óʦµÄvbº¯ÊýÖ¸Õë¿´²»¶®
²»¶®»ã±à ~~~ µÈµÈ~ ºÜ¶à²»¶®
vbÏëʹÓú¯ÊýÖ¸ÕëÄѰ¡
Ŀǰ¸ã³ö¸ö¶«Î÷£¬µ±È»Ò²¾Í´íµÄÒ»ËúºýÍ¿ÁË£¬²»¹ýÓеãЧ¹û
ÏÖÔÚ¾ÍÏëÇó¸ßÊÖ¸øµã°ïÖú
ÔÚ±ê׼ģ¿éÀï¸ãÒ»¸ö¿Õº¯Êý  Ò»¸öfun2
public function Fun1£¨byval v as long £© as long

end function

public function Fun2£¨byval v as long £© as long
    Debug.Print "fun2->" & v
end function
 
'form1
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)

dim orifp as long
dim fp as long
dim callfp as long
Private Sub Form_Load()
    CopyMemory orifp, GetFunAddr(AddressOf Fun1) + 22, 4
    CopyMemory Fp, ByVal orifp, 4
    CopyMemory orifp, ByVal Fp + 1, 4

    CopyMemory callfp, GetFunAddr(AddressOf Fun2) + 22, 4
    CopyMemory callfp, ByVal callfp, 4
    CopyMemory callfp, ByVal callfp + 1, 4
    CopyMemory ByVal Fp + 1, callfp, 4
    Fun2 12345&
end sub

Private Function GetFunAddr(ByVal addr As Long) As Long
        GetFunAddr = addr
End Function

'½á¹û fun2-> 12345

¡¯ÒÔÉÏ´úÂ빩´ó¼Ò²âÊÔһϠµ÷ÓÃÒ»´Î¿ÉÒÔ  ¶à´


Ïà¹ØÎÊ´ð£º

ΪʲôÓÃVB¸Ä±ä²»Á˹¤¾ßÀ¸°´Å¤µÄ¿í¶È - VB / ¿Ø¼þ

Ϊʲô¹¤¾ßÀ¸°´Å¤µÄ¿í¶È¸Ä±ä²»ÁË,ÔÚÊôÐÔÀï¸ÄÁËÓÖ±ä³ÉÔ­À´µÄÊýÖµÁË

´óºú×ÓÕæÀ÷º¦£¬»Ø´ð»ù±¾¶¼ÊDZ¬Áϼ¶µÄ
´óºú×ÓÉý¼¶Õæ¿ì°¡£¬Õâ²Å¼¸Ìì¾Í5Ìõ¶Ì¿ãÍâ¼ÓÔÂÅÅÃûµÚÒ»ÁË
ÏëÏëÎÒÕâ5¸ö¶Ì¿ã»ìÁ˲¶à8Äê²ÅµÃµ½µÄ¡£

»Ø¸´ ......

vb ÖÐ - VB / »ù´¡Àà

ÏÖÔÚÎÒÏë¸ù¾ÝtreeviewÉÏÿ¸ö½ÚµãµÄȨÏÞ£¬Ã»ÓÐȨÏ޵Ľڵ㲻Äܱ»Ñ¡ÖУ¬¶øÇҳɻÒÉ«£¬ÔõôʵÏÖ£¬ÔÚÏߵȡ£¡£¡£
Õâ¸ö£¿¡£¡£¡£
Ã²ËÆÃ»·¨¡£
ÊÔÊÔÄܲ»ÄܸÄijЩnodeµÄÑÕÉ«£¬¼Ç¼ÏÂÉϴεÄnodeclickÀïµÄnode¡£
Ï´εã»÷µÄÈç¹ ......

vb - VB / »ù´¡Àà

ÎÒÏë°ÑwordÁí´æÎªxmlÖ®ºó£¬ÓÃvb¶ÁÈ¡Õâ¸öxmlµÄÄÚÈÝ£¬ÇëÎÊÈçºÎʵÏÖ£¿
dim f as integer
dim b() as byte
dim s as string
dim L as long
f=freefile()
open "abc.xml" for binary access read as #f
......

vb¶ÁÈ¡ÓÃwordת»»³ÉµÄxmlÀïµÄÊý¾Ý - VB / »ù´¡Àà

Private Sub Command1_Click()
Dim MyString() As String
Open "a.xml" For Binary As #1 ' ´ò¿ª¸Õ´´½¨µÄÎļþ¡£
ReDim MyString(LOF(1) - 1)
  Put #1, , MyRecord ' ¶ÁÈëËùÓÐ×Ö·ûµ½±äÁ¿ÖÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ