|
I have written my own front-end for a car-pc project, I was using a dll called use UltraID3Lib.dll to retrieve info on mp3 files, eg. title, artist etc. UltraID3Lib.dll doesn't work on id3v2.2 and 2.4 tags, so I re-coded my front-end to use .GetDetailsOf from Shell32.dll
Anyway, after re-coding the mp3 reading part of my front-end, it works fine on my desktop computer, but when using it in my van, it crashes when it gets to a part of the program where it uses shell32.dll.
When I checked the version of shell32.dll on my desktop compared to the computer in the van, they are slightly different. My desktop computer is version 6.0.2900.3241 whereas the version in the van is slightly earlier, something like 6.0.2900.30xx.
Is this the reason for it not working, and if so, how do I update shell32.dll? I tried copying over the version in the van, but XP won't let you as it is being used elsewhere in the system. I also did a Windows update, but this didn't work either.
Any help would be greatefully recieved
|
|
|
|
|
Ok, I have more info about my problem. In the van, if I right click on an mp3 file and then select properties, summary, advanced, there is no infomation in there about the artist, track title, year, sample rate etc. that my desktop PC shows.
Why is this and what can I do to solve it. I think if I can solve this, my VB program should work fine.
|
|
|
|
|
Does the van pc have SP2 ? Perhaps that will update it ?
Sounds like a cool project, BTW.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Yes, SP2 is installed on it.
As I mentioned, when right clicking an mp3 file on my desktop computer and clicking the Summary tab, I get all the infomation about the mp3 file. This does not happen in my van. It is a strange one. The only difference between my desktop computer and the one in the van is that the desktop computer is Windows XP home with SP2 and relevent updates and the one in the van is XP Professional N with SP2. Maybe I will have to reinstall a different version on XP on it.
Oh, and Christian, if you want to see my project, have a look at this link...
http://www.mp3car.com/vbulletin/show-off-your-project/116423-volkswagen-transporter-t5-pimping.html[^]
modified on Monday, April 21, 2008 12:14 PM
|
|
|
|
|
All sorted
Did a complete re-install.
|
|
|
|
|
May be The title Of the Question Sounds Strange But I Will Explain What I mean ...
I'm Analysing Web Application And I am Very confused
The Problem Is That I didn't use T-sql in Complex Scenario so I don't Know If the T-Sql
Has the Ability To manipulate Date Like .Net Languages In Easy Way ??
Of course I Know That There are loops, conditions , interact With Variables , Builtin Methods
And Etc......
But Is it Easy To Develop , Update .........
Thanks !
You have To Search About The Truth Of Your Life
Why Are you Here In Life ?
|
|
|
|
|
Wow.
Here's the core thing
If you want to write a data driven app ( and ASP.NET has nothing to do with this ), then you need to use SQL. It's very different to VB.NET, it's a set based language. It's very powerful, I suggest you buy a book on SQL and read it. But understand, SQL is the language you use to manipulate data in your database, SQL code should not even appear in your aspx or aspx.cs files, but in your data layer.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I want to create a database application in a language other than english.
Lable and buttion captions in english.
I want the content of text boxes to be saved to the database in the foreign language.
Application should be able to insert, edit, delete.
What are the thing i have to do with vb.net code.
and what are the things i have to do with sql server, like selecting a data type.
I know how to do this in English.
can you give my some ideas or point me in the direction of a good tutorial.
Thanks
|
|
|
|
|
Not sure what you mean here. Anything that is typed into the textboxes will be saved to the database regardless of language. Use nvarchar and ntext column types to support unicode text and modify any insert and update queries with the N string prefix, e.g.
update myTable set columnName = N'unicode string' where id = 1
Do you need the ability for each record to be available in multiple languages? If so, you'll need some method of identifying and translating the text and you should setup the database to store an lcid code with each record.
Hope this helps! Rob
"An eye for an eye only ends up making the whole world blind"
|
|
|
|
|
You should take a look at the LCID property. To determine which language the system is using. Here is a code snippet I have written to determine if it's a Swedish system the application is running on.
Function Swedish() As Boolean
Return (System.Threading.Thread.CurrentThread.CurrentCulture.LCID = 1053)
End Function
Sincerely,
/ Andreas Jonsson.
|
|
|
|
|
pleese i need code recourd sound in database and coming sound from table in database access all item
exam:
stud_name here is save text data from project by vb.net2005(tybe-text)
stud_num
stud_tel
here is save sound data from project by vb.net2005
stud_name_sound (tybe_opj)
stud_num_sound
stud_tel_sound
item my project:
textbox1 to student name here is incloud text data and record sound
textbox2 to student id(num)
textbox3 to student telephon(tel)
button1 - play
button2- record (tybe sound: wave)
button3- record stop
thanks advanced
modified on Sunday, April 20, 2008 3:49 AM
|
|
|
|
|
Noone is just going to hand over code to you. We'll help you write your own code, so long as you explain what part you're hung up on.
|
|
|
|
|
You have violated a number or guidelines here. We help with code you have written; as said before we are not going to do the work for you. Second, please do not include your email address in the post--you are putting yourself at risk doing this. Also, it seems like English is not your first language. I found some of your message hard to understand. You might want to look at online translators as a double-check.
|
|
|
|
|
hi
for example i want a list of windows form name in a combo box ?
thnx
|
|
|
|
|
It's been answered in the C# forum.
|
|
|
|
|
I am wondering if there is a code to save a file with a specific file name. That file name will change with each save.
For example: I have made some word templates, this are Injury Reports for my employer. So each time it gets used, it will be saved with a different name. But I would like each one of them to have the same basic file name.
i.e. 041908-01
041908-02
041908-03
042008-01
So this is the date, and the report number.
Any suggestions?
|
|
|
|
|
There must be many ways:
1. write a small program that copies a template, renames it the way you want, then opens it
for editing.
2. write some VBA code that sits inside your template and does what you need; I trust this
is possible, but I never actually did such things.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Hello,
i want to send messages between two PCs and I have a problem with that, if i get a message from the server, i can display it in a MessageBox, but if i want to write that in a String or StringBuilder, only the first time it puts the message in the string. The other times i get a new message from the server, it shows me the message in the message box, but it doesnt put it in my string oO?
Here's the code:
//Code deleted
But there's something crazy, it shows me every time two messageBoxes if i get a message from the server, one, where the really message from the server is in, and one empty, but it isn't really empty, i checked that and i found out that the ascii code of this empty message is "0"... so is that maybe the problem? and where it could come from... i have no idea... oO
Thanks for your help
modified on Monday, April 21, 2008 1:52 AM
|
|
|
|
|
Hi, I can't see anything obviously wrong in your code, however without the server code it's a bit difficult to test. Could you post that too.
Regards, Rob
"An eye for an eye only ends up making the whole world blind"
|
|
|
|
|
The Server Class:
// Code deleted
and for multi-user the user-class
// Code deleted
modified on Monday, April 21, 2008 1:51 AM
|
|
|
|
|
Hi softwarejaeger, it looks like the problem is in the User.Process method. Notice that the client.ReceiveBufferSize seems far to large for your message... the size is in fact an 8KB block, so you need to use the return value from Client.GetStream.Read before calling Send (just as you've done in Client.DoListen). Heres the modified code:
Dim Buffer(client.ReceiveBufferSize-1) As Byte
Dim i As Integer = Client.GetStream.Read(Buffer, 0, CInt(Client.ReceiveBufferSize))
MsgPack = System.Text.Encoding.ASCII.GetString(Buffer).ToString()
Send(System.Text.Encoding.ASCII.GetString(Buffer, 0, i))
A couple of other things: vb.net arrays are zero based and are defined by specifying the upper limit, not the array length - thats why i've added the -1 to the array dim.
Also, for all programmers sakes, please avoid using GoTo A While loop is a much more elegant way of looping through this method.
Good luck!
Rob
"An eye for an eye only ends up making the whole world blind"
|
|
|
|
|
Many thanks now it works
|
|
|
|
|
In visual basic 2008 express edition
I need the code for a button that when clicked sends the text in that button to the selected window
Thanks in advance
Jamie
|
|
|
|
|
Noone is going to just hand you the code.
You don't have the Windows Internal's knowledge to pull this off. It's not as simple as clicking a button and calling SendKeys. Do you think you have the skill to have a button on your form clicked successfully without your window having the input focus?? Do you know what the "input focus" is??
|
|
|
|
|
Hello,
I am trying to do the following:
Private Sub GetDepartmentTest()
Dim myDataset As New DataSet("Databasename")
'load data from xml file
myDataset.ReadXml("C:\XmlDatabase\Data.xml")
Dim myDataRow As DataRow = myDataset.Tables("Department").Rows(0)
' the next line gives an error
Dim myDepartment As Department= myDataRow
MsgBox(myDepartment .Name)
End Sub
Class Department
Inherits Data.DataRow
Public Sub New(ByVal builder As DataRowBuilder)
MyBase.New(builder)
End Sub
Property Name() As String
Get
Return Item("name")
End Get
Set(ByVal value As String)
Item("name") = value
End Set
End Property
End Class
But I keep getting an error:
<br />
System.InvalidCastException was unhandled<br />
Message="Unable to cast object of type 'System.Data.DataRow' to type 'Department'." <br />
The error occurs on this line:
Dim myDepartment As Department= myDataRow
Can someone tell me what I do wrong?
|
|
|
|