Perfect MP3 File Info Reading Tools
Hello,
I want to have this from mp3 files:
Size Duration Freq. Bitrate MPEG ver. MPEG layer
ID3v1 & id3v2
(Title Artist Album Comment Year Track)
I have found a lot of information about it, but some of them read info not correctly from mp3, other reads correctly, but don't from other mp3. Also I detected that it reads not correctly information from files witch have non-alpha strings (other language strings)
What you can suggest? I need really fast code and I do not want to use any ocx, but if there are no way I do.
Please help me.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Perfect Sync Software SQL Tools
Does anyone know anything about "Perfect Sync Software SQL Tools" (http://www.perfectsync.com/SQLTools.htm)? If not, what is the concensus for the best way to access MySQL via VB?
Reading Info From A File
Hi guys,
Im pretty new to visual basic and have only learnt the basics. Anyway I've been set an assignment which is to create a train information monitor screen, the ones that show the next trains to arrive at a train station. The problem is I want to store the train departure times and destinations in a file and retrieve the necessary records when needed.
Basically what I have in mind is to get the current time from the system clock and then depending on this time gather the next eight trains to be arriving. Do you have any suggestions on the file type I should use? If I use a TXT file how should I lay it out?
Here is an example of I'm going to store the data:
-------------------------------
1025 Chichester
1030 Littlehampton
1045 Giuldford
-------------------------------
I hope you understand what I mean.
Any suggestions on improving my current idea would be greatly, greatly appreciated!!!
Thanks in advance.
Reading A Info File
I have this textbox that is hidden, which is where I put the information.
I am wondering how to read the data from the text file and how to use the information.
Edit:
Duh! I was having a brainfreeze. Use variables
But how would I do the first part...
Thanks in advance,
MikeJ
Reading A File To Get The Hex Info
I'm trying get the hex number from this file as it a record pointer, that tells me what the last record read from a dat file is. It looks like F8F52000, but I need to read from the file and then convert it to dec.
Thanks
Reading Info From A File
I have a txt(say text1.txt) file that has information in the following format:
How are you
Hello
What a beautiful day
1/25/00
I would like to input each line into an array. How can I do this?
This is not working:
Dim A As String
Open "text1" For input As #1
Line input #1, A$
myarray(0) = A
I am getting the first word in the first line stored in the array instead of the entire line. Also how can I process all the lines into each array? I would like to have it as follows:
myarray(0) = "How are you"
myarray(1) = "Hello"
myarray(2) = "What a beautiful day"
myarray(3) = "1/25/00"
Any help greatly appreciated
Zack
Reading Info Frm A Txt File
i have asked be4, and i got a reply, but i dindt understand it, or know how to use it for what i needed:
say i have a txt file that holds "456GGT55F4" on the first line.
how can i:
Replace that data with what a user enters into a text box
Call the data up and use it in a label.caption.
Please include an explanation so i understand what im doin and can do it again when needed.
thank u for ure time
Reading File Info {solved}
Hi,
I have a file with a number in it, how do i get this number into a variable?
dim num as integer
Open (App.Path & "frames.txt") For Input As #intfile
num = (this bit i dont know)
any help will be much appreciated
Thanks
Dave
Reading File Info Into Different Textboxes...
Hi..I have a file which looks like this
txtBox1|4
txtBox2|7
txtBox3|5
I'd like to read in the file and have the values be read into the Texboxes....
so txtBox1.text has 4
I have the following code....but I need some help as it doesn't work that good...
VB Code:
Public Sub OpenBestand() On Error GoTo ErrHandle Dim elements() As String frmInput.BestandVenster.DialogTitle = "Open file..." frmInput.BestandVenster.Filter = "TXT File(*.txt)|*.txt|All Files(*.*)|*.*" frmInput.BestandVenster.FilterIndex = 1 frmInput.BestandVenster.ShowOpen fnum = FreeFile FileName = frmInput.BestandVenster.FileName Open FileName For Input As #fnum Do Until EOF(1) Line Input #fnum, data elements = Split(data, "|") "frmInput." & elements(UBound(elements) - 1) & ".value" = elements(UBound(elements)) MsgBox EOF(1) Loop Close #fnum Exit Sub
Editing Multiple Files By Reading And Inserting Info From An XML File.. How???
I have about 3,000 files that I have to edit by inserting some text into the files based on an external XML document. So I was looking for a program that would edit all of these files in one shoot by reading an XML file with the text to insert into each file. Each file needs different text inserted into it from the XML file.. so I can't just do a global 1-shot change..
Is there a program that can do this? or do I have to script something of my own to do this?
Thanks
Append A Word Perfect File
Did anybody has an experience with opening a Corel Word Perfect file from a VB application and appending a text file into it?
Difference Between Tools->AddIn And VBE->Tools->References
Hi everyone
I have developed an Excel VBA based Utilities pack (in an AddIn file - the filename is "MyAddIn.xla") with a couple of custom functions and a couple utilities. The links to the required references for this .xla file are added programmatically as it is loaded or opened (it has an workbook_open event procedure in it). The link to this AddIn of mine - appears as "MyAddin" in the Available AddIns dialog box - itself is manually done (with a workbook open and active) by going to Tools -> AddIns -> Browse and then selecting the specified file (in this case to "d:deepakMyAddIn.xla") and then clicking OK and Ok in the 2 dialog boxes that follow.
With this done, I notice that when I try to use any of the custom functions made available in my "MyAddIn.xla" file, from a newly created workbook they all work ok fine. However, when I try to use them in an existing workbook, the functions in my "MyAddIn.xla" file are, for some reason, not visible to this existing workbook. They do, however, become visible once I go to VBE -> Tools -> References and then tick the check box against my AddIn - appears as "MyAddIn" in the available references dialog box.
Any suggestion as why is this happening? Further, is this supposed to happen? I thought that once an AddIn is installed and its check box is ticked from the worksheet front end (by going through Tools -> AddIns ->), all the functionality provided in the referred to AddIn would become available to all workbooks that point forward. Am I missing something here?
Best regards
Deepak Agarwal
Reading 'Bit' Info?
Here's a question some of you will probably find simplistic:
I've got a particular set of flags I want to turn on and off for a given object. Something like:
Flag1 = 1
Flag2 = 2
Flag3 = 4
Flag4 = 8
etc.
Then, if MyFlags = 13, I know flags 1, 3 and 4 are on, and 2 is off.
However, I can't find a good way to check for the flags. Looping through and subtracting the various amounts is slow. Isn't there some way to do this using variables of type 'byte'? Perhaps another method?
Reading Info From Textfile
I want the following text separated into differents controls in my form
8750;1;ask;3;5;4
8751;2;ask;4;5;5
8752;3;ask;5;5;5
...
...
the four first numbers of every line should be choosable in a combobox and when i choose 8751 for example the "2" should appear in label1 and "ask" in text1 and so on.
I'm pretty new at vb so all I've manged to do is get everything in the combobox only. I've checked the split function but I really don't get it. Could anyone give me some pointers or an example code?
Reading Info. From Site
Hey there guys I wanted to know how would you be able to read information from a site, for example my site has a database (Text file) with passwords and user name in it. My program must read from the site and then only open when a password from my database is entered.
The text file has this in it: (Example)
===================
kong1234
===================
Text file name is "password.txt"
So then my program will put password.txt into a text box or something where my program will read:
VB Code:
If txt_password.text = text1.text then' Access Granted!else' You know the deal!end if
Well you get the idea. Thanks alot. Cool
Reading CD DVD Capacity Info Etc
Ok peeps, this may be a tough one.
Ive written a program that can intelligently pack whatever files u throw at it onto either a CD or DVD in the best order to fill the disc to the brim without wasting space (well it packs them into a folder at the mo) ,this is great when u have over 10 gigs of stuff you want on the minimum amount of discs. Ive dragged the folder into nero to make sure it fits ok and thumbs up at the mo but im not 100% convinced my size calculations are correct.
My problem is........im not 100% sure if ive got the algorith right in making sure i fill the disc correctly.
eg, if i write a 1gig file to a dvd then it doesnt just take up 1gig, its 1 gig and a bit (to account for the file system entry etc). Ive found that its 128 bytes overhead on each file. This bit works ok, but if i write a 3 gig file away, the standard ISO mode disc format wont allow files over 2 gig so it has to be written in UDF mode. Problem here is that udf mode takes up a lot more overhead.
In short, im not sure what calculation i do for file system/file size to fit it into the disc.
i need to find out how much space is on the dvd im burning to first by reading the manufacturer info on a disc, then i need other info to work out how to calculate the available/used space correctly cos im getting a lot confused.
Anyone ever done anything like try to write something similar to nero ?
Reading DLL's Or Extracting Info From Them?
Hi, my friend gave me 2 DLL's and I wanted to use them for API Declares. He said he won't tell me what I need to do for the API Declares. So I was wondering if there was a way to extract the information from the DLL or somehow read it.
Reading Info From Another Prog..
Hi ppl
Does anyone know how I can be notified if a video change has taken place.
Basically my program needs to know if the video being played has changed, and take action, or even better, to read its properties.
Is there a way to read any of these things.
I am trying to read from WinDVD, whether the current DVD is anamorphic or not.. and some more settings. like the aspect of the dvd...
The filter file ivivideo.ax is what is used.
From knowing this, is there a way to read different things from it when it is loaded in memory through API...
Please, any comments would be great...
KT
Reading Info From Excel
Here is what I want to do.. I have dates and descriptions in an Excel spreadsheet and I want to read then through VB and place them in Outlook Express as a task... can this be done
Reading Dll Version Info
I've got a program that calls an external dll and I want to be able to read the dll version info. From the c dll I can use the GetFileVersionInfoSize & VerQueryValue calls however I was wondering if there was a better way to do it from VB?
Rob
Reading Device Info From COM Port
Have a device attached to the com port wich reads info from the comm port.
When connected to Hyper Terminal the output looks like :
Code:
COMPANY OHCI root hub, class NUMBER/NUMBER, rev NUMBER/NUMBER, addr NUMBER
USB attached: USB-Hub.
COMPANY Technology Inc. product 0xNUMBER, class NUMBER/NUMBER, rev NUMBER/NUMBER, addr NUMBER
USB attached: USB-Bridge.àü##1P
HDD OK
Model: NUMBER
LBA : NUMBER
VCO OVERLAP OK
CARD OK
NUMBER
NUMBER
NUMBER
+------------------------------+
| BOOT VERSION : <NUMBER> |
| HARDWARE VERSION : <NUMBER> |
| SOFTWARE VERSION : <NUMBER> |
+------------------------------+
LNUMBER
QNUMBER
But when I have the input from my program I get also weird chars in it
Like ■ (but then a open square).
Above is with a timer set on 100
When I use MSComm_OnComm
Code:
Select Case MSComm.CommEvent
' Handle each event or error by placing
' code below each case statement
' Errors
Case comEventBreak ' A Break was received.
Info.SelText = "A Break was received" & vbCrLf
Case comEventFrame ' Framing Error
Info.SelText = "Framing Error" & vbCrLf
Case comEventOverrun ' Data Lost.
Info.SelText = "Data Lost" & vbCrLf
Case comEventRxOver ' Receive buffer overflow.
Info.SelText = "Receive buffer overflow" & vbCrLf
Case comEventRxParity ' Parity Error.
Info.SelText = "Parity Error" & vbCrLf
Case comEventTxFull ' Transmit buffer full.
Info.SelText = "Transmit buffer full" & vbCrLf
Case comEventDCB ' Unexpected error retrieving DCB]
Info.SelText = "Unexpected error retrieving DCB]" & vbCrLf
' Events
Case comEvCD ' Change in the CD line.
Info.SelText = "Change in the CD line" & vbCrLf
Case comEvCTS ' Change in the CTS line.
Info.SelText = "Change in the CTS line" & vbCrLf
Case comEvDSR ' Change in the DSR line.
Info.SelText = "Change in the DSR line" & vbCrLf
Case comEvRing ' Change in the Ring Indicator.
Info.SelText = "Change in the Ring Indicator" & vbCrLf
Case comEvReceive ' Received RThreshold # of
' chars.
Info.SelText = "Received RThreshold # of chars" & vbCrLf
Case comEvSend ' There are SThreshold number of
' characters in the transmit
' buffer.
Info.SelText = "There are SThreshold number of characters in the transmit buffer" & vbCrLf
Case comEvEOF ' An EOF charater was found in
' the input stream
Info.SelText = "An EOF charater was found in the input stream" & vbCrLf
End Select
I get
Change in the CTS line
Change in the CD line
Change in the CD line
Change in the CTS line
A Break was received
A Break was received
What am I doing wrong
When showing the event codes with a timer I get
Code:
Private Sub Timer1_Timer()
'Info.SelText = MSComm.CommEvent & vbCrLf
End Sub
0
0
0
0
5
5
1001
1001
1001
1001
1004
1004
En then it stays that way
[Help] Reading Info From Game Port
when a game offers a certain port to attain information from, such as kills/deaths, etc. how would you go about actually reading and logging such information?
it's a UDP socket.
i've successfully connected to the server ip/port but i just don't know how to read the info it sends through it.
could anyone offer some helpful tips?
thanks
Reading Info From Bios Menu
Hi,
I am working with a HP Proliant DL380 Server. The BIOS Menu contains a field called Server Asset Text. This is in a section where information about the server can be enterd into the bios.
Does anyone know how to write a VB script that could read that certain information from the bios menu, under a windows environment. Server is running Windows 2003 Server.
I 'd gratefully appreciate any help.
Thanks,
Erdal
Reading Info From An Access Table
I just want to read and write some infos to an access table from vb... I know it's simple but how could I do it with an ADODB.Connection ???
thanks !
Reading Additional Info From .Wav Files
Is there a way in VB of extracting the additional information that you can store in a wave file such as artist/title?
I'm sure that Ive seen it in other VB programs...
Any help greatly received...
Reading Additional Info From .Wav Files
Is there a way in VB of extracting the additional information that you can store in a wave file such as artist/title?
I'm sure that Ive seen it in other VB programs...
Any help greatly received...
Need Help With Saving And Reading Info From A Database.
I am creating a Lan Café kinda program I've got my server and client programs working fine but I now need to add some sort of username and password feature so I know whos logged in. I know nothing about how to use databases with vb and have read a few things on this forum but couldnt find anything that was what I was after. I need to be add new members for example First Name, Surname, UserName, Password so when the client tries to connect it will check to see if the username and password are valid.
hope this makes some sence and i understand there isnt going to be a simple answer
Cheers
Ste
Reading Forms Without Control Info(header)
Hi
Is there any way that I can recogonize where in a form the 1st line of user code i.e. ignore the info about the controls and all other options etc. (the code VB generates by itself)
eg: Form listing:
VERSION 5.00
Begin VB.Form Form3
Caption = "Form3"
'
'so on upto...
'
'
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'
'Last line of "generated code" above
'
'First line of user code follows - I wanna start reading from here
'
Private Sub Command1_Click()
Me.Hide
Form2.Refresh
Unload Form3
----------------------------
I hope i have been able to put my point across - anyone with any bright ideas??
Thanks in advance
Question Load A File Into Tools Bar
I would like to know if anybody know how to load a ocx file onto the VB 5.0 bar tools. In this case is Crystal Report file.
files like this "crystl32.ocx"
Please let me know as sson is posible
Opening Multiple Files Reading Info, Closeing Moving On
im trying to create a program that will open an MP3 file, read the ID3 tag (only V1 at the mo, but will progress if i can get the rest working)... yeah, open the tag then store each bit of info in an array then finally create an XML file that will be read by a website im producing in ASP which will let me search throu it all for genre, filename, artist etc etc. Ive got the XML conversion and id3 reading bit working nicely, but i dont know how to make the program search the computer for files matching the mp3 extension, in Winamp for example there is a folder list and a "Recurse Subdirectorys" which is basically what im wanting to do, but i dont know where to start . Help
Toby
p.s. i know there are other programs that do the same kinda thing for free, but im learning both VB and ASP so i wanna do it myself
Excel And Vb , Reading Info From Cells Gives Me A Overflow Error [ Resolved]
this is the code i have :
VB Code:
Private Sub Form_Load()xlsfilename = App.Path & "small.xls"Set xlApp = New Excel.ApplicationxlApp.Workbooks.Open xlsfilenamexlApp.Worksheets("qrysmall").Activateacces.makeconnectionDoEvents For i = 2 To xlApp.ActiveCell.CurrentRegion.Rows.Count acces.addrecord xlApp.ActiveSheet.Range("A" & i).Value, xlApp.ActiveSheet.Range("B" & i).Value, xlApp.ActiveSheet.Range("C" & i).Value, xlApp.ActiveSheet.Range("D" & i).Value, xlApp.ActiveSheet.Range("E" & i).Value Me.Caption = i & " van de " & xlApp.ActiveCell.CurrentRegion.Rows.Count Me.Show DoEventsNext i MsgBox "Klaar met converteren."xlApp.Workbooks.CloseSet xlApp = Nothing End Sub
acces.addrecord < with this sub i add the readed data into a recordset of a access file (it gives me a overflow error at the xlApp.ActiveSheet.Range("A" & i).Value
even after removing the items at row 67 it still gives me an overflow. how can i fix it? or what might be the problem?
Send Form Object Info And Reading The Server Response
I have a form object,
I set all the input text and all.
I want to be able to send it to a server and read the HTML code that is sent back.
The response HTML will have another Form and I want to put it into a HTML object.
I really need help with this, please show me how. I am not good with the form objects.
How I Can Make The Hiden Folders && Files Display On Dir && File Tools?
how I can Make the Hidden Folders & Files, Display on Dir & File Tools?
When I do put The "Dir" Tool And make The Code On Form Like This:
Dir1.Path="C:Windows"
the "Dir" tool it display only the normal folder and dosen't show the hidden Folder
and my Quetion is:
how I can Make the Hidden Folders & Files Display on Dir & File Tools?
and if that is impossible, did exist someway to display the hidden folders and files on a "listbox"?
Reading File Vs Reading SQL Server Table
I have to make a choice between reading a EXCEL spreadsheet or connecting to a SQL server and selecting data from a database(table). Which would be better. I will also be connected to an ACCESS database in the application as well.
Perfect Snake
I made the snake move!
any suggestions for my game?
Rotate, Example Perfect
my problem is to rotate bitmap equal to the example found in net a someone to help me? thanks
Perfect Screenshot
i was wondering, you know how the main loop auto erases the screen, well sometimes when im taking a screenshot i get annoying blackness cuz i caught it while drawing the black a beleive. Well i was wondering, is it possible to make like a key handle to stop the printscreen key and make a varible TakeScreen = true, then when the mainloop comes along at the end after everything is drawn if TakeScreen = True then take the screenshot?
Just wondering.
-Andrew
Perfect Display Help
'this are the text in my richtextbox;
>> means it is under the >
[>: Unfiled]
[>>: data 1]
data 1
[>>: data 2]
data 2
[>>: data 1]
idea 1
[>>: data 2]
idea 2
[>: Untitled]
[>>: data 1]
data 1
[>>: data 2]
data 2
[>>: data 1]
idea 1
[>>: data 2]
idea 2
[>: Unknown]
[>>: data 1]
data 1
[>>: data 2]
data 2
[>>: data 1]
idea 1
[>>: data 2]
idea 2
Can anybody help me to do this??
example select; "[>: Untitled]" then a message box will appear;
1 - [>: Unfiled]
if i select [>>: data 2] of [>: Untitled] then a message box will appear;
2 - [>: Untitled]
2 - [>>: data 2]
if select [>>: data 2] (4th >>>) of [>: Unknown] then a message box will appear;
3 - [>: Unknown]
4 - [>>: data 2]
Perfect Case
i want
VB Code:
HeLLo WoRLD!
to become
VB Code:
Hello World!
is there a quick way to do this? i dont want the upper and lower case letters to be mixed, i just want it to be normal.
Perfect Newbie On DB2...
I know the way to listing or enumerate sql server from my lan...
But is possible to listing or enumerate DB2 Server via VB or VBA???
"Reading" Custom Cursor Info From Within Program
Hi - I'm writing a program which loads and uses various custom cursors for various situations. I set the mousepointer to 99 and load the cursor I need with
Me.MouseIcon = LoadPicture(Pfad_ & "Graphicscursor1.ico").
I need to know if there is a way for my code to recognize which custom cursor is currently loaded. I tried
If Me.MouseIcon = LoadPicture(Pfad_ & "Graphicscursor1.ico") Then Exit Sub
but that didn't work. Anybody know how to do this? Thanks in advance.
Png, Pixel Perfect Colision DX8
How would I go about doing pixel perfect colision detection using DirectX8? I imagine it'd have something to do with individual pixel colors but i need some (allot of) guidance. I use mainly png files for my game so please keep that in mind when making any suggestions or posting any links.
Replies are appreciated.
Pixel Perfect Collusion
hi
i have a problem with the pixel perfect collusion detection
when i start my program in 8bit mode, it works correct
when i start it in 16 or 32bit mode, it doesn't work
(example: http://www.owl-soft.de/vb/ppc.jpg)
is that because of my code or does it general not work in 16 or 32bit mode?
if you need more information, i can give you the code
Perfect Square Function
i need some help with part of a program i am making and i have run into some trouble and thought maybe someone could help me out.
here is the code that i have already done. you can see where i need help or maybe have some code wrong.
Function PerfectSquare(ByVal intNumber As Integer) As Integer
Dim x As Double
x = Sqr(txtNumber.Text)
y = ? *****test to see if it's a whole number*****
If x = y Then
intNumber = True
Else
intNumber = False
End If
End Function
Private Sub cmdDone_Click()
Unload Me
End Sub
Private Sub cmdPerfect_Click()
Dim x As Double
lblAnswer.Caption = PerfectSquare(x)
If x = True Then
lblAnswer.Caption = txtNumber.Text & " is a perfect square."
Else
lblAnswer.Caption = txtNumber.Text & " is not a perfect square."
End If
End Sub
Perfect Precision Numbers?
I have been thinking alot lately about how to create a library that would allow me to perform mathematical operations with perfect precision. I wouldn't need to display the actual results of the operations (since this would be impossible when working with irrational numbers), but I would want to be able to perform comparisons between these numbers without any rounding error whatsoever.
I can easily create an infinite precision integer class by storing it as a linked list of bytes.
I can then extend that to an infinite precision rational number class by storing it as (integer / integer). It would be easy to perform addition, multiplication and division between these rational numbers since you can just perform the appropriate operations on the 2 integers that make them up.
ie. rationalA = (a / b)
rationalB = (c / d)
rationalA * rationalB = (a * c) / (c * d)
since that is just multiplication between 2 infinite precision integers, it is easy to write code to perform that.
My problems come when I try to extend this to be able to represent all real numbers (more specifically the set of all computable real numbers).
Initially I thought that it may be possible to represent any real numbers by storing it in the form (rational ^ rational). For the typical example of sqrt(2) this works great ((2/1) ^ (1/2)), recall that rationals are just (int/int). However, this is easily disproven with the example 1^(sqrt(2)) which cannot be stored in that form.
My next theory was that I could store it in the form (rational ^ rational ^ rational ^ rational ^ ...). If this would work it would be easy to perform comparisons between 2 of these numbers (I won't go into how here, but trust me that it would be if you don't get it). However, this also will not work. The example of (sqrt(2) + 1) cannot be stored in this form.
My next theory was that I could store a real as a finite sum of the previous format (ie. (rational ^ rational ^ rational ^ ...) + (rational ^ rational ^ ...) + ...). This is where I am at now. I am not sure if this is possible. Take the example (a^b) * (c^d). I'm not sure if this can be rewritten in that form. If this does work then I'm pretty sure I can easily perform comparison operators between numbers in this format using some mathematical manipulation.
However, if that doesn't work, then my next idea would be to store them as a finite sum of terms, where a term is the product of a finite number of items in the format (rational ^ rational ^ ...). However, I think this format would prove difficult to manipulate in order to evaluate comparison operators between them.
Once I get that part figured out it will allow me to perform addition/subtraction, multiplication, division, and exponents/roots between any 2 reals. But then I would still have to tackle the trig operators, which I believe are the result of an infinite series. I'm not sure how I would be able to represent that in order to evaluate comparisons between them.
Does anybody have any input on this? Or know of anybody that has already done this? perhaps a ready-made library?
I know there is alot of research into interval arithmetic, but that does not eliminate rounding error, it just informs you the limits of the potential rounding error.
|