|
hi
in my property sheet i have to put install button instead of Next button and add event to that, how can i put that.
|
|
|
|
|
|
venkatesh52867 wrote: ...Next button...
Are you using a "wizard" dialog? If not, what is the Next button for? I have an example of hiding/adding buttons to property sheets here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Need JSON parser, please help
|
|
|
|
|
Did you Google[^] for, yet?
Veni, vidi, vici.
|
|
|
|
|
What exactly is your C/C++/MFC question?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
HELLO
I am pretty new in c and now trying to use gmp.
Am trying to decrypt a file using gmp on rsa encryption.how do i go abt the primes, p and q. i am getting a wrong output on the file
please i need help asap
thanks
|
|
|
|
|
etesi wrote: now trying to use gmp Which is?
etesi wrote: i am getting a wrong output on the file Well unless we can see what is the difference between that and the correct output, and some of the code that is causing the error, then it is unlikely that we can offer much to help you.
Use the best guess
|
|
|
|
|
I think the OP means this[^].
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
"Philosophy is a study that lets us be unhappy more intelligently."
-Anon.
|
|
|
|
|
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."
-Ornette Coleman
"Philosophy is a study that lets us be unhappy more intelligently."
-Anon.
|
|
|
|
|
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!
See RSA Algorithm (Wiki) for details.
|
|
|
|
|
Hello!
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.
Anybody has any idea?
Thanks!
|
|
|
|
|
dliviu wrote: So, I want to do exactly like this in my application, but I don't know how! You want to look into SDI.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
|
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.
|
|
|
|
|
I'm using MFC. Thanks for the suggestion.
|
|
|
|
|
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?
|
|
|
|
|
None that I am aware of. This would not be easy to do as any such tool would need to analyse every file in the project to see if there were any references to the resources before deleting them.
Use the best guess
|
|
|
|
|
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
|
|
|
|
|
Redundant or unreferenced? Unless VS messed up and assigned two separate resources the same ID, I'm not sure how code could know if a resource was redundant.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
I am wondering if anyone could help me figure out a way to reliably play a sound using 'PlaySound' function and not interrupting other threads in an application.
I am currently playing a wav file loaded into a resource at a given point in time based on the events that happen in other threads in a real-time application. But whenever it plays, it is interrupting my other threads for a brief moment. Is there any other better way to do this?
Here is my command
PlaySound(MAKEINTRESOURCE(IDW_WAVE),AfxGetInstanceHandle(),SND_RESOURCE | SND_ASYNC);
The duration of the sound is less than a second.
thanks
PKNT
|
|
|
|
|
The SND_ASYNC flag plays the sound without interrupting other threads.
How do you measure that the other threads are interrupted?
In which thread is the PlaySound function being called.
Some info about how the threads are arranged in the application would help for better diagnosis.
|
|
|
|
|
I am using SND_ASYNC mainly to achieve that. But it still interrupts other threads. I am playing it in a separate thread that runs parallel to other threads and runs upon receiving an event or else waits indefinitely for the event to occur.
I can tell that playing a sound effects other threads by looking at the frame that I grab continuously from a framegrabber, where I miss a part of the frame whenever I play the sound.
All my threads run parallel and all the threads wait for a certain event to occur. I start all the threads when I run the application, but keep them waiting for certain events to occur. While couple of threads run most of the time, some threads only run when they receive certain event.
thanks
PKNT
|
|
|
|
|
Kiran Satish wrote: I can tell that playing a sound effects other threads by looking at the frame that I grab continuously from a framegrabber, where I miss a part of the frame whenever I play the sound. Do you have a multi-core processor?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|