|
Davitor wrote: yaa m_listba is global
To fool the enemy?
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]
|
|
|
|
|
Cedric Moonen is right,it's better that UI put in the UI thread.generate data in other thread.
|
|
|
|
|
Hi everyone,
I m posting message for first time on any forum. I hope my problem will be solved here.I want my application to process only keyboard input but not any other device's input, like barcode. I have a window with an edit box there. Focus is on edit box which is a child window of the main window. I want that my edit box should not take barcode scanner's input. But if i press any key on keyboard , it should take it. I have heard about Windows Hooks. but i m unable to distinguish between both the inputs at hook level. Can anyone have done this before? if yes then how..? Please help me as soon as possible.. it's really very important.
Thanks in advance.
modified on Friday, March 27, 2009 5:51 AM
|
|
|
|
|
I doubt this is going to be possible, because other applications/drivers/etc can simply call keybd_event() which mimics keystrokes. Your app would have no way of knowing if they were real or not.
To keep text from being pasted, you could intercept the WM_PASTE message. This might eliminate some of your "input" troubles.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
|
See my signature! you are likely to find the answer there.
If you don't, try googling with "detect language pack" etc...
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Purish Dwivedi wrote: URGENT
Next time try with URGENTZ PLZ PLZ URGENTZ, maybe you'll get a faster help.
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]
|
|
|
|
|
CPallini wrote: Next time
Well, that's only the 6th or 7th time he is posting the same question
|
|
|
|
|
|
Well, I've a mail box address just for the purpose: urgenz.helpz.for.free@cpallini.com
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 believe you have the solution already in your subject line:
URGENT ::: detecting language pack
However, it should be:
URGENT::detecting language pack()
So, the member function detecting language pack() of the class URGENT should do what you need.
|
|
|
|
|
how we can do work with socket programing and make a network for communication
|
|
|
|
|
buy a good book and start reading it or else read online tutorials and samples.
Because even if someone tells you here you are not going to get the essence of it and why things are done. Start writing some samples
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
In addition to _AnShUmAn_'s reply, have also a look here [^].
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]
|
|
|
|
|
Very carefully. You might also read here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
Hi,
I need code snippet to copy a file C:\TestFolder\Test.csv to D:\MyApplication\CompactFolder\
Thanks in advance
Venkat
|
|
|
|
|
VKupunaram wrote: I need code snippet to copy a file C:\TestFolder\Test.csv to D:\MyApplication\CompactFolder\
Copy a File = CopyFile API.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
I knew when i have a process handle , i can use it to kill the process and get the path and name of the process, but i want to know more, i want to know what other information can i get use the handle and what i can do use it?
|
|
|
|
|
What about documentation [^]?
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]
|
|
|
|
|
My ServerApp disconnected ClientApp, when ClientApp reconnect to ServerApp ,It's Show ,who knows!thanks!
|
|
|
|
|
You have a debugger, haven'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]
|
|
|
|
|
Hi guys,
I need to do the following in an application I'm developing using C++ and MFC:
1. Open an image of any of the major image formats (say Windows bitmap, Jpeg and PNG).
2. Conform it to a certain resolution. I have a strong preference for doing so without creating any resizing artefacts. I would like the result to be similar to the result you get by resizing an image in Photoshop, rather than the result you get when internet explorer renders and image at a resolution different to that of the image itself (that creates unsettling artefacts).
3. Convert to PNG, and then get a char pointer to a buffer containing the PNG file, so I can serialise the image as a blob in a database for later retrieval.
4. Retrieve the image from the database, and re-create the PNG image to be displayed in my MFC application.
How might this be best achieved? I'm not necessarily looking for precise instructions - guidelines may be enough. I have a preference for using lightweight third-party libraries distributed under liberal open source licenses (i.e. not a GPL library). If boost.GIL (generic image library) can help, I'd certain be receptive to that, as I already use boost a lot. That said, given my relatively simple needs even that may be overkill,
Regards,
Sternocera
|
|
|
|
|
Sternocera wrote: 1. Open an image of any of the major image formats (say Windows bitmap, Jpeg and PNG).
CImage[^]
Sternocera wrote: 2. Conform it to a certain resolution. I have a strong preference for doing so without creating any resizing artefacts. I would like the result to be similar to the result you get by resizing an image in Photoshop, rather than the result you get when internet explorer renders and image at a resolution different to that of the image itself (that creates unsettling artefacts).
Bicubic Interpolation[^]
Sternocera wrote: 3. Convert to PNG, and then get a char pointer to a buffer containing the PNG file, so I can serialise the image as a blob in a database for later retrieval.
Again, CImage. Use the Save[^] method to save to an IStream created on an HGLOBAL[^], i.e. an IStream that writes to memory. Use a null HGLOBAL to start with, then use GetHGlobalFromStream[^] to get the HGLOBAL that the stream eventually ended up allocating. Then use GlobalSize[^] to get the amount of memory used by the stream and GlobalLock[^] to access the memory.
Sternocera wrote: 4. Retrieve the image from the database, and re-create the PNG image to be displayed in my MFC application.
Load the blob into an HGLOBAL (allocate a global with the required size, lock it to get a pointer where you can write the blob contents, hten unlock it). Then create an IStream on that HGLOBAL and use CImage::Load[^] to read the IStream into a CImage.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Stuart,
Good answer, great tagline,
Regards,
Sternocera
|
|
|
|
|
Stuart Dootson wrote: cubic Interpolation[^]
Stuart,
Can you suggest a practical way to use Bicubic interpolation to resize my CImage? Obviously it's preferable to use some proven third party library rather than re-inventing the wheel. Again, *any* guidance you can offer is helpful, I'm not necessarily looking for step-by-step instructions. Google has not been helpful here,
Regards,
Sternocera
|
|
|
|