CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: zonemikel

Search: Search took 0.04 seconds.

  1. Re: Everything above 0x7F displays as 0x3F in my code

    I dont know how i can decode to bits, i'm pretty sure i got it to work though. I spent like 2 hours re doing everything using a queue (while watching a movie). There are no more strings, I really...
  2. Re: Everything above 0x7F displays as 0x3F in my code

    Well at least I(you) found the problem. Solving it seems to be another problem in itself.

    When i try UTF8 it still only goes up to 7F then goes to FD, just like it used to go to 3F with ascii. I...
  3. Re: Everything above 0x7F displays as 0x3F in my code

    Thanks ! That explains why putty was showing the y with two dots above it, putty is not using the standard ascii it has (i guess) extended characters.

    Well i can get back to work now !
    Problem...
  4. Re: Everything above 0x7F displays as 0x3F in my code

    I tried UTF8 and ASCII, thats what i'm sending. ASCII should be good ..... no wait you might be right ASCII is only good up to 127 which is 0x7F ... idk why i thought ascii was good to 255. I guess...
  5. Everything above 0x7F displays as 0x3F in my code

    Ok this works fine



    byte test = 255;
    Console.WriteLine("test: " + Convert.ToString(hexByte, 16).ToUpper());
    // outputs "FF"


    but when I'm getting the data through the serial port...
  6. debugger crashes and just points to Application.Run(new Form1()); where is my error

    Hello when i run the program it crashes at Application.Run(new Form1()); with this error



    how can i know where my error is... it looks like a string error but which one ?

    oh...
  7. Re: Why wont my enum be what it is ? I have to cast it to get the number

    for the 255 is the max size of a unsigned byte and the other is just a 0 so it goes back to zero. I need the packet number to go back to zero after it no longer fits in a byte
  8. Re: Why wont my enum be what it is ? I have to cast it to get the number

    lol, i put DW for dont write meaning i dont have to write stuff .. like a "dont write" class so you dont have to write (int)enum.flag or 0x0003 .. but ya its a lousy name.
  9. Re: Why wont my enum be what it is ? I have to cast it to get the number

    Well this is what I did .. i might look into a struct though ..



    public class Dw // dont write
    {
    // basic defines
    public const int RX_PacketSZ = 15; // rx...
  10. Re: Why wont my enum be what it is ? I have to cast it to get the number

    Oh wow thanks, I didnt think of that! Sorry to be so picky about this but i'm actually using this for several other things too.

    For example I've got my packets coming in as a string, and to index...
  11. Re: Why wont my enum be what it is ? I have to cast it to get the number

    Ok thanks for all the help so far, and thanks for the coding guidelines info. I hate to say it ... but, you guys are getting all into the bit operators and such and thats not really at all my...
  12. Re: Why wont my enum be what it is ? I have to cast it to get the number

    So what should i use in place of enumeration to have a simple '.' sort of system to call on hexadecimal numbers that i need to have set in one place and use in multiple places ?
  13. Why wont my enum be what it is ? I have to cast it to get the number

    I dont use enums or c# much but i thought they were to represent lists of numbers as actual values so your code could look nicer, similar to #define in c

    anyway i'm doin this , because i dont...
Results 1 to 13 of 13





Click Here to Expand Forum to Full Width

Featured