Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Extract Resource File?


Hello,

Is there code out there that will allow me to extract the resource file from a vb executable? I want to grab the languages from the resource file.

Thanks!




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Extract A File From A Resource
Hi friends, I want to extract a file from a resource file, but don't know how to do. How can I do this ? Pls give me the source code. Thanks.

Looking For Tool To Extract Hard-coded Strings Into Resource File
I’m looking for a tool to automatically extract strings from VB project to resource file. The project is too large to do the job manually.

So far, I’ve found one - ResMe String Extractor, which looks pretty cool, but the price tag seems a bit too high ($595). Anybody knows cheaper or possibly free tools?

Thanks!

How To Extract Resource File From Other File?
I want to grab a few resources from shell32.dll. I know there is some resource grabber software out there, but I only need to do this one time so I can't justify purchasing one of these.

Any help on how to grab a resource file from another file would be appreciated.

.: Is It Possible To Extract &"Multiple&" Files From Resource (RES) File?
Hi everyone!
I need some another help on I/O file, please..
In this case, i'm using custom Res file and i want to extract multiple files from it to e specified destination. I an almost similar question in the forum, but a forgot to ask whether it is possible to extract more than one file in a push.


vb Code:
Private Sub Command1_Click()     Dim intFF as Integer     Dim strPath as String     Dim bytData() as Byte      intFF = FreeFile     strPath = App.Path & "data.dat"     bytData = LoadResData("Writings","CUSTOM")      Open strPath for Binary as intFF          Put intFF, , bytData     Close intFFEnd Sub


But the code above extract a single file only which is 'data.dat'. So, how should I do to extract let's say 3 custom files in a turn?

Anyway, thanks to schoolbusdriver for the code

Thank you.

Extract Cabfile From Resource?
Yo...

I've been reading a lot on those resource files...
and i figured i could use one.

So i added a .cab file to my exe...
and now i want to create the resource file on a custom location...
but as a test i used the following:

Code:
Private Sub Form_Load()
Dim byteArray As Byte

byteArray = LoadResData(101, "CUSTOM") '<-- the error is on this line...
Open App.Path & "file.cab" For Binary As 1
Put #1, , byteArray
Close #1
end sub()
...but now i get a runtime error 13: type mismatch

I suspect .cab files cant be copied from the resource??
or am i doing something wrong, here?

Thanks...

(Master)Tom.

Extract Resource With Progress
Hello! this is My first post..
I need help to create-update progress bar when extracting .res file from compiled project. Code was taken from: www.vbcode.com. In My case res file is from 2-13 mb, so I would like to see when extracting is finished on slow machine. Thanks in advance.

Resource Files : How To Import From A Text File Into A Resource String Table
Hi every one,

I am using a resource string file. I need to fill my string table with data from a text file, but the "paste" menu item is disabled. How to copy from a text file into a string tabel(resource file) without typing all the data?

Thanks

Opening A File, Extract Data And Send A File Via Infrared
Dear Friends,

I am new to this forum and also new to Visual Studio. I need to produce a program which does the following...

1.Use System File Watcher to know that a file has been received in a particualr directory from a mobile phone.

2.Open that file with notepad (the file is not opened by notepad by default), Find the word 'Body:' and save the string found after it.

3.Send via infrared, a file '.jpg' loacated in a particular directory with the same string name as the one stored.

Can you kindly suggest to me some coding?
or at least some website where I can get some tips, tutorials, help.... Cause I don't have the MSDN help installed!

The coding I require is on how to open the file (which is arrived and systemfile watcher noted) with notepad..and how to extract data from it.

Thanks,
Franklin

Copy File From Resource File To Hard Drive As VbHidden
Is it possible to copy a file from the resource to the hard drive as vbHidden ?

I've made a Graphical User Interface for several commandline tools.
I want to include the commandline tools in a resource file and then
when the user starts the GUI, the commandline tools get extracted
to the hard drive as vbHidden.

Most people don't have "Show hidden files and folders" enabled.
This way it looks like there is only one app, instead of a GUI with
all kinds of extra apps, because that looks ugly (in my opinion).

