How To Store Data In Exe File
how to store data in exe file and change it dynamically. example is to store a password in the exe file itself and the user should be able to change the password through program.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Store Data In Exe File
how to store data in exe file and change it dynamically. i want to store password in the exe file and not in the registry and database file.
Store Data In Exe File.
In VB 6, is there any way to store a small amount of data (less than 100 bytes) in the executable file itself?
It is a small game that I want to carry the exe file on my pen drive, so I dont want to use the registry or save the data to some other file.
Store Data In Csv File
HI FRiends
I have a projet on VB in which i have to made new csv file & store 10 data per raw save it .
If Anybody help me............
How To Store Data In Exe File
how to store data in exe filejust like self extractor files do.
i want to store password in exe file itself, and change it dynamically.
Store/Open Data With A TXT File
I am making a program that stores/opens text with a txt file. I have 3 text boxs, 1 listbox and a Save button. The user types a name into text1 and types info into the Text2, then presses the save button. When that happens it saves the info from text1 and text2 into a txt file.
The problem I have is, when I open the program I need the name from Text1 to show up into the ListBox and the info from Text2 to show up in Text3 if I click the Name thats in ListBox1.
Any Ideas?
How To Store Data In Text File? HELP!!!
let say i have one combo box(constant), 3 textboxex(values) and one command button(ADD). now i have to write a program using VB to store the constant and its three values inside combobox in text file by pressing ADD button. The name of constant and its values are insert by user. Anyone can teach me how to write it?thx
How To Store/read Data To Another File?
For example, I'd like to have a file called Graphics.dat which includes all of my program's graphics. How do I save/load the graphics to the file?
P.S. I'm not meaning a res-file by this. Ie. If I would like to release an update to my program, the user would have to download the whole program instead of the small exe-file (which would contain no heavy graphics) if I'd use a res-file.
Store Data In VB Executable File???
Does anyone know how to store and retrieve the data stored in the VB executable file(*.exe) itself. I know how to do this in Quick Basic, but how do you do this in VB? Thanks!!
Data Store In Secured File In VB
hi
i am doing a project on making 2D games.But i need to store some small amount of data in a file.But the file should be unaccessible to anyone,becouse it will contain password and other secured data.how can i do this?please help me.
tanks all
Niladri
Store Binary Data In MS Access File
Hi,
I want to store binary files (Pictures) within an mdb file.
The table must bei appended with a new field "Picturefile"
how can i update my table with an SQL Query or ADOX?
This does not work:
===============
db.Execute "CREATE TABLE Backgrounds " & _
" (FileID INTEGER, " & _
" PictureData BLOB)
or
db.Execute "CREATE TABLE Backgrounds " & _
" (FileID INTEGER, " & _
" PictureData OLE)
Read Data Of File And Store Them In Array
I want to read the data (int) of an intire txt file and put them in an array, but i have some problems. Here is my code:
Dim fn As Integer
Dim Data() As Integer
fn = FreeFile
Open "C:Data.txt" For Input As #fn
Do Until EOF(fn)
Line Input #fn, Data()->"Type Mismatch" or "Subscript Out Of Range"
Loop
Close #fn
End If
fn = FreeFile
Open "C:Data2.txt" For Output As #fn
Do Until EOF(fn)
Print #fn, Data()
Loop
Close #fn
Any ideas?
Upto What Size We Can Store A Data In A File
Hello friends,
i am usinfg a structure and that structure is going to save on a file..
code snipet-->
Open file_Name For Random As #1 Len = Len(myStructure)
Put #1, 1, myStucture
Close #1
---
If structure contains more values, the Put command throws an error.
I dont know why? but i think if structure size is bigger then only it happens.
Plz tell me the allowable size in bytes that can be aaded into the file.
thanks in advance!!
hoping best from U
How To Store Binary Data From Database To XML File
Dear All,
I have some data store in database in binary format.
How I retrieve this data from database and handle it?
I can get other data from database and store it into xml file using ADO and MsXML. But I have no idea of how to store the binary data to XML file if even I can retrieve the binary data from database.
Best Regards,
the rockyu
Store Data In Excel File Continuesly From Com Port
Respected sir,
I want to store data in excel file continuesly from com port.I have a establish a connection And also take data from other system(through mscomm), and show in frontened text box of vb.but i am unable to store data in excel file. i want excel file how data will store(means I only see the excel file , when i press "connet button").If u have any idea in that plz write code and send me.My e- mail id <safiul_23@rediffmail.com>
Problem With Read Data & Store Data,Urgent!!
Basically,i need a program which can read a specific data on from notepad (BW.txt) and then store it into a new notepad.
Below is the 'BW.txt' file which generated by bandwidth monitor every 1 second.
I need to read data from "Both" column every 1 second also.
The program below can read the last 2nd line of notepad every second.
Can anyone help me to modify the code so that i can read only the last 2nd line "Both" column data??
(eg: 389.4k)
After read the data(389.4k),i need to create a new notepad and save the data into it.That's!
Highly appreciate for your help!!!!
----------------------------------------------------------------------------------------------------
The file was generated by Bandwidth Monitor http://www.bwmonitor.com/
IMPORTANT: This file is best viewed with a fixed width font. (Courier)
File: Traffic Rates Log
Adapter: Realtek RTL8139 Family PCI Fast Ethernet NIC #4 - Packet Scheduler Miniport
Date: 2007-04-06 23:30:41
Interval: 1 Sec
Unit: bit
Date Time Download Upload Both
-----------------------------------------------------------------------
2007-04-07 04:02:18 64.0K 163.3K 227.3K
2007-04-07 04:02:20 202.8K 137.0K 339.7K
2007-04-07 04:02:21 254.5K 102.4K 356.9K
2007-04-07 04:02:22 226.1K 206.8K 432.9K
2007-04-07 04:02:23 199.7K 158.9K 358.6K
2007-04-07 04:02:24 250.2K 139.2K 389.4K
2007-04-07 04:02:25 331.8K 38.8K 370.7K
-----------------------------------------------------------------------------------------
/* visual basic 5.0 and 6.0
read the last 2nd line of notepad & display the whole line on label2 */
--------------------------------------------------------------------
Private Sub btnAutoRetrieveMSG_Click()
TimerRetrieveMSG.Enabled = True
End Sub
--------------------------------------------------------------------
Private Sub Form_Load()
TimerRetrieveMSG.Enabled = False
End Sub
--------------------------------------------------------------------
Private Sub TimerRetrieveMSG_Timer()
Dim lineCNT As Long, temp As String, readLine() As String
On Error Resume Next
Open "C:Program FilesBandwidthMonitorBW.txt" For Input As #1
Do While Not EOF(1)
Line Input #1, temp
lineCNT = lineCNT + 1
Loop
Close #1
ReDim readLine(lineCNT)
lineCNT = 0
Open "C:Program FilesBandwidthMonitorBW.txt" For Input As #1
Do While Not EOF(1)
lineCNT = lineCNT + 1
Line Input #1, readLine(lineCNT)
Loop
Close #1
--------------------------------------------------------------------
Label2.Caption = readLine(UBound(readLine) - 1)
Err.Clear
End Sub
--------------------------------------------------------------------
What Should I Use To Store Data?
How should i store the data in this program?
I thought of a text file or registry but i dont know,
The program sets restrictions for users. It needs to save the value of the checkboxes someway, and then load it at log on so it will set the restrictions for that user.
i thought of storing the data to a text file in the users dir.
Thanks in advance,
Chris1990
Store Data
In my project picture box added in a form by clicking a comand button.The picturebox load in the form with having individual index number.like index 1=picturebox1.I mean its working as control array.Now i want to store two type of data ie string data & numeric data in each picturebox against its index number.Which r i need to use in my next sections.Can any one giv an idea abt that...
Store Data
Is is possible to store data in a .exe file? I want to store some text in exe (No database , No another File). Thanks for reply
Store Data
I've been using an access database for storing data in my app. But I would like to store data in text boxes so it is there each time i open the app. but i don't know how to do that without a database. I know this is elementary but I'm still new to vb.
Thanks in advance.
JO
Best Way To Store Data?
Hi,
Using VB.NET. which would be the best way to store data for a software that won't be having connection to the internet? I'm trying to avoid Access or any other DB. Is there anything else than text files?
Thanks,
Store Data In A DB
Can any one help me:
i am trying to store data into a database (Access 2000). the interface is vb. i have 5 txt fields.
i don't know how to do the connection.
i have a save button. after you click on the button, the data entered in the vb form should be stored into the database.
how i can i do that?
Thank you in advance,
PLEASE HELP!!!( Store DATA From VB Into... )
I have 10 Forms in my VisualBasic6.0 Application. Users are going to enter data in all the screen. I require a way to store all the data present in each screen somewhere. And whenever required, i need to retrieve the stored data back into my application on a button click.
Does anybody know how can it be done keeping in mind the efficiency of the application. I require it badly. Please help!
It's very URGENT...
Thanks in advance.
Store Data In A Dll
Is it possible to store Data directly in a dll or exe Program.
When yes how can I do this.
mfG Pueromane
The Data Won't Store In The Data Base.
Hello! I have the following code for inserting some data in a database. I do not know why the data is not stored in the database:
Dim a As String, b As String, c As String, d As String, e As String
Dim db As Database
Dim tdf As TableDef
Set db = DBEngine.OpenDatabase("C:ListaMatForan
aport.mdb")
db.TableDefs.Delete "tp"
Set tdf = db.CreateTableDef("tp")
' Define the fields
tdf.Fields.Append tdf.CreateField("TIP_PIESA", dbText)
For k = 1 To (MSFlexGrid4.Rows - 1) 'I know this value
' Add the table to the database
On Error Resume Next
db.TableDefs.Append tdf
a = MSFlexGrid4.TextMatrix(k, 1)
q = "insert into tp( TIP_PIESA values(" & a & " ) "
db.Execute (q)
Next
Please help. Thank you!
Store Data But Not On Spreadsheet?
I have a counter which is used to track document changes, vba code increments this counter when my workbook/form is open, and the new value is saved with the file.
Currently the counter is stored as text in a cell (hidden and set to color of background, although the "hidden" option in cell formating seems to do nothing). Using security to lock the cell means that the code cannot modify it later. I would rather have this stored off the sheet so it cannot be modified by users, just the code. Is this possible?
Thanks in advance!
Best Way To Store Config Data?
Hi,
I have a program (obviously) which holds values which, depending on what the user sets, can be showed in KGS or LBS. When the user selects LBS, all the numeric values are * 2.205. And vice versa, but I am struggling to find a way to store these when the program exists. Should I store all the values as KGS in the config file, and boot them up when the program starts as neccsary, or hold them as LBS when the user saves his preferences as LBS and vice versa?
Please help
Thanks
Ben
Store Much Data In Variable
at the moment i have a .txt that has aprox 150 lines with 80 characters per line. (aprox 15000 characters) and i would like to store all thoose characters in a variable, instead of having the .txt, so i could just move the .exe without having the .txt along with it. i started out with cutting them up in chunks and putting them in many variables with the type string. but if there is a better way i would like to hear that. any sugestions?
(sorry for bad english)
ADO/Access Store Data Help
Hey all i need some help trying to store some data in my access table.
here are some pics of what my form looks like
http://www.cfapgp.com/form1.jpg
and the second after picking some things...
http://www.cfapgp.com/form2.jpg
Now there will be some 80-90 employees that will need to be saved when the user pushes the save button. After he has chosen the times for each person, he will save it.
The problem i am running into is that it wont save more than one record since i only know how to save it by the persons name.
the code i have to populate the boxes for there names is:
Code:
Sub PopulateNames()
Dim rst As ADODB.Recordset
Dim x
Open_Database
Set rst = New ADODB.Recordset
rst.Open "SELECT ID,FullName,STMon,STMonAP,ETMon,ETMonAP,EmpNotes FROM EmpSchedule", conn, adOpenDynamic, adLockOptimistic
While Not rst.EOF
txtNames.Text = rst!FullName
rst.MoveNext
txtNames2.Text = rst!FullName
lblNotes2.Caption = "Monday's Avalibility: " & rst!STMon & " " & rst!STMonAP & " - " & rst!ETMon & " " & rst!ETMonAP & " Notes: " & rst!EmpNotes & ""
rst.MoveNext
txtNames3.Text = rst!FullName
lblNotes3.Caption = "Monday's Avalibility: " & rst!STMon & " " & rst!STMonAP & " - " & rst!ETMon & " " & rst!ETMonAP & " Notes: " & rst!EmpNotes & ""
rst.MoveNext
txtNames4.Text = rst!FullName
lblNotes4.Caption = "Monday's Avalibility: " & rst!STMon & " " & rst!STMonAP & " - " & rst!ETMon & " " & rst!ETMonAP & " Notes: " & rst!EmpNotes & ""
rst.MoveNext
txtNames5.Text = rst!FullName
lblNotes5.Caption = "Monday's Avalibility: " & rst!STMon & " " & rst!STMonAP & " - " & rst!ETMon & " " & rst!ETMonAP & " Notes: " & rst!EmpNotes & ""
rst.MoveNext
txtNames6.Text = rst!FullName
lblNotes6.Caption = "Monday's Avalibility: " & rst!STMon & " " & rst!STMonAP & " - " & rst!ETMon & " " & rst!ETMonAP & " Notes: " & rst!EmpNotes & ""
rst.MoveNext
txtNames7.Text = rst!FullName
lblNotes7.Caption = "Monday's Avalibility: " & rst!STMon & " " & rst!STMonAP & " - " & rst!ETMon & " " & rst!ETMonAP & " Notes: " & rst!EmpNotes & ""
rst.MoveNext
txtNames8.Text = rst!FullName
lblNotes8.Caption = "Monday's Avalibility: " & rst!STMon & " " & rst!STMonAP & " - " & rst!ETMon & " " & rst!ETMonAP & " Notes: " & rst!EmpNotes & ""
rst.MoveNext
Wend
rst.Close
Set rst = Nothing
End Sub
and this is the code that i have right now to save all this when the user is finished:
Code:
Private Sub Command1_Click()
Dim strSQL As String
Dim rst As ADODB.Recordset
'If MsgBox("Update Employee?", vbYesNo + vbQuestion, "Update Employee?") = vbYes Then
Set rst = New ADODB.Recordset
strSQL = "SELECT * FROM EmpSchedule WHERE FullName = '" & (txtNames2.Text) & "'"
rst.Open strSQL, conn, adOpenDynamic, adLockOptimistic
rst!SchStart = cboStartTimeMonday
rst!SchStartAP = cboStartAMPMMonday
rst!SchEnd = cboEndTimeMonday
rst!SchEndAP = cboEndAMPMMonday
rst.Update
rst.MoveNext
rst.Close
Set rst = Nothing
MsgBox "done", vbInformation
End Sub
All the people in the database have the same fields that need to be added too. (SchStart,SchStartAP,SchEnd,SchEndAP) all i need it to do is see whos name is next, add the information and then move on to the next person.
Any help would be great!,
David
Store Data In Memory
i have a client that logs into http server , the server provides it a session id .how to i store it in memory as i need it for further coding.
How To Store The Receiving Data?
hi everyone,
im facing the problem with keeping the data from what i had send. now my data is continuous sending to my vb from time to time. so i need to store the previous data and compare it to the new data that i received.what code should i use to store my data as my data is keep on changing?
can anyone help me?
thanks.
Store DDE Data In Array
I have sensor status bits being fed to 12 cells through a DDE link. This is from a machine which is cycling once per second. I want a macro to take these 12 cells and store them in an array which will be 12 columns wide and up to 50000 rows tall, This macro would be triggered when a bit from another DDE link goes high, this will make sure that the data is valid for the macro to move. Every row would have to have a unique Date and Time stamp which would have to reflect the instant the sample was taken. This would appear in another column (13th). The Macro would always increment to the next row position and when finished it would display a dialog box to tell the user that the array is full and the test is over.
Best Place To Store Data.
Ok guys, I need some opinions and help on this one.
So, I have a command button, that when pushed prompts you with a yes or no box. If yes or no is pushed, I want the data (yes or no) to be stored SOMEWHERE on the internet where i can access it, and nobody else can. I want it to add a new line to a text file on MY ftp site. So lets say 5 people have the program. They all choose yes or no. I then want to see my updated text file with the contents..
Yes
No
No
Yes
Yes
.. I want a new line added with a Yes or No (Depending on the answer the chose) in this ONE file located on my ftp whenever another person chooses yes or no (A person can choose yes or no however many times they like).. How can I do this?
Thanks.
Store Data(Textfile)
Thanks for taking your time!
I'm quite new with Visual Basic so please keep your answers simple. I'll rather be regarded as an idiot than not understanding I'm using VB 6.0.
My latest project is to store my notes in a textfile trough VB. I want the form to: 1. Show my notes 2. Make it available for editing 3. Save my notes when pressing "submit".
Thanks the this forum FAQ I've reached this far in creating:
VB Code:
Dim tmp As String Private Sub cmdClear_Click()txtPrint.Text = ""End Sub Private Sub cmdExit_Click()Unload MeClose #1End Sub Private Sub cmdSubmit_Click() Print #1, txtPrint.TextEnd Sub Private Sub Form_Load()Open "D:Notes.txt" For Output As #1End Sub Private Sub txtPrint_Change()Open "D:Notes.txt" For Input As #1 Do While Not EOF(1) Line Input #1, tmp txtPrint.Text = txtPrint.Text & tmp & vbCrLf LoopClose #1 End Sub
Although, when I launch the form and try to write something in my textbox a message saying "File is already open" shows. Please help me, I'm stuck. I would be very grateful.
How Do I Store Data On My Program
A complete beginner, I wish to be able to click one button, have a page come up with data already stored there, be able to store more data there, and save and or print it. My project has 17 command buttons, so will need seventeen separate pages, each one hidden until the appropiate command buton is pressed. Have tried using combo boxes, but cannot get them to work. Please remember in any reply that I am a complete beginner.
How To Store Data For My Application
Hello All...
I know this is a very "general" question and there is no "wrong" answer here, so I'd appreciate any and all responses.
I'm developing an application in house and I cannot decide how I want to store the information for it. It is a ticket-tracking (helpdesk) type application. As the name should imply (but if you're unfamiliar with it, I'll help you out in a moment), it is going to include quite a bit of data, especially after continued use (although, I am planning an "export"/"archive" feature). It will need (among other things).
Customer Information: Name / Contact Info. / Location
Device Information: Type / Manuf. / Location / Owner
Problem Information: Device Affected / Name / Location / Contact Info. / Problem Description
Technician Info: Name / Location / Contact Info / Group
Etc.. etc...
I've used Access Databases in the past to hold the information... and I'm really good at them... my only problem is, I want my clients to not have to have Access in order to use my app. In order words, I don't want to limit the use of my application, on whether or not the customer has Access.
I was figuring, I can store everything in TXT files and then sort the data into their own folders... but I was worried about the time constraints / system restraints this might cause.
What type of DBase / Saving structure would you recommend, if I want to keep my application available to everyone, without them needing to install any other software onto their PCs, other than my app.?
Thanks!
How To Store Data To Use Next Time?
I dont know how to store data to use it next time.
For example: I am doing the ATM machine, so when i click on the button History, it will be able to show the last transaction.
For example
Date Type Amount Balance
3/10/2004 Withdrawal $400.00 $1000.00
Anyone can help me?Thanks a lot
How To Store Data In A String?
I need to use a 3rd party function to write data into a device. The function syntex require to provide a string:
writeto( string )
However, the data that I want to write is a record structure consist of
r1 char[1]
r2 char[1]
r3 int[1]
r4 datetime[1]
r5 char[1]
r6 char[2]
r7 char[2]
Can someone teach me how to change this data into a single string in VB so that I can use the function.
Thanks.
Packets Data Store
Hi,
I programming a network sniffer. In order to manipulate the income packets I need to store all of them. My problem is that I cann't save all the packets in the main memory because the network I use is broadband with high thruput and soon I get memory overflow.
How can I store the packets and retrieval them quickly and efficiency?
thanks,
Eyal
Best Way To Store Data(not Resolved)?!
I need to create some type of database.
What I need to store is an ID I can reference, that I can set and information related to that ID.
Say, for example, the user puts in Apple, and they want to be able to set a definition for Apple, and then look-up Apple and get the definition for it.
I haven't really worked with databases in VB, so some source code would help a lot.
Data Store/retreival
A general question really.
What is a good method of storing database data in memory so that for example, if a table has 3 columns;
id, firstname, lastname
on screen you only show a list of firstnames in a list box or any other control, and when one of the entries is clicked you get a part of the screen to show you the complete firstname and lastname
And if wanting to add, edit, delete an entry it would be easy to manage.
(I'm learning better data store/retreival techniques, I'm wondering how the super pro's do it)
Which One Is The Best To Store Temporary Data..
hi,
currently iam doing ERP related project...in this i need to store some information temporarily......
for this which one is best....either ARRAYS..or TEMPORARY TABLE in the backend or store that in the grid....
plz suggest me..
thank u.
Store Data In TextFile?
Hi All,
I'm accepting some data from user in a text box and I want to store it in a textfile.Can anybody tell me how to store this data/text from the text box in a text file and how to save that file at perticular location?
Thanks in Advance,
Anita.
How Do I Store Data To Be Recalled Later
I'm making a calculator program what i want to know is how to store data to a certain name say store a number when a button is pressed like the + button so when equals is pressed all it has to do is take is take picanswer.print = num1 + num2 I'd have to store the + sign into the memory as well so it can recall the function it was mean't to use any suggestions would be a great help thanks
The Best Way To Store Temporary Data
Hi,
I am creating a network application. Messages bounce around the network from client to client. My application may recieve the same message from different sources. It needs to decide if it has seen the message before, so each message is assigned a GUID. A list of recent GUIDs that have been seen need to be stored, with details such as where the message came from etc.
The number of messages will be fairly high, coming in fairly quickly. What would be the best way of storing them. i.e. the quickest to access, check and update?
Thank you,
Jamie
Where To Store Input Data....
Hi,
I'm writing a very simple VB6 application but have a problem with the following. I want the user to enter a few text strings in textboxes. These inputs I would like to store so that when the application is re-opened, the data is available. What would be the best method to achieve this. Do I already need a database for this or can it be done in a simple way?
Thanks
hajunk
Store A Data Table
i am newbie in vb, i have experience with ms access vba
i wonder if i can store a data table in vb as i do in ms access, in other words can vb work as a front and back end, or do i have to use another database engine as a back end.
Thank you
|