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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Efficiency of Software(MFC)

Efficiency of Software(MFC)

Scheduled Pinned Locked Moved C / C++ / MFC
databasequestionc++data-structuresjson
2 Posts 2 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.
  • _ Offline
    _ Offline
    __yash__
    wrote on last edited by
    #1

    Hi friends, I have developed a software involving sockets-parsing-database transfer. I can connect upto 6 machines to this software(s/w). These machines send out data on TCP/IP. Thus on s/w's end i have six OnReceive() events(Please note that so far there is no mention of threads) There are 2 types of string that these machines can send to the s/w: transaction string and the other one is batch-string. Upon receiveing a batch-string the s/w assigns a batch number to all previous transaction strings and then transfers these strings to MS SQL database(DB). E.g. i take 5 transactions then generate a batch-string thus the DB will contain 5 rows with batch no. provided by the batch string i.e. batch string is used only to assign a 'batch no.'. While the transactions are being taken the data is stored in a CString array. Apart from this the s/w sends an 'OK' display message to the machine if a string is received. This OK message is cleared only at the end of 'parsing function'(OnReceive->Parsing->Store in variables->Send OK->Transfer to DB if batch-string->Wait for 3 secs and Clear OK[seperate thread]). Now the question is there are cases where in a valid string is getting missed/not captured by the s/w. Note that valid strings are transmitted out only once and there is no handshake. Also there are cases where in an OK message is displayed but still some row goes missing in the DB. What are problem areas in this? How can i make this s/w more efficient?? P.S: Kindly let me know if more data is needed

    P 1 Reply Last reply
    0
    • _ __yash__

      Hi friends, I have developed a software involving sockets-parsing-database transfer. I can connect upto 6 machines to this software(s/w). These machines send out data on TCP/IP. Thus on s/w's end i have six OnReceive() events(Please note that so far there is no mention of threads) There are 2 types of string that these machines can send to the s/w: transaction string and the other one is batch-string. Upon receiveing a batch-string the s/w assigns a batch number to all previous transaction strings and then transfers these strings to MS SQL database(DB). E.g. i take 5 transactions then generate a batch-string thus the DB will contain 5 rows with batch no. provided by the batch string i.e. batch string is used only to assign a 'batch no.'. While the transactions are being taken the data is stored in a CString array. Apart from this the s/w sends an 'OK' display message to the machine if a string is received. This OK message is cleared only at the end of 'parsing function'(OnReceive->Parsing->Store in variables->Send OK->Transfer to DB if batch-string->Wait for 3 secs and Clear OK[seperate thread]). Now the question is there are cases where in a valid string is getting missed/not captured by the s/w. Note that valid strings are transmitted out only once and there is no handshake. Also there are cases where in an OK message is displayed but still some row goes missing in the DB. What are problem areas in this? How can i make this s/w more efficient?? P.S: Kindly let me know if more data is needed

      P Offline
      P Offline
      Peter Weyzen
      wrote on last edited by
      #2

      I'd say this is too much information. It's hard to tell how to help.

      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Peter Weyzen Staff Engineer [SoonR Inc -- PC Power delivered to your phone](http://www.soonr.com)

      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