This is the code I'm using now for one commandline tool.


VB Code:
Private Sub Form_Load()    Dim sBuffer As String    sBuffer = StrConv(LoadResData(101, "CUSTOM"), vbUnicode)    Open App.Path & "WhoLockMe.exe" For Output As #1    Print #1, sBuffer    Close #1End Sub

Programittically Download A Zip File And Extract The Csv File Into A Bcp
This is a pretty tough one. There is a website PJM.com that contains energy pricing data in csv format. The file names are by date, ex. 20001129-da.csv The da is for Day Ahead pricing. the way the program is designed, based on the date, it creates a file with the same as the one the web site that is going to be downloaded into. The pprogram then takes the data from the website and inputs it into the file that the program creates with the same name using msinet.ocx and inet1. THIS WORKS JUST PEACHY.
The problem I am having is that past data is zipped up into a directory that contains 4 subdirectories and finally the last one contains the file. I am not sure how write a program that will extract the data from that zip so that it will be stored in the root directory where all of the other csv files are contained. I need some serious help on this one. Thanks in advnace.
Mike Reese
Web App Developer
Sunoco, Inc

Play Midi File From Resource File Using MciSendString
Is it easy to call a midi file from a resource file?
I have made a resource file with a down.mid song,
I was hoping to be able to play sound with out having to include it with my exe?

I have tried dozens of different ways with no luck, there was an example code in the bank, but it had so many options and different modules,

the code I have now is;


Code:
Private Sub Form_Load()
Temp = mciSendString("play " & "down.mid", 0&, 0, 0)
End Sub


how can I adapt this to use the resource file?

These are just a few of failed attempts;


Code:
Private Sub Form_Load()
Temp = mciSendString("play " & "101", 0&, 0, 0)
End Sub



Code:
Private Sub Form_Load()
Temp = mciSendString("play " & 101, 0, 0)
End Sub



Code:
Private Sub Form_Load()
Dim b As String
b = StrConv(LoadResData(101, "custom"), vbUnicode)
Temp = mciSendString("play " & b, 0&, 0, 0)
End Sub



Code:
Private Sub Form_Load()
Dim b As String
b = StrConv(LoadResData(101, "custom"), vbUnicode)
Temp = mciSendString("play " & "b", 0&, 0, 0)
End Sub



Code:
Private Sub Form_Load()
Temp = mciSendString("play " & 101, 0&, 0, 0)
End Sub


Thanx

couple of the threads I read
http://www.vbforums.com/showthread.php?t=297909
http://www.vbforums.com/showthread.php?t=429148
http://www.vbforums.com/showthread.php?t=417117

Loading A Word.doc From A Resource File To A Temp File.
The code below is what I use to load a Bitmap from a directory on the C drive to a Bookmark in a Word doc.

Code:
.ActiveDocument.Shapes.AddPicture FileName:="C:SKM SoftwaregraphicsX.gif", linktofile:=True, savewithdocument:=True, Left:=425, Top:=218.5

This code has worked just fine, but now I am putting all the bitmaps into a Resource file in my application.
The code I use to load a Bitmap from a resource file to an Image box is shown below.

Code:
frmReportPg2!ImgCarPn.Picture = LoadResPicture(101, vbResBitmap)

The bit I can't work out is how to load a Bitmap from the Resource file to the Word Bookmark.

Help would be much appreciated.

Thanks
Steve.

Resource File Problem - Extracting File To Path
Hello.

Could you please tell me how to extract file from the *.res file into a selected path? I already loaded all files into resource but r unable to process them from inside it so need to extract them. Coudn't find anywhere. Please help me with a line of code.

Thanks and best regards

How To Save RTF File In A Resource File And Load It To RichTextBox
Hi,
Does anyone know how to save RTF file in a resource file and then load it to RichTextBox?

Thanks.

Setting Up A Data Input File As A Resource File
Hi,

