CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Jun 2010
    Posts
    2

    Windows CE (Or: I'm out of my depth)

    Hi everyone. I was doing a favor for *person* who is blind. She likes to read books, and uses a braille reader thing. It converts .rtf files into Braille so she can read them. However, *book publisher* recently changed the way they encode their .rtf files, which breaks the converter. It's a pretty simple fix, so I wrote a program to do it. It works fine, but I didn't realize that her reader ran on Windows CE.

    I looked online to see how to re-write the program to work on Windows CE, but I have next to no practical programming experience. Most of the information assumed that I knew quite a lot about programming, and I have no clue what it's telling me to do.

    I'm asking so that someone can take my code and re-do it for Windows CE, so that I may send it on. It's very simple, just over 100 lines of code. It uses the Windows API to find all the .rtf files in the current folder (where the .exe is located), and reads each character and puts it into a new file. If the character is a backslash, then it checks the next character. If it's not a lowercase letter, or one of the exceptions, it adds the letters "par" after it, to indicate the paragraph break. Then, once the whole file has been transferred into the new one, it deletes the old one, and renames the new file to match the old.

    Anywho, the program is commented reasonably well, so it shouldn't be all that hard to figure out which does what. There may be a better way to do this, so if you want to fix that while you're at it (though why would you?) you can. It just needs to have the same results, and work on Windows CE.

    I thank all of you for your help.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured