Thread: Sharing a TEXT FILE

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    16

    Sharing a TEXT FILE

    I am a C++ moron! I am looking to have a DLL programmed in which I beleive there is sensitive data being programmed. So I was looking for one programmer to do one part, another to do the second, each not knowing what the other is programming. Am I correct in assuming that the 2nd programmer does not have to see what the first is doing and uses the text file to write his portion of the program?

    Thank you for any input you can provide.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    You'll certainly have to define the interface between what the two are doing, and you'll probably also need to produce some testing harness (reproducing the functionality, perhaps with the secret parts done as a "stub" function that just generates the right sort of responses) so that each of them can test independently from each other, not knowing what the other side is actually doing.

    --
    Mats

  3. #3
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    Am I correct in assuming that the 2nd programmer does not have to see what the first is doing and uses the text file to write his portion of the program?
    It depends. Consider a .dll that is a function library and its function don't call each other. Then the programmers don't need to know each others coding.
    But when a programmer is writing the code that will be used by other programmers. Then the behaviour of his/her code should be known to users (but not the code itself).

    It is exactly what we are doing every day, when we use a Win32 function, we know the parameters and return value and the job of the function. But we don't know the way it does its job. Its the Microsoft little secret.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Formatting a text file...
    By dagorsul in forum C Programming
    Replies: 12
    Last Post: 05-02-2008, 03:53 AM
  2. Formatting the contents of a text file
    By dagorsul in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2008, 12:36 PM
  3. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  4. Simple File encryption
    By caroundw5h in forum C Programming
    Replies: 2
    Last Post: 10-13-2004, 10:51 PM
  5. what does this mean to you?
    By pkananen in forum C++ Programming
    Replies: 8
    Last Post: 02-04-2002, 03:58 PM