Add tinyxml.cpp, tinyxml.h, tinyxmlerror.cpp, tinyxmlparser.cpp, tinystr.cpp, and tinystr.h to your project or make file. That's it! It should compile on any reasonably compliant C++ system. You do not need to enable exceptions or RTTI for TinyXML.
Why would you want to concern yourself with the primes p & q? By p & q I assume you mean the primes used for generating the keys. If you already have an encrypted file that should mean you already have the key pair generated, if not, how did you encrypt the file in the first place?
"It was when I found out I could make mistakes that I knew I was on to something."
"Philosophy is a study that lets us be unhappy more intelligently."
As Richard said, we need a lot more information than this if you want us to help you. If you're getting wrong results, then you're doing it wrong. At the very least, we need to know what you did, otherwise there's no telling what is your problem.
Regarding the primes, you shouldn't be needing them once the private and public keys are generated. Encryption and decryption only need those keys, not the primes they are generated from. As a matter of fact, breaking the code requires finding these primes, so knowing them at the time of de- or encryption would entirely miss the point!
I'm working on an application similar to MS Word, but on a much smaller scale.
My problem is that I do not know how to open a file just like Word does.
Word does something like this: if you are already in Word and you opened a file already and then you open another one from the file menu, than a new application appears with this file opened, just like the first file. But this application does not open a new WINWORD.EXE app. No matter how many files you open there's still just one WINWORD.EXE.
So, I want to do exactly like this in my application, but I don't know how!
If Word does not open a new app with the opening of a new file, this means that somehow the new interface opened with the file is linked with the initial dlls or with the files that have been loaded in memory.
I don't have a clue how to do that.
I'm working in C++, Visual Studio 2005, MFC.
If you're using MFC, you can find an option in the project wizard called Multiple top-level documents under Application type.
If not, what you need to do is to create a new UI thread each time a new file is opened.
«_Superman_» I love work. It gives me something to do between weekends.
Sometimes, I add some resource(png, string, bmp) to use. But because of some reasons, these resources may get redundant. The project is so large, many people join the development. So, there are lots of redundant resources.
Now, we need to translate the language in resource into other languages. So, we have to delete all redundant resource to increase the efficency.
Besides, have to remove all unnecessary png, bmp and other resources to make the final setup.exe smaller.
Resource Symbol Editor of Visual Studio is hard to use, I can delete an item one time. I need to find another tool.
I'm wondering if there are some existing tools to help me to that. Anybody can help me?
Being a messy coder I run into this all the time. I believe there were apps called “code beautifier” which did that or something similar, but I may be wrong. I hope nobody will make a suggestion that “memory is cheap, don't worry about it”.
Code beautifiers, merely tidy up your source code. I don't believe they can tell you which of your files may no longer be needed. Why not just move all the resources away, try to build the project, and you will get a list of missing files.
Use the best guess
Last Visit: 31-Dec-99 18:00 Last Update: 24-Jun-16 6:58