Is this possible what I am trying to do. I have a file which my app reads from at initialisation to find the paths for certain directories. I have copied it below. Is the easiest way to make sure that the app can always find this file to read, so no matter where the app is installed the file will always be with it to have the file as a resource file.
I tried opening the resource editor and creating a custom resource file using my inout file. The problem is that if this is correct I have no idea how to read in the data from the resource file. Loadresdata only reads in bytes, I am looking for some way to read in lines at a time, as I would do if I was reading in normally from a file.

Is any of the above correct? If not what would be the best way of doing what i want to do?

Cheers,

John

Here is the inout file I was talking about:

#This file contains all the settings paths for the Database and Upload and Download
#directories. Any additional comments added in should be preceded by a # symbol.
#It would be wise to keep a copy of this file under a different name in case this version gets
#corrupted or changes somehow. When editing only edit the paths after the equals sign.
#Do not leave a gap between the path name and the equals sign and keep all data in the
#same order as it is here now.

#Database path + filename
Database-Directory=C:PiperTrack.mdb

#upload directory
Upload-Directory=C:Dan Stuffupload

#Download Directory
Download-Directory=C:Dan StuffDownload


How Can I Extract A .RAR File Using VB6??
Hi every1..

It's really nice to be here.. well i'm a new mmbr in here, n i got a little question..

How can i extract what's in a .RAR file using VB6??

could any 1 plz help??

thanks..

Extract From File
ok I'm trying to extract information from a text file which i do not know the length of. the first line reads
" Todays highest temperature is 23 C 24/01/2004" (there could be numerous lines ) each with different temperatures and also the dates will be different 'cos you input the temperature everyday.
this code does some of it can i use a loop do extract the data i need,
also not quite sure how to fill the temperatures and the date into arrays?
here is my code:


VB Code:
Dim String1 As String ' textfileDim sNum() As Integer ' array to store the temperaturesDim sDate() As Integer ' array to store the datesDim Num As IntegerDim sString As String ' temp temperature store String1 = Text1.TextString1 = Replace(String1, " Todays highest temperature is ", "") ' remove this sentenceString1 = Replace(String1, "C", "") ' remove CelciussString = Mid$(String1, 2, 2) ' extract first number which is the temperatureNum = CInt(sString) ' convert string to integer String1 = Replace(String1, Date, "") 'remove dateDebug.Print NumDebug.Print Date frmChart.Text2.Text = String1 frmChart.ShowEnd Sub

Extract From WP 5.1 File
Hi All,

I want to extract some lines from WP 5.1 documents and write the extracted lines to a CSV file for future import in a database or Excel file. All WP documents is build of several pages – and each page contains one (1) table with different structures. The lines I want to extract from, are all the rows that include 7 columns and where the first columns first character are a digit. Each row must be written as a line where the contests of each column are separated by semicolon. I don’t want to run or open any other programs then my own VB-app. If anyone know how to do this I would really appreciate the help! Thanks in advance!


Marci Sarwan (marci_sarwan@yahoo.com)



P.S. If it's not too much trouble can you please provide some sample code with the solution. Thanks a million!

Extract Zip File
Hi,

Is it possible to extract a zip file from visual basic application ?

thanx,
pokpoki.

Extract Image From File?
I'm looking into using DirectDraw for a skinnable program (yes, it's probably overkill, but it works so well) but I want the skin to be a single file and let it contain multiple images (so I only load in memory the ones I need) and also values for colors, text, and other information. I'm new with DirectX and I've used the CreateSurfaceFromFile to create a surface, but I really don't want to extract the image, save it to a temporary file, and load it in. I'd rather load it from a binary red directly. Is there a way I can get DirectX to see information in that sense as an image?

How To Extract Macro's From Doc File
is there any method to extract the macros from a given .doc file.If yes,how?

Extract Text From .doc File
Here is the first draft of my procedure to retreive but text from a .doc file, but it seems that embeded objets are a real hassle to remove from the text as I have not yet found then starting and ending quotes or chars delimiting the embeded object.
I would appreciate a hand on the subject


