Thank you for ur reply.
Let me explain my problem.
I have a text file. I want to print that text file to a fax. I want that text to be converted into an imagefile of .tif. Then i want to send that tif image file to fax. Now the problem is how to get the text in the text file into a tif file as an image. Or can we put that text as image on any other file formats like jpg,bmp.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
CxImage image(1024, 1024, 8, CXIMAGE_FORMAT_TIF);
HDC dc = ::GetWindowDC(NULL);
image.DrawString(hdc, 10, 10, "a line of text", RGB(0, 0, 0), "Arial"); // (repeat this for all of the lines of text, varying y)
Thank You Viorel.
If i am right, the text file window which is to be printed has to be opened.
If it is the case I want to tell you that the window will not be opened. I just give the path of the text file. Is it possible to do as such.
I don't think you have to open a window. You just need to open the existing text file using a method you know: fopen, CStdioFile, std::ifstream, CreateFile etc. Then read lines from file and draw them to the image.
Note that instead of CxImage third-party library you also may investigate some other tools. For instance the CImage class, available in ATL and described in MSDN, is also able to store images to disk, but not in TIFF format.
I have an application where 4 audio files are played simultaneously in two channels of two conventional stereo cards. I have to migrate this to playing using a 5.1 system. There are limitations to existing WAVEFORMAT which does not identify multi channel device.
Can anyone help me with the procedure how to pack the audio packets (for 4 files) and assign to the multi channel sound card?
Any help is highly appreciated.
Thanks in advance.
How can I convert apples to cucumbers? Is there any api or tool that I can use in vc?
You need to convert the apple to a .txt file then wait for the OP to convert it to a .tif file which is a picture of a cucumber. Make sure the apple is the same color as the cucumber though or it won't work.
I have win32 application which contains two buttons in a window. So when i move a mouse over button i want to display a box which contains two rows and two columns(similar to tooltip).when i moved away from the button it should disappear ....
Last Visit: 12-Dec-19 16:24 Last Update: 12-Dec-19 16:24