Click here to Skip to main content
15,908,634 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do i assign a string to each item in a ListView? Pin
redeemer16-May-02 5:38
redeemer16-May-02 5:38 
GeneralRe: How do i assign a string to each item in a ListView? Pin
Chris Losinger16-May-02 6:36
professionalChris Losinger16-May-02 6:36 
GeneralDialogs question Pin
BlackRider16-May-02 3:50
BlackRider16-May-02 3:50 
GeneralRe: Dialogs question Pin
Prem Kumar16-May-02 3:48
Prem Kumar16-May-02 3:48 
GeneralRe: Dialogs question Pin
Chris Losinger16-May-02 3:56
professionalChris Losinger16-May-02 3:56 
GeneralRe: Dialogs question Pin
Nish Nishant16-May-02 4:04
sitebuilderNish Nishant16-May-02 4:04 
QuestionIs there a tool that I can find all the bmp file in one directroy (include the bmp file in exe ,dll)? Pin
16-May-02 3:07
suss16-May-02 3:07 
AnswerRe: Is there a tool that I can find all the bmp file in one directroy (include the bmp file in exe ,dll)? Pin
16-May-02 6:49
suss16-May-02 6:49 
ive written a tool a long tima ago in vb that searchs ALL files ina directory for bitmaps and extracts them:

Type BITMAPFILEHEADER
bfType As Integer
bfSize As Long
bfReserved1 As Integer
bfReserved2 As Integer
bfOffBits As Long
End Type


Private Sub cmdExtract_Click()
c = 1
a = 1
OO = 1
Dim FileHeader As BITMAPFILEHEADER 'Bitmap file header structure
myname = Dir(txtPath & "*.*")
Do While myname <> ""
a = 1
OO = 1
Open txtPath.Text & myname For Binary As #1
Dim ss As String
ss = Space(LOF(1))
Get #1, , ss

Do While a <> 0
a = InStr(OO, ss, "BM", vbBinaryCompare)
If a = 0 Then Exit Do
Get #1, a, FileHeader
If FileHeader.bfSize < 350000 And FileHeader.bfSize > 150 Then
OO = a + FileHeader.bfSize
bmp1 = Mid(ss, a, FileHeader.bfSize)
c = c + 1
FullPath = txtDest.Text & "pic" & c & ".bmp"
Open FullPath For Output As #2
Print #2, bmp1
Close #2
Else
OO = a + 1
End If
Loop
Close
myname = Dir
Loop
Close #1
End Sub



make a textbox call txtPath that you'll put the dir to search and another called txtDest for the directory to extract to, and button called cmdExtract to start extraction .

its the worse way to do it, but it works rather well
GeneralDebug ,Release build problem.. Pin
16-May-02 2:34
suss16-May-02 2:34 
GeneralRe: Debug ,Release build problem.. Pin
Chris Losinger16-May-02 3:18
professionalChris Losinger16-May-02 3:18 
GeneralRe: Debug ,Release build problem.. Pin
Renjith Ramachandran16-May-02 3:56
Renjith Ramachandran16-May-02 3:56 
GeneralStatusBar problem Pin
chen16-May-02 2:40
chen16-May-02 2:40 
GeneralRe: StatusBar problem Pin
Nish Nishant16-May-02 4:12
sitebuilderNish Nishant16-May-02 4:12 
GeneralRe: StatusBar problem Pin
lucy16-May-02 7:16
lucy16-May-02 7:16 
GeneralRe: StatusBar problem Pin
Nish Nishant17-May-02 15:59
sitebuilderNish Nishant17-May-02 15:59 
GeneralA good tool for programmer Pin
16-May-02 2:39
suss16-May-02 2:39 
GeneralRe: A good tool for programmer Pin
Jon Hulatt16-May-02 3:05
Jon Hulatt16-May-02 3:05 
GeneralRe: A good tool for programmer Pin
Paul M Watt16-May-02 4:19
mentorPaul M Watt16-May-02 4:19 
GeneralRe: A good tool for programmer Pin
Chris Losinger16-May-02 5:05
professionalChris Losinger16-May-02 5:05 
GeneralRe: A good tool for programmer Pin
Mike Nordell16-May-02 5:42
Mike Nordell16-May-02 5:42 
GeneralRe: A good tool for programmer Pin
PJ Arends16-May-02 7:35
professionalPJ Arends16-May-02 7:35 
GeneralWINSOCKS Pin
Jasmin Khan16-May-02 2:21
Jasmin Khan16-May-02 2:21 
GeneralRe: WINSOCKS Pin
Martin Ziacek16-May-02 2:32
Martin Ziacek16-May-02 2:32 
GeneralRe: WINSOCKS Pin
Jasmin Khan16-May-02 2:54
Jasmin Khan16-May-02 2:54 
GeneralRe: WINSOCKS Pin
Martin Ziacek16-May-02 3:27
Martin Ziacek16-May-02 3:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.