Code:
Private Sub Command1_Click()
Dim fichier$, numfile%, textfromfile$, lastpos%, i%
Dim Remplacements$, Suppressions$
Dim TabSupp As Variant
Dim TabRemp

CommonDialog1.ShowOpen

If LCase(Right(CommonDialog1.FileName, 4)) <> ".doc" Then
MsgBox "Ce n'est pas un fichier .doc"
Exit Sub
Else
fichier = CommonDialog1.FileName
numfile = FreeFile
Open fichier For Binary Access Read As numfile
textfromfile = Space$(LOF(numfile))
Get #numfile, , textfromfile
Close #numfile

textfromfile = Right(textfromfile, Len(textfromfile) - 1536)
'and here I end up with text and embeded objects, I need to know where an embeded object starts and where it ends to be able to remove it from text

'verification des embed
Dim StartPos&, EndPos&, StartCount&, EndCount&, StartChar$, EndChar$

StartPos = 1
EndPos = 1
StartChar = Chr(19) '
EndChar = Chr(20) & Chr(1) & Chr(21)


'suppressions totale
Suppressions = "1,2,3,4,5,6,19,20"
TabSupp = Split(Suppressions, ",")
'remplacement espaces
Remplacements = "7,8,9,10,11,12,13,149"
TabRemp = Split(Remplacements, ",")

For i = 0 To UBound(TabSupp) - 1
textfromfile = Replace(textfromfile, Chr(TabSupp(i)), vbNullChar)
Next

For i = 0 To UBound(TabRemp) - 1
textfromfile = Replace(textfromfile, Chr(TabRemp(i)), Chr(32))
Next

Text1.Text = Trim(textfromfile)
End If

End Sub

How To Self Extract Exe File In Vb (URGENT)
I have created an exe file but don't know how to open or run it back in vb6. My exe contains a self extracted zip file, and I need these files to run my vb program. Can someone please give me some ideas? Thank you!

Extract Binary File
Please help
I need to read and extract binary file. The binary will contain header message and raw data in the middle. My program needs to identify the header and then read the raw data. Please help me or give direction on how to extract binary file. Thanks

Any Way To Extract Code From .exe File?
Hi, I've just created a Encrypting / Decrypting program, and would like to know if theres anyway to to extract the code. I made he .exe, but accidentally deleted the forms . All I have is the project file.

Thanks,
e.

Extract File Using Unrar.dll
how to extract file using this dll and module?

Extract Only One File From Winzip
Hi,
I have a winzip file consisting of multiple files and folders. I just want to extract a single file out of it via VB. is that possible?

Extract File From Database
Hi all,
I want to know that how to retrieve a video file from ms-access database embeddas
as ole object and then play it in window media player control. I know how to save image and retrieve it
but to to eal with .avi files.

How To ADD/EXTRACT Files To A .Res File
I need to know a little more, how do i add files (my .exe and its dependencies) to a .Res file... and then how do i add that .Res file to another .Exe file that can UNPACK the files from the .Res file and run them...
So that I can send my users ONLY one .Exe file.... ??

I've read up on the forum,but not found a good/understandable/working explanation...

So i need to know:

-How to make the .RES file in VB6
-How to add .EXE and .OCX/DLL to it
-How to pack that .RES file into another .EXE and have that .EXE
unpack the files that were packed in the .REs file,and then run the .EXE it just unpacked...

Can anyone please explain that,since a lot of you seem to know how to do this... ???

Extract Information From A PDF File
Dear all you,
Would you please give us your instructions on the following questions:
- A brief description about structure of a PDF file.
- How I can extract an image, all text value with text's layout from a PDF file by using VisualBasic6.0. VB.Net source code.
Please mail to me at: hoangwhm@yahoo.com
Thank you in advance.
Hoang.

How Do I Extract A Byte From A File?
I want to get the byte and that he will be deleted from file.
how do I do that?

sorry if i'm repeating my questions.. i didn't find the answer...

Extract Text From File
[file.1.2.3]: Found: jason/lpz !!!

how do i get:

file.1.2.3 = string1
jason = string2
lpz = string3

