|
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
|
|
|
|
|
CxImage[^] has plenty of interpolation algorithms. After some research, Lanczos resampling may be better than bicubic - CxImage does both.
[edit]FreeImage[^] is another image processing library with interpolation. The documentaton includes a section on choosing the right interpolation algorithm, which could be handy[/edit]
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
You might try my DLL [^].
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,
I would like to change the icons for the items in the list control on the right hand pane of a project of mine using the Windows Explorer architecture (http://www.codeproject.com/KB/tree/SimpleDrvExplorer.aspx). I believe that an efficient way of doing this would be to use I_IMAGECALLBACK as described in this Microsoft support document (http://support.microsoft.com/kb/141834). However, I don't know how to find out what the child identifier is for my list control (the equivalent of IDI_LIST in the support article). This would be easy if, for instance, I had added the list control to a dialog form, or whatever, since the ID would be something I would have renamed when I added it. Perhaps the architecture of my program precludes me from being able to use the I_IMAGECALLBACK method, but I'd like to know.
Thanks,
Ben.
modified on Thursday, March 26, 2009 5:34 PM
|
|
|
|
|
One of my application uses windows scheduler to call a different application.
It is noted that the windows scheduler does not get invoked to run a program with some command line parameters.
Are there some restrictions in the usage of Windows scheduler that prevent from it getting invoked. The application works fine with all the machines except for this one.
|
|
|
|
|
If you've successfully created a scheduled task, you should be able to verify if it will run or not. If it does not, you can rule out any problems with your code.
"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
|
|
|
|
|
I am currently writing a multi-threaded application using C++ and MFC. The application has one GUI thread and several additional worker threads that are CPU intensive. Often, when the worker threads are running and the user clicks on the right hand corner of the window (to close the application) the program crashes.
At the moment, I am not processing the messages WM_CLOSE, WM_QUIT or WM_DESTROY. To remedy this crash, I am thinking about catching the message WM_CLOSE and shutting down the worker threads. Does this make sense? Should I be processing WM_QUIT or WM_DESTROY?
Thanks
Bob
|
|
|
|
|
BobInNJ wrote: To remedy this crash, I am thinking about catching the message WM_CLOSE and shutting down the worker threads
It looks like you should do it in response to WM_DESTROY , see 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]
|
|
|
|
|
The other threads should run until either they finish or an event is signaled. When the application requests to close, it should signal an event and then wait for the other threads to end. Only then should the application quit.
"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
|
|
|
|
|
I have a shell namespace extension with a virtual junction point in the Desktop. I would like to use SHBrowseForFolder and set the root or initial directory to be in my shell namespace extension. I can set these to standard locations and browse into my extension, but I can't figure out how to start out there. As expected, I can do this type of thing with explorer and the file dialog using ::{extension CLSID} in my path. Does anyone know the trick for this?
|
|
|
|