I am hoping someone here will give me some ideas. I am developing and system which will use a mysql database. The asp.net application will be hosted by a web hosting company which has mysql support. I will have several users of this application. Due to the fact that the company hosting the...
Okay, I went back to where I am orginally loading the code and converting it to a memorystream. And tested it by writing it back to disk. Now this bit of code worked fine yesterday, but, today it is adding a bunch of garbage to the end of the file.
Here is this code:
Dim encoder As New...
myFileMain is a Byte Array. The myFileMain stores the UTF-8 encoded original file.
The strOutFileArray3 is a string for the location of the file that has been written to disk with the hash and file length appended to the file.
Thanks, Chester
I input a XML file with UTF-8 encoding. I get the file length and hash the file, I write out the file and append the hash and length to the file.
I input this newly created file, extract the hash and length from it and then calculate the hash on data. When I view the data before and after...
Okay, here is my code:
Dim msNewStream As New MemoryStream
Dim msstreamhass As New MemoryStream
msNewStream.Write(msStream.ToArray, 0, msStream.Length - (hashsize * 8))
Dim intP As Integer = msStream.Length - (hashsize * 8)
intP = msStream.Length...
The methods will be a little different. ODBC is older than the connector. The .net connector is not to big of a download and ODBC will probably one of these days go away.
Chester
Have you downloaded the .net connector or ODBC? I prefer the .net connector for mysql. You can find it here http://dev.mysql.com/downloads/connector/net/1.0.html.
And this link will descirbe how to connect using the connector...
The mysql server will need a user created that has access from other computers or the computer where the client is located. Now the client program can either use the servers computer name or IP address to connect to the mysql server, I prefer the IP.
Chester
To make things easier, you should use import statements at the very top of your code.
Imports System.Data
Imports System.Data.OleDb
Now yu will not need to use the fully qualified name. Just use something like this:
Dim myConn as Oledb.connection 'much easier
Next you need to...
Jon,
Designing a good database is not as easy as it sounds. Especially when you start working with a relational database model. You have different types of relationships to consider, primary keys, foreign keys, possibly concatenated keys and much more. I have been designing a "simple"...
What do you mean navigate Access using textboxes? Do you want to enter a string and then query Access with it? There are several methods that are invloved with editing any type of database. What are you wanting to do? Delete records, edit records or add new records, or do a combination of...
You can look at the Sender and if the sender is Alt then set e.handled to true. I have not tried it with Alt, but it may look something like this:
Private sub myTextBox_KeyPress(ByVal sender as object, ByVal e As System.Windows.Forms.KeyPressEventArgs) _
Handles myTextBox.KeyPress
If...
am writing an application where my user makes a selection with a combo box and then it pulls up the appropriate information for the selection. If the user approves of the selection he clicks a button which adds the information to another dataset.
Everything works fine except when the button is...
This is a Windows ADO App. I have a form which allows a user to select a PO number from a combo box. I then get a dataset based on this information and bind some labels to various parts of the data. Now when the user makes a new selection I want these labels to reflect the new changes and not...
I am creating a two tier application for database connectivity. I have all of my connections, dataadapters, etc in a single class named ReqTrakData (ReqTrakData.vb)
On a form a user makes a selection from a combo box. I save this selection to a Public variable (mstrSelectedNum) which has been...
I have a datatier which has all of my connections, dataadpters, etc. One of my dataadpters pulls out a concatenated field like this:
SELECT DISTINCT ROW [tblMaster].Prefix & [tblMaster].Num & [tblMaster].Change AS ReqNum
FROM [tblMaster]
Okay the dataset (dsReqNum) is fine from the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.