home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Planet Source Code Jumbo …e CD Visual Basic 1 to 7
/
6_2008-2009.ISO
/
data
/
zips
/
VB_Decompi2142181302009.psc
/
GlobalDims.bas
< prev
Wrap
BASIC Source File
|
2009-01-10
|
5KB
|
106 lines
Attribute VB_Name = "GlobalDims"
' VB Decompiler Lite
' Programmed By [ Zaid Markabi ]
' ___________________________________________________________________________________________________
'| |\_______________________
'| ############### ### ##### ###### ###### ##### | |\0 1 1 1 0 0 1 1 0 0 0 1 0 0 1 0 0 1 0 0 1 1 1 1 0 0 1 1 0 0 0 1 0 0 1 0 0 1 0 0 1
'| ############## ##### ### ## ## ###### ##### | Zaid Markabi |=\ 1 0 0 1 0 0 0 0 0 1 1 0 1 0 0 0 1 1 1 0 1 0 0 1 0 0 0 0 0 1 1 0 1 0 0 0 1 1 1 0
'| #### ### ### ### ## ## ## ## ## ## | |==\0 0 1 1 1 0 1 0 0 1 0 0 1 1 0 0 1 0 1 1 0 0 1 1 1 0 1 0 0 1 0 0 1 1 0 0 1 0 1 1
'| ### ### ### ### ## ## ##### ## ### ## | zaidmarkabi@yahoo.com |===\ 1 __________________________________ 0 1 0 0 0 1 1 1 0 1 0 0 1 0 0 1 0 0 0 1
'| ### ########### ### ## ## #### ## # ## | |====|>| Development For Our Digital Life | 1 1 0 0 1 1 1 0 1 0 0 1 0 0 0 1 1 0 1 0
'| ### ############# ### ## ## ## ## A R K A B I | VisualBasic Programmer |===/ 1|__________________________________| 0 1 1 0 1 0 0 0 1 1 1 0 1 0 1 1 0 1 0 0
'| ############## ### ### ### ## ## ## ## ############ | |==/0 0 1 1 1 0 1 0 0 1 0 0 1 1 0 0 1 0 1 1 0 0 1 1 1 0 1 0 0 1 0 0 1 1 0 0 1 0 1 1
'| ############### ### ### ##### ###### #### #### ### 2009 ### |Syria ( Arabic )-Tartous|=/ 1 0 0 1 0 0 0 0 0 1 1 0 1 0 0 0 1 1 1 0 1 0 0 1 0 0 0 0 0 1 1 0 1 0 0 0 1 1 1 0
'| ############ | _______________________|/0 1 1 1 0 0 1 1 0 0 0 1 0 0 1 0 0 1 0 0 1 1 1 1 0 0 1 1 0 0 0 1 0 0 1 0 0 1 0 0 1
'|___________________________________________________________________________________________________|/
'
' Em@il : zaidmarkabi@yahoo.com
' Web site : www.YazanMarkabi.Jeeran.com
' I hope to hear from you ,
Global FileName As String
Global FilePath As String
Global CHAR As Byte
Global CHARn() As Byte
Global FilePos As Long
Global LastSentenceText As String
Global LastSavedSentence As String
Global MaxSentenceLong As Integer
Function LoadImage(FileName) As Boolean
On Error GoTo Err
LoadImage = False
frmExtractingData.LastImage.Picture = LoadPicture(FileName)
LoadImage = True
Exit Function
Err:
End Function
Function IfItIsLettel(StrText As String) As Boolean
If InStr(1, "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz :-_0123456789", StrText) > 0 Then
IfItIsLettel = True
Else
IfItIsLettel = False
End If
End Function
Sub ExtractNext()
Dim I As Integer
If EOF(1) = False Then
Dim FileHeader As String
Dim FileType As String
Dim HeaderLong As Long
' Get the next header ( 3 charts is enough )
For I = 0 To 2
Get #1, FilePos + I, CHAR
FileHeader = FileHeader + Chr(CHAR)
Next
Get #1, FilePos, CHAR
If frmExtractingData.ChkImages.Value = 1 Then
' Define types of images ( Headers )
If Left(UCase(FileHeader), 2) = "BM" Then
FileType = "Bmp"
HeaderLong = 0
End If
If UCase(FileHeader) = "JFI" Then
FileType = "Jpg"
HeaderLong = 6
FilePos = FilePos - 6
End If
' Gif and Png in FULL version
' Extracting Images ( Jpeg , Bmp , Gif , Png )
If FileType = "Bmp" Or FileType = "Jpg" Or FileType = "Gif" Or FileType = "Png" Then
ReDim CHARn(LOF(1) - FilePos)
Get #1, FilePos, CHARn
Open App.Path + "\Temp\" + Mid(FileName, Len(FilePath) + 1, Len(FileName) - Len(FilePath) - 4) + Format(FilePos, "000000000000000") + "." + FileType For Binary As #2
Put #2, 1, CHARn
Close #2
If LoadImage(App.Path + "\Temp\" + Mid(FileName, Len(FilePath) + 1, Len(FileName) - Len(FilePath) - 4) + Format(FilePos, "000000000000000") + "." + FileType) = True Then
If FileType = "Bmp" Then
SavePicture frmExtractingData.LastImage.Picture, App.Path + "\Temp\" + Mid(FileName, Len(FilePath) + 1, Len(FileName) - Len(FilePath) - 4) + Format(FilePos, "000000000000000") + "." + FileType
End If
Open App.Path + "\Temp\" + Mid(FileName, Len(FilePath) + 1, Len(FileName) - Len(FilePath) - 4) + Format(FilePos, "000000000000000") + "." + FileType For Binary As #3
HeaderLong = LOF(3)
Close #3
GoTo ImgEx
Else
Kill App.Path + "\Temp\" + Mid(FileName, Len(FilePath) + 1, Len(FileName) - Len(FilePath) - 4) + Format(FilePos, "000000000000000") + "." + FileType
End If
End If
End If
If frmExtractingData.ChkSentences.Value = 1 Then
' Extract Sentences
If IfItIsLettel(Chr(CHAR)) = True Then
LastSentenceText = LastSentenceText + Chr(CHAR)
Then
'BinChr(CHAR)
Thni