Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. banswara

    XOR operation against byte values in C#

    Hi Chip, Your suggestions thus far have been very helpful and much appreciated. I think I'm close to getting this working. However, I'm still not getting the expected result. I think maybe it is because the original string is ascii encoded, but uses 2 characters per byte. For example the...
  2. banswara

    XOR operation against byte values in C#

    Thanks for your response, I saw that example but am unclear on how to use it. My values are expressed as a byte which I've converted from a string using something similar to this: //checkmessage is passed string for checksum operation int n1 = Convert.ToInt32(checkmessage.Substring(4, 2)...
  3. banswara

    XOR operation against byte values in C#

    I need to do a checksum against a value being received by my program. I can simulate the operation by inputting the values into the Windows Calculator program in Scientific mode, using the XOR function, i.e. the hex byte value 33 XOR with the hex byte value 2A yields hex byte 19. How would you...
  4. banswara

    C#, SoundPlayer, and Console application

    I changed the sp.play() to sp.playsync() and the code works.
  5. banswara

    C#, SoundPlayer, and Console application

    I am trying to get a C# console program to play WAV files. The following code works in a Windows Application: FileStream fs = new FileStream(@"c:\oou.wav",FileMode.Open, FileAccess.Read); System.Media.SoundPlayer sp = new System.Media.SoundPlayer(fs)...
  6. banswara

    Change/Disable bitmap image logon display Server 2003

    The following works: 1. Logon to the terminal server as administrator. 2. Click Start -> Run, type "regedit" in the text box, and click OK. 3. Locate and select the following Registry subkey: HKEY_USERS\.DEFAULT\Control Panel\Desktop 4. Select the Wallpaper value and choose String from the...
  7. banswara

    Change/Disable bitmap image logon display Server 2003

    Can anybody please tell me how to disable and/or change the image presented at the logon screen from my Terminal Server clients? It is currently too large and takes a considerable amount of time to display when they are logging in from a dial-up connection. Thanks!
  8. banswara

    Accessing ConditionalFormats collection of Excel using VFP automation

    Hi Mike, thanks for taking a look. As a matter of fact, I just sat down to write the answer to my own question. The line in question is as follows. oExcel.Selection.FormatConditions.Add(xlExpression,1,"=RIGHT($B9,5)='Total'") One thing I was doing wrong was passing a second...
  9. banswara

    Share Violation when Importing from Excel

    Try oWorkBook.SaveAs()?
  10. banswara

    Accessing ConditionalFormats collection of Excel using VFP automation

    Can anybody help me understand how to sucessfully access the ConditionalFormats collection from my VFP form? I'm using the following code but I keep getting the error that "the parameter is incorrect". lcLastCell = oExcel.ActiveCell.SpecialCells(xlLastCell).Address()...
  11. banswara

    HTTP POST from within VFP 8 application?

    This looks like just what I wanted! Thanks so much! Can I simply substitute the name of the file I wish to post in the oHTTP.Send("myfile.jpg") statement? Also, the SetRequestHeader() statement, where can I find an explanation as to what to set that to for a jpg file?
  12. banswara

    EXPORTING COMMA DELIMITED FILES

    Neither of those examples should give you any quotes. Did you try them?
  13. banswara

    EXPORTING COMMA DELIMITED FILES

    Something along the lines of... <code> use myDBF set alternate to myfile.txt set alternate on scan ? alltrim(firstname)+&quot;,&quot;+alltrim(lastname)+&quot;,&quot;+alltrim(nickname) endscan set alternate off set alternate to </code>
  14. banswara

    EXPORTING COMMA DELIMITED FILES

    I don't know why you are having the problem you are, but would you consider a small piece of code to achieve the end result?
  15. banswara

    HTTP POST from within VFP 8 application?

    I am about to program a routine which must post JPG images to a remote web site. I have to use HTTP POST. Can anybody offer me any pointers before I begin, as I haven't ever done anything like this before! Any assistance is most valued!
  16. banswara

    List Box Question

    In the GotFocus method set the ListIndex to 1?

Part and Inventory Search

Back
Top