|
1. Open your text file in notepad.
2. Alt+Print Screen,
3. Copy to your favorite image editor save as TIFF(Paint .NET is free and a nice choice)
Normally Text file contains ASCII characters and TIFF file contains binary data with image headers, pixel data and any other associated information related to TIFF....
Please make your question clear. What's the content of your text file? and how you want to be converted?
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
Nice steps...
- ns -
|
|
|
|
|
HI,
Thats the esaiest way. Thank you for ur reply.
Saadhinchaali
|
|
|
|
|
Tritva wrote: Is there a way to convert a text file into an image file(tiff file).
If you mean to do it programmatically, you need to draw the text to some memory DCs and save it to bitmap. You can use BMGLib[^] to save to TIFF file.
- ns -
|
|
|
|
|
You can draw your text to memory DCs and then you can use of CImage class for save it(jpg,gif,...).
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Hi,
I managed to draw outlne for fonts of size more than 20 using the code below.
/////////////////////////////////////////////////////////////////////////////////////////
CDC *pDC;
...............
................
pDC->Beginpath();
pDC->Textout();
pDC->Endpath();
..........................
.......................
pDC->PolyDraw();
.............................
...........................
pDC->StrokeAndFillPath();
////////////////////////////////////////////////////////////////
But when the font size is small the string becomes unreadable as the black outline becomes too heavy .
Thanks
Naveen
|
|
|
|
|
Naveen_Kummar wrote: when the font size is small the string becomes unreadable as the black outline becomes too heavy .
Quite natural.
I think you need to increase character spacing or change to a better font... (just a suggestion)
- ns -
|
|
|
|
|
Hi,
Thanks for reply.
But one of our competitor has managed to do the outlined font of size 8 as attached.
Is there to do something with the pixel size of font?
Thanks
Naveen
|
|
|
|
|
Naveen_Kummar wrote: as attached
means?
- ns -
|
|
|
|
|
Hi I do not know how to attach a file here can you help me out??
|
|
|
|
|
I too don't know... If possible, upload the image file to any free file hosting sites. So others can view the file...
- ns -
|
|
|
|
|
Hello,
I have an application that monitors phone calls,
when a new call arrives I'm opening a new tab on my PropertySheet using AddPage and then SetActivePage.
What happen is that when the application is minimized and a new call comes in, I'm losing focus on what ever i'm working on, (playing a game / word / writing this message).
I don't want to change the application so it will not Create the window when the application is minimized, it is very important that all works the same even if it is minimized.
Is there a way I can create the page, but not set it to SetActivePage? or to do it but without losing focus?
Thank you.
Rami.
|
|
|
|
|
Ugly, but...you could try disabling your property sheet or window it contains when adding a new tab and then re-enabling it, maybe by using this with SetRedraw() to avoid flickering...since disabled windows probably are not allowed to get the focus.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
m_sheet.EnableWindow(FALSE);
m_sheet.SetActivePage(m_pCalDlg);
m_sheet.EnableWindow(TRUE);
And problem is solved !!!
I can't describe to you how much efforts I wasted on this
Thank you very very very much
|
|
|
|
|
Yourwelcome, i'm glad i could help.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
Hi,
I have a .reg file which copies some menu items as keys in the registry. My dll collects all of them and show up on right click if i selected any thing on the explorer.
How to make my 32 bit com dll works in 64bit machine? I recompiled in 64 bit machine using visual studio 2008. It did not show up the right results. it is not showing up any menus on the right click.
Thanks in advance.
Regards,
|
|
|
|
|
|
thanks. I am facing a different problem.
when i am registering dll in vista 64 bit as administrator user i am getting the following error
call to DllRegisterServer failed with error code 0x80020009
when searching in the google it says that permission problem. What is that exactly? how to resolve?
Thanks in advance
Regards,
|
|
|
|
|
Can you run the program as administrator?
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
Hi,
I run the program as administrator. Then I tried compiling solution in the vista 64it. It gave “error PRJ0019: A tool returned an error code from "Performing registration"”. When I comment the following code
STDAPI DllRegisterServer(void)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
return _Module.RegisterServer(TRUE);
return TRUE
}
it compiled successfully. This is com dll which is working fine in 32 bit.
what should i do now?
Regards, Subramanyeswari
|
|
|
|
|
This could be some dependency issue. Check the dependecy of the DLLs/components associated with this COM DLL and ensure that it's built using 64 bit environment. Check with Dependency Walker[^]tool ( 64 bit version is available).
Also try manually using regsvr
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
Hi,
Thanks for your suggestion. I ran dependency walker in 2003 64 bit for my dll. it displayed two errors in the following dlls
DEVMGR.DLL
DWMAPI.DLL.
it says "error opening file". Don't we have these dll's along with 64 bit 2003 os?
Regards
|
|
|
|
|
I don't know about DWMAPI.DLL but the other one should be there in the system folder. Do one thing, in the 32 bit system, try to track down, from where these files are getting resolved using depends. Then you can try the same thing in 64-bit environment also
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
thanks.. i will do that now.
|
|
|
|
|