|
Maybe its exist on the memory wehn you clsoe it.
|
|
|
|
|
Hi,
IS there any Win32 API avilable to Encryption a string and decrypt the same with KEY.
If not please let me know where I can get c++ source to Encrypt and decrypt a string with KEY
This must have a key for Encryption and decryption.
Thanks,
Nandu
|
|
|
|
|
Have you googled [^] for?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
|
|
|
I am using:
RegisterHotKey(This->hwndOuter, ID_HOTKEY_COPY, MOD_CONTROL, value_of_INSERT); // hotkeys
to registry the CTRL-INSERT hotkey for copy text.
I want to know the value_of_INSERT from the code above.
I also want to use CTRL-PgUp, CTRL-PgDown, CTRL-End, CTRL-Home as hotkeys.
How can I now these values?
danginkgo
|
|
|
|
|
VK_INSERT, VK_PRIOR, VK_NEXT, VK_END, VK_HOME. Defined in Windows.h
Also, look in MSDN.
But why do you want to register system-wide hotkeys?
Cheers
Steen.
"Are you gonna check your makeup when you're done whining?" John Simmons, 05/31/2006
"Of course, the next day it automatically updates, and your quick'n'dirty patches cause the new binaries to segfault all over your linoleum. If only you'd had the source..." Shog, 10/18/2006
"One day I realized that sadness is just another word for not enough coffee" Wally, 10/18/2006
|
|
|
|
|
Thank you. That helped me much
I am working at a IE plug-in and I had to use CTR-R, CTRL-H as hotkeys for the plug-in. These were also hotkeys for the browser.
So I used RegisterHotKey and UnregisterHotKey.
Is there another way that I can override or disable the browser's hotkeys while the plugin is used?
danginkgo
|
|
|
|
|
I have never worked with IE plugins, so I can't help you there.
Cheers
Steen.
"Are you gonna check your makeup when you're done whining?" John Simmons, 05/31/2006
"Of course, the next day it automatically updates, and your quick'n'dirty patches cause the new binaries to segfault all over your linoleum. If only you'd had the source..." Shog, 10/18/2006
"One day I realized that sadness is just another word for not enough coffee" Wally, 10/18/2006
|
|
|
|
|
OK, thank you for your help.
I'll use system wide keys and I hope I don't get no problems
danginkgo
|
|
|
|
|
Hi,
I am establishing a connection with the postgres database when my application comes up. And closing the connection during the exit of my application.
But some times during the exit, application hangs in the "database.close()" statement. i.e. Execution is not moving to the next line. even for 2 days it stays there in the same close statement.
Any help would be appreciated.
Thanks in advance...
Selva
|
|
|
|
|
First of all, let me salute your patience. 2 days? Not bad.
You don't need an explicit close() since it's taken care of in the destructor if it's still open. (Of course, you need to delete the CDatabase object if it's allocated in the heap.)
Try without, and see what happens. You should be able to call close() multiple times, so there is probably something fishy in you code (or ODBC driver).
|
|
|
|
|
Hello Friends,
I am using c language.
I have a thread 'A', it does some downloading thing, and may take several minutes to complete.
So, I need another thread 'B' which will monitor thread 'A', and will kill it, if 'A' takes more than a fixed period of time, say 1 min or so.
Kindly help me in this by giving some clue or code sample.
Thanks in Advance.
Dolly, IN
|
|
|
|
|
Set a flag (eg bool isThreadToBeKilled = false) in thread B and keep thread A running unless this flag is set to true. If this thread becomes true at any stage (after a specific period in your case) return from thread A function.
Note: Killing or terminating a thread is not a good idea. It's always better to check some value and return from thread function in order to terminate it so that all resources are freed.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thanks for the reply!
So, do we need to implement a timer to set that flat to be true??
dolly,
N,IN
|
|
|
|
|
Yes you may set a timer to do that job.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Thanks will bother u more if I would need some help.
dolly,
N,IN
|
|
|
|
|
You're welcome.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Any sample application for this threading?.
|
|
|
|
|
You are her alter ego, aren't you?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Sir i realy need some sample appln.
|
|
|
|
|
AFAIK, the search functionality is still active on this site. Just type "Threading" in the Search box and you will get lots of links to articles related with Threading.
Another good place to search for is here[^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
But remember that the functionality of a timer is not very precise, ie it may or may not fire always after some specified time interval. SO unless you are building something that needs accurate value feel free to use a timer to set the value of the flag to false.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
So, what should we use if timer is not that efficient and reliable.
If I mean that i need to kill my thread after 1 min...1 min means 1 min...
viz. accuracy of time should be there, without fail.
dolly,
N,IN
|
|
|
|