Extract File Icons...
Hi,

I am showing files with their path, size and creation date in report style listview control. I also want to show file icons in the control just like Windows File Search. Can you tell me how can I extract file icons ??

Thanks.

Extract From Excel File
Hi,

I want to extract information from an Excel file using VB version 6 and then put this information into the corresponding fields in an SQL database.

I think it would be easiest to extract the info from the excel file and put it into a recordset.

Any help would be much appreciated,

Thanks,

Danii

Extract Zip File From Setup
How to Extract a Zip file included in Setup.Exe while finishing setup

Extract An Icon From An Exe File
i want to use as my app icon say the icon of notepad is there a way to extract it ? i do not want to use screen capture cuase the icon i get is not exaclty the same

How To Extract Attachments From .eml File?
i need a way to extract the attachments from a .eml file. It needs to be able to work for .eml files anywhere on the computer and not just in outlook folders. For example if I had a file at C: heemail.eml i would want to extract the attachment from it to C: heattachment.exe, any suggestions or code would be appreciated.

Extract Part Of A File
Hello, I'm new here.
Hope you can help with the following problem...

I want to extract a part of a file.

I want to send this part, say the first and last 64 bytes of the file to a function.

Does anyone of you know if that's possible and if so, how to do that in VB6 ??

Ask for more info if you need it.

Kleinvaag

How To Extract Info From A .wav File?
Does anyone know how to extract data from a .wav file.
I dl a trial version of a program to convert an mp3 to
a wave file. But after the 30th time it adds some stuff
to the file that I don't want. And I need to know how to
get rid of it. Any suggestions would be appreciared.

Thanks
ande211

How Do I Extract An Icon From DLL-file
I have a really serious problem. I was building my own explorer but when it came to adding icons I got stuck. You can retreive the file association from the registry, and in the registry it also tells you where the program Icon is located and an integer number. But I don't know how to use this information.
Anyone help me please!

Extract DNA Sequencing File AB1
Hi, all

I have a problem need your help. My VB program will need input a DNA sequencing raw file with the external of ab1 as the data resources. how can I write code to display the figure and the sequencing text file?

Thank you.

Mica

Extract VB Code From MDE File
I work on a big company and i was tell to modify an Acces DB System, the problem is that i was only provided with the mde file and they don´t have de mdb one. I just need to extract the VB code from the forms, specially one of them, i've tried to unblock de mde but it doesn't let me add new VB components to de form, so, if i can't extract the vb code i'll have to do it all from the bottom.

Thank for any response...

How To Extract Image From A AVI File?
I have developed an application to play a AVI file. I wish to have a image (possibly .gif or .jpeg) generated for a particular AVI frame. How do I achieve this?

Thanks in Advance!

Extract An Image From File *.dll
hi anybody, can you explain how to extract an image(icon) in a *.dll file like shell32.dll



Edited by - Need Guru help on 6/24/2008 12:04:04 AM

Extract .MP3 From .SWF (flash) File
Hello,

I am trying to extract an mp3 sound file from a flash video or swf file. I have had no leads so far as to how i could do this. Let alone i have only found one free program that will do this,swfextracter.exe.
Any help would be appreciated.

Thanks, crazy.




Edited by - crazyoldman on 6/18/2007 6:53:35 AM

Extract Exe/other Binaries From A RES File
How do you do it?
Code:
LoadResData(101,6) can be used to get string data called 101. But how would i get a binary out of it, and write it to a file?

Thanks

Is There Anyway To Extract .mid File (MIDI) From .exe???
Maybe res editor or something?

Thank You

How To Extract Image From A AVI File?
I have developed an application to play a AVI file. I wish to have a image (possibly .gif or .jpeg) generated for a particular frame. How do I achieve this?

Thanks in Advance!

To Write .ico File From Resource File To A Folder
How can I extract icon files (.ico) and a cursor files (.cur) from my application's resource file and write them to the app.path in runtime ?

Thank you

Copyright © 2005-08 www.BigResource.com, All rights reserved