Announcement

Collapse
No announcement yet.

help needed for int to char conversion

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • help needed for int to char conversion

    Hello Isaias,

    I have tried to compile your code in BC++...Here i found two error,
    **invalid conversion from `INT8U*' to `char*'
    ** invalid conversion from `INT8U*' to `const char*'

    the above error was found here...
    for (i = 0, row = 0; i < uCAMImgSize.LenByte; i++) {
    itoa(*(uCAMData.Img + i), hex, 16);
    fputs("0x", pic);
    fputs(hex, pic);
    fputs(",", pic);
    if (row++ == 5) {
    fputs("\n", pic);
    row = 0;
    }
    }
    fputs("};\n", pic);
    fclose(pic);
    Can you please guide for this error...

    Thanks in advance
    Sabbir


  • #2


    that's because i like to use typedefs
    typedef unsigned char INT8U;
    Me

    Comment


    • #3


      Hello,
      Can anyone tell me that is that my acknowledge is ok or not....

      Serial port COM1 successfully reconfigured.
      000aa
      0000e
      0000d
      0000c

      *****************************************
      Data is successfully written.

      Thanks
      sabbir

      Comment

      Working...
      X