Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. concatenation

concatenation

Scheduled Pinned Locked Moved C / C++ / MFC
data-structures
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    srija
    wrote on last edited by
    #1

    Hello!! I would like to concatenate the different lenghts of data (in Hex) which is from the same array.

    D 1 Reply Last reply
    0
    • S srija

      Hello!! I would like to concatenate the different lenghts of data (in Hex) which is from the same array.

      D Offline
      D Offline
      Divyang Mithaiwala
      wrote on last edited by
      #2

      What's ur problem. Clearify ur problem.


      Divyang Mithaiwala System Engineer & Software Developer

      S 1 Reply Last reply
      0
      • D Divyang Mithaiwala

        What's ur problem. Clearify ur problem.


        Divyang Mithaiwala System Engineer & Software Developer

        S Offline
        S Offline
        srija
        wrote on last edited by
        #3

        am getting set of data output from a machine, as i should get the data output at a time, say for eg:1024 BYTES at a time in an array[1024], but am getting the data in chunks like Lenght: 512 0x20 0x65 0x40..........512 bytes Length:512 0x23 0x45 0xC 0xD......512 bytes Length's are varying, not constant all the time. how could i append the second set of data to the first set, say array[513]=0x23, array[514]=0x45....array[1024]. dont say MEMCPY; if i use it, again the data is being stored as chunks only.

        T 1 Reply Last reply
        0
        • S srija

          am getting set of data output from a machine, as i should get the data output at a time, say for eg:1024 BYTES at a time in an array[1024], but am getting the data in chunks like Lenght: 512 0x20 0x65 0x40..........512 bytes Length:512 0x23 0x45 0xC 0xD......512 bytes Length's are varying, not constant all the time. how could i append the second set of data to the first set, say array[513]=0x23, array[514]=0x45....array[1024]. dont say MEMCPY; if i use it, again the data is being stored as chunks only.

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          have you considered using STL containers, such as std::vector ?

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups