Click here to Skip to main content
15,914,162 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: winInet - FTP - overlapped i/o operation in progress - Pin
Mark Salsbery19-Jul-07 7:31
Mark Salsbery19-Jul-07 7:31 
GeneralRe: winInet - FTP - overlapped i/o operation in progress - Pin
Jayapal Chandran19-Jul-07 8:12
Jayapal Chandran19-Jul-07 8:12 
QuestionRe: winInet - FTP - overlapped i/o operation in progress - Pin
Jayapal Chandran24-Jul-07 3:13
Jayapal Chandran24-Jul-07 3:13 
Questionhelp: no audio in directshow DES Pin
liur1717-Jul-07 5:33
liur1717-Jul-07 5:33 
QuestionSharing without seeing the code, possible? Pin
Joe Smith IX17-Jul-07 4:30
Joe Smith IX17-Jul-07 4:30 
AnswerRe: Sharing without seeing the code, possible? Pin
jhwurmbach17-Jul-07 5:01
jhwurmbach17-Jul-07 5:01 
GeneralRe: Sharing without seeing the code, possible? Pin
Joe Smith IX17-Jul-07 5:13
Joe Smith IX17-Jul-07 5:13 
GeneralRe: Sharing without seeing the code, possible? Pin
jhwurmbach17-Jul-07 5:28
jhwurmbach17-Jul-07 5:28 
All my musing about possibilities was nothing for the short-term.

But with a (more or less) limited amount of work, you probably could form your code into a library.

The interface of that library needs to be a working c++ header file with all variables and private members.
Maybe that is OK with you.

If you think your contarctors would get too much information from seeing the variable types you defined, you need to go one step further.
Add an Interface-header, which declares a abstract base class.
You (or them) would then have to implement a "mockup-implementation" of this interface. This may be (probably is) a large amount of work.

That way, they could program against the interface, with only you putting the code together.

In the "cleaned" approach, as many private functions as possible are moved out of the class to an anonymous namespace at the top of the cpp-file.
As your contractors never get to see the content of the cpp-file, you are hiding this code from them.
Functions in an anonymous namespace are effectivly static members, and from my experience, an astounding amount of non-trivial static functions could be made static.



Failure is not an option - it's built right in.

GeneralRe: Sharing without seeing the code, possible? Pin
Joe Smith IX17-Jul-07 5:48
Joe Smith IX17-Jul-07 5:48 
GeneralRe: Sharing without seeing the code, possible? Pin
jhwurmbach17-Jul-07 5:55
jhwurmbach17-Jul-07 5:55 
GeneralRe: Sharing without seeing the code, possible? Pin
Joe Smith IX17-Jul-07 6:26
Joe Smith IX17-Jul-07 6:26 
GeneralRe: Sharing without seeing the code, possible? Pin
Mark Salsbery17-Jul-07 6:39
Mark Salsbery17-Jul-07 6:39 
GeneralRe: Sharing without seeing the code, possible? Pin
David Crow17-Jul-07 6:37
David Crow17-Jul-07 6:37 
AnswerRe: Sharing without seeing the code, possible? Pin
#realJSOP17-Jul-07 23:46
professional#realJSOP17-Jul-07 23:46 
QuestionSelectSinglenode syntax Pin
Maynka17-Jul-07 4:29
Maynka17-Jul-07 4:29 
AnswerRe: SelectSinglenode syntax Pin
Sam_c17-Jul-07 4:39
Sam_c17-Jul-07 4:39 
GeneralRe: SelectSinglenode syntax Pin
toxcct17-Jul-07 4:45
toxcct17-Jul-07 4:45 
GeneralRe: SelectSinglenode syntax Pin
Maynka17-Jul-07 5:04
Maynka17-Jul-07 5:04 
GeneralRe: SelectSinglenode syntax Pin
toxcct17-Jul-07 5:06
toxcct17-Jul-07 5:06 
AnswerRe: SelectSinglenode syntax Pin
Michael Dunn17-Jul-07 6:24
sitebuilderMichael Dunn17-Jul-07 6:24 
Questionhow to find differnce between laptop and desktop pc Pin
Sonani Prakash17-Jul-07 4:19
Sonani Prakash17-Jul-07 4:19 
AnswerRe: how to find differnce between laptop and desktop pc Pin
Sam_c17-Jul-07 4:33
Sam_c17-Jul-07 4:33 
QuestionGetting value of variable from xml file Pin
Maynka17-Jul-07 4:04
Maynka17-Jul-07 4:04 
AnswerRe: Getting value of variable from xml file Pin
led mike17-Jul-07 4:23
led mike17-Jul-07 4:23 
GeneralRe: Getting value of variable from xml file Pin
Maynka17-Jul-07 4:28
Maynka17-Jul-07 4:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.