|
I am developing a test application at work, the item being tested operates with a serial comm port, and a network port. I am looking for either VB 6 objects or VB.net 2003 objects to interact with the device. I need to send data strings to it, recieve data strings, change communication settings and speeds. I would appreciate any and all objects and any code samples anyone could provide.
Phill Goin
|
|
|
|
|
Hi Phill,
There is some nice code and steps given in the MS KB which you can access from the given link below –
http://support.microsoft.com/kb/823179
The steps can be used for creating application to access Ports (whether Serial and Parallel).
Have a nice day.
Regards,
Gary Bigman.
Software Engineer
ComponentOne LLC
www.componentone.com
|
|
|
|
|
Thank you for the Information, I am so far successful with the comm port part of the code, it the network access to a device plugged in directly thru a cross over cable that is making my life difficult.
Any information on communicating on that port would be appreciated.
Thank you for the quick response.
Phill Goin
|
|
|
|
|
It's no different than any other TCP/IP based network. You have but two devices, each still requires it's own IP address on the same subnet. If the NIC that the device is plugged into has an IP of 192.168.0.x and the device is on 10.x.x.x, it's not going to work. Both NIC's have to be on the same subnet.
Other than that, it's going to be standard Sockets based communication. "vb6 sockets"[^]
|
|
|
|
|
Thank you for your assistance, I am able to set the IP addresses of both the machine and device, but it is the connecting, data transfer and interaction objects that I have no idea what to use. I would prefer VB.net 2003 but VB6 or VB.net 2005 will work in a pinch.
Thanks all
Phill Goin
|
|
|
|
|
Hi i'm using an access database. My dataset and table adapters are all generated by the "add datasource" wizard and hence all my select, insert, delete and update commands too. If i add a record to a table it inserts fine and i can update it and save. as soon as I add another record and edit the various fields in my datagridview and save, an error occurs (which is the same as the title of this message). i am working in a single user environment and using Vs 2005. Is there something I need to check for? I tried turning off optimistic concurrency but it still doesn't work.
Mr Oizo
|
|
|
|
|
This means that your SQL statement didn't update the number of rows in the database that the DataAdapter/TableAdapter expected it to. If you're using entirely designer generated code, this is usually caused by a starting SQL SELECT statement that is selecting data from more than a single table in your database.
The Adapters only work with SQL that selects and modifies a single table. You can use an Adapter to SELECT from multiple tables, but the resulting code for the UPDATE, DELETE, and INSERT will all fail if autogenerated. The autogenerated code uses the SELECT statement to generate the remaining SQL statements, but it cannot cope with a SELECT that retrieves data from more than one table.
|
|
|
|
|
Hi. Thanks for the reply. I think ill delete my dataset and adapters and regenerate them. I think it could have son=mething to do with the fact that my coulumn in the database named "AbsoluteLength"(which returns the absolute path of the file) is only 50 characters long. I changed it in the database to 200 characters just for safe keeping and it still shows 50 characters for max length for of that field(according to the apapter) . thanks
Beric
Mr Oizo
|
|
|
|
|
Just asking where i can collect any info on coding in java as just got to learn java or another language other than vb.net, any ideas gladly appreciated and if possible any sites similar to code project that can help as no java on this site.
Keep up the good work all
|
|
|
|
|
There's thousands of sites dedicated to Java. Don't tell me you couldn't type "Java programming" or "Java development" into Yahoo or Google??
|
|
|
|
|
i had already just thought i would ask the experts for advice. thank you
|
|
|
|
|
The experts here are just about all .NET/Windows based, not Java. Find a few Java forums and start asking around. THOSE would be the Java experts and know the better sites.
|
|
|
|
|
How can I make my VB application stop functioning when a certain date has arrived without it being obvious in the source code.
I use VB 6.0 and SQL 2000.
|
|
|
|
|
By being very creative?? Really, if we all just said how we do it, we'd be violating our own security by "giving away the keys to the kingdom." The key is hiding your information in plain sight by employing judicious use camouflage.
VB6 isn't supported by Microsoft anymore, and so library support for VB6 is also fading. Libraries that do things like registration and expiring trials.
You'd have to come up with your a method of using and encrypting data that you use to determine the date the app was installed, or the number of times the app was run, or how long the app has been running, or ..., or ..., and even any combination of those information. You store it in some out of the way place that's on everyones machine, either in the Registry or the filesystem somewhere, or both using filenames and registry keys that look like they belong there.
|
|
|
|
|
I am currently working on a program that will open on it’s own each day.
I have tried using the task scheduler, but I keep getting: access is denied (0x80070005)
I have looked in to creating a window service to accomplish this task. I have found a window service
example that would make you system speaker beep every three seconds, that works fine. My question is how can I make a window service that will call a specific program
Programming environment :
Visual Basic (Visual Studio 2005 Pro)
.Net Framework 2.0 SDK
Can anyone out there help. Thanks in advance
|
|
|
|
|
creating a service that calls a programme is probably not the best thing to do.
since a service will start before the user logs in any calls to start a programme (wich requirs a user to be logged in) could result in some very strange behavior
If my help was helpfull let me know, if not let me know why.
The only way we learn is by making mistaks.
|
|
|
|
|
Thank you for your reply
And it was helpful
It may steer me in an easier way
I am trying to launch the program so that I will see the messages that it will display.
The program is for Prescriptions, when to reorder, and a reminder when to take pills
If you would have any suggestions would be helpful
Thanks again
|
|
|
|
|
Code_Addict wrote: I have tried using the task scheduler, but I keep getting: access is denied (0x80070005)
Access Denied usually means that the account you told the Scheduler to use to launch your app either is the wrong username or you gave it the wrong password, or both. The Scheduler uses that account information to launch your app under those credentials.
|
|
|
|
|
I have two files with fields shown as below
xvEntryID:47F92F70 8E5B46EE547C9ECE
xvTo:NOTES:"Clayton N Corrao/QAE5"<cn=clayton n="" corrao="" o="QAE5">
xvFrom:NOTES:"Notes Admin/QAE5"<cn=notes admin="" o="QAE5">
xvDate:Thursday, 26 July 2007 20:15:44
xvSubject:#12 - Message with 2 Attachments
I have to compare ONLY the entries (Entry is the text followed by colon) corresponding to each of those fields (xvEntryID, xvTo, etc) in both the files and return if they are the same or different, using VB.NET.
I will be happy if someone can help me with the basic idea of how to start off with it.
Ravi.
|
|
|
|
|
Is this by any chance a case of ghrupath?
Apologies if my Hindi is not up to scratch here.
You always pass failure on the way to success.
|
|
|
|
|
I am sorry, I didn't understand what a ghrupath is.
Ravi
|
|
|
|
|
Apparently it means 'homework' in Hindi.
I was asking if what you are presenting the message board with is a homework assignment.
You always pass failure on the way to success.
|
|
|
|
|
Nope its not. Well, shouldn't homeworks be discussed here?
Ravi
|
|
|
|
|
Hi,
What I suggest is opening two textstream objects, one for each file, then simply read line by line comparing the fields with functions such as INSTR and MID etc.
Regarding homework.
My take on the area is that if someone has not made any effort to google it search in the archives of Code Project; then whether it is homework or not I'm not usually prepared to help, because as all experienced programmers know the only way to break into programming, as a career, is to have taken the initiative in ones learning and gone beyond asking for help as soon as one hits a wall.
You always pass failure on the way to success.
|
|
|
|
|
Thanks for the idea and advice. But the prob with that method is the lines might be diff in both the files. I mean The first lines might not fields at all in both the files. So I will have to compare only the FIELDS.
|
|
|
|