Click here to Skip to main content
15,891,852 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCAsynSocket connection problem Pin
ForNow2-Feb-12 16:03
ForNow2-Feb-12 16:03 
AnswerRe: CAsynSocket connection problem Pin
«_Superman_»2-Feb-12 18:07
professional«_Superman_»2-Feb-12 18:07 
GeneralRe: CAsynSocket connection problem Pin
ForNow2-Feb-12 18:49
ForNow2-Feb-12 18:49 
AnswerRe: CAsynSocket connection problem Pin
pyunwang2-Feb-12 19:00
pyunwang2-Feb-12 19:00 
GeneralRe: CAsynSocket connection problem Pin
ForNow2-Feb-12 19:59
ForNow2-Feb-12 19:59 
QuestionSimple Asymetric Encryption Pin
Bram van Kampen2-Feb-12 14:23
Bram van Kampen2-Feb-12 14:23 
AnswerRe: Simple Asymetric Encryption Pin
Chris Losinger5-Feb-12 5:07
professionalChris Losinger5-Feb-12 5:07 
QuestionHow to maintain an external C++ DLL developed with Literate Programming? Pin
Stefan_Lang2-Feb-12 4:59
Stefan_Lang2-Feb-12 4:59 
Today I received the source code for a DLL developed by a small company for us. The source code was part of the deal, and one of it's purposes was that we should be able to continue maintenance efforts once the main functionality of the library is done, and no more big issues remain.

Unfortunately, I've found the source code to be written auto-generated as CWEB, using a Literate Programming tool. That means these files cannot be directly read by the compiler, nor interpreted with the integrated tools of the IDE. I've requested the 'tangled' C++ source files (i. e. processed by ctangle.exe into .h and .cpp files), to be able to at least read them into my UML tool, but that code has all comments and blanks removed, so is not in a suitable form to be read in the IDE either.

In the UML tool I now have several hundred classes, structs, typedefs and enums all entangled into one huge diagram. The information I get from this is nicely summarized into one word: HELP!

What I currently have is:
- 359 auto- generated CWEB files (.w extension, some with a .hw extension, and a few others), in one and the same directory (actually I believe some of these are in fact not generated and don't belong there)
- these CWEB files have comments and proper formatting, but are unreadable by my tools
- alternately 245 C++ files (no idea why there are less of these)
- C++ files have no comments or blanks or tabs (but do have linebreaks at least)
- There's no 1-1 relation between source files and classes (neither for the CWEB files nor the C++ files): the total number of classes is around 300-500. Apparently some files contain dozens of classes, others none at all.

In short, it's a total mess.

I'm now at a loss what to do about it: I can no longer trust the original programmer to maintain it (there already has been significant doubt before), but I have no idea how to take care of it myself either. Since the whole of it is just generated code, I'd have to look at the original code used to generate the .w files, but I am neither familiar with Literate Programming, nor with the tools available for them. Also I have the nagging feeling that I won't be able to use any of the tools that I know if I wanted to work with that code.

I don't see any sense in refactoring the generated code into managable packages. But what else can I do? At this point the only alternative I see is rewrite the entire library from scratch Dead | X|

Maybe someone with experience in Literate Programming can give me an estimate as to how much time it would take for me to get into it, to a point where I would be able to clean up on the higher level?
QuestionRe: How to maintain an external C++ DLL developed with Literate Programming? Pin
David Crow2-Feb-12 5:29
David Crow2-Feb-12 5:29 
AnswerRe: How to maintain an external C++ DLL developed with Literate Programming? Pin
Stefan_Lang2-Feb-12 6:10
Stefan_Lang2-Feb-12 6:10 
QuestionRe: How to maintain an external C++ DLL developed with Literate Programming? Pin
David Crow2-Feb-12 9:21
David Crow2-Feb-12 9:21 
AnswerRe: How to maintain an external C++ DLL developed with Literate Programming? Pin
Stefan_Lang2-Feb-12 22:14
Stefan_Lang2-Feb-12 22:14 
AnswerRe: How to maintain an external C++ DLL developed with Literate Programming? Pin
jschell2-Feb-12 8:39
jschell2-Feb-12 8:39 
GeneralRe: How to maintain an external C++ DLL developed with Literate Programming? Pin
Stefan_Lang2-Feb-12 21:56
Stefan_Lang2-Feb-12 21:56 
GeneralRe: How to maintain an external C++ DLL developed with Literate Programming? Pin
jschell3-Feb-12 10:23
jschell3-Feb-12 10:23 
GeneralRe: How to maintain an external C++ DLL developed with Literate Programming? Pin
Stefan_Lang6-Feb-12 5:53
Stefan_Lang6-Feb-12 5:53 
GeneralRe: How to maintain an external C++ DLL developed with Literate Programming? Pin
Bram van Kampen3-Feb-12 16:00
Bram van Kampen3-Feb-12 16:00 
AnswerRe: How to maintain an external C++ DLL developed with Literate Programming? Pin
Bram van Kampen2-Feb-12 14:06
Bram van Kampen2-Feb-12 14:06 
GeneralRe: How to maintain an external C++ DLL developed with Literate Programming? Pin
Stefan_Lang2-Feb-12 22:22
Stefan_Lang2-Feb-12 22:22 
GeneralRe: How to maintain an external C++ DLL developed with Literate Programming? Pin
Bram van Kampen3-Feb-12 15:22
Bram van Kampen3-Feb-12 15:22 
Questionusing c# dll in g++ under Linux. is it possible? Pin
stenlyman1-Feb-12 13:00
stenlyman1-Feb-12 13:00 
AnswerRe: using c# dll in g++ under Linux. is it possible? Pin
«_Superman_»1-Feb-12 17:43
professional«_Superman_»1-Feb-12 17:43 
AnswerRe: using c# dll in g++ under Linux. is it possible? Pin
CPallini1-Feb-12 21:52
mveCPallini1-Feb-12 21:52 
AnswerRe: using c# dll in g++ under Linux. is it possible? Pin
jschell2-Feb-12 8:47
jschell2-Feb-12 8:47 
QuestionSSL Project Pin
krishnaradha871-Feb-12 1:00
krishnaradha871-Feb-12 1:00 

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.