« Little "Dog", indeed! | Main | Curious arithmetic »

Thursday, 27 September 2007

Comments

In case anyone else is following this thread, the code posted in the comment referenced above has most of what you need. One problem is that in several places, where the buffer is allocated by

buffer = ""*size

there is no space between the quotes. This results in no space being allocated. I looked at that a long time before seeing the obvious!

Another thing that helps is to use the BuildCommDB function instead of unpack/modify/pack to set the baud rate and word length. That seemed more clear to me, since you have something like this:

@BuildCommDCB.Call("baud=9600 data=8", dcb)

Hope this helps
Joe

Which major computer retail company sells laptops with Linux instead of Windows?
I'm a computer science major at university and paying for school myself, and I need to pick up a laptop to do a lot of my work on campus (computer labs don't have compilers *grumbles*). I'm trying to pick up a cheap laptop with Linux installed on it instead of Windows so that it'll be cheap and since Linux already has a lot of different compilers installed/apt-getable. Are there any major companies like IBM or HP that sell laptops with Linux (Hell, even the Ubuntu distro)? I think Dell does, but I'm not a big fan of their hardware.

[Them spambots is gittin' clever. Looks like a real comment on the post, dunnit? Apart from the commenter's name, and the URL, which I've removed. --SVR]

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

My Photo

Disclaimers

  • Have you spotted a fnord lately?
  • The Secretary disavows any knowledge of my actions.
  • The Gnomes of Zurich are not responsible for any content on this site.

Blogroll: 2012!

Blog powered by Typepad