|
if you saw my reply and you tried to run it you dont need to make new thread
|
|
|
|
|
ok but maybe you have an ideea how to do it ! with an example plz!
i know you now !
Thank you !
Bravoone
|
|
|
|
|
You said that you need to an example but did you see example FindItem in msdn(loop)?
|
|
|
|
|
Flaviu_2006 wrote: Make your choice...
My choice would be for you to wait longer than 59 minutes before whining to us with another post.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I guess its a loop for this problem
while(message)
{
//if(message=true) then break;
//end if
}
|
|
|
|
|
its someone else how have a bater ideea ? and please an example !
Bravoone
|
|
|
|
|
please read the very first post in this forum.
|
|
|
|
|
When you pay for help, you can start demanding results after an hour. When you're asking for free help, you need to sit back and wait.
And flooding the forums with this sort of stuff only makes people call for your posts to be deleted, and does not inspire anyone to want to help you
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Flaviu_2006 wrote: if is someone who can help me? PLZ!!!!!!
Once again, this is a useless subject line. You are irritating everyone. Get a goddamm grip of yourself!
|
|
|
|
|
Wow, you waited a full 84 minutes before creating another post. Your patience is improving!
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Wt are .inl files in vc++? Any kind of info is most welcome
|
|
|
|
|
That's inline function file.
|
|
|
|
|
Some answers from google:
*.inl files contain the definitions of inline member functions.
inlsplit turns a .inl file into the corresponding .cc and .h files, placing an include guard (#ifndef _HEADER_H...#endif) around the .h file. It can also optionally generate preprocessor directives in the output files to tell the C++ compiler what line it is on in the .inl file (for error messages).
Hope it answers your question?!
Regards
Programm3r
|
|
|
|
|
I am using CxImage class. My code which prints a text file to a tiff file is
char * fileSrc="g:\\src.txt";<br />
char * fileDest = "g:\\dest.tiff";<br />
FILE *fp1,*fp2;<br />
fp1 = fopen(fileSrc,"r");<br />
fp2 = fopen(fileDest,"w+b");<br />
CxImage image(1024, 1024, 8, CXIMAGE_FORMAT_TIF);<br />
RGBQUAD c={255,255,255,255};<br />
HDC hdc = ::GetWindowDC(NULL);<br />
<br />
while((ch[0] = fgetc(fp1))!= EOF)<br />
{<br />
if(ch[0] == '\n' || ch[0] =='\r')<br />
{<br />
x=10;<br />
y+=10;<br />
}<br />
x+=10;<br />
ch[1]='\0';<br />
image.DrawString(hdc, x, y, ch,c, "Arial");<br />
}<br />
<br />
::ReleaseDC(NULL,hdc);<br />
int i = image.Encode(fp2, CXIMAGE_FORMAT_TIF);<br />
str.Format("image Encode Result- %d",i);<br />
m_List.InsertString(-1,str);<br />
<br />
fclose(fp1);<br />
fclose(fp2);
Every thing is going right except the main thing. What i am getting in tiff file is a total black image and nothing else.
How can i get the right image. Please help.
KIRAN PINJARLA
|
|
|
|
|
|
I have gone through it But it doesn't have any print job from a text file. I am using its functions as i need. But i am not getting required output.
Is there a way?
KIRAN PINJARLA
|
|
|
|
|
I'm not suer, cause I'm not very familier with the CxImage Class, Have you tried searching google. Otherwise if someone else knows on this forum, they will let you know. Sorry ....
Regards
Programm3r
|
|
|
|
|
Maybe you should fill the initial image with white background? I think you should try this:
CxImage image(....);
image.Clear(0xFF);
I hope it helps.
|
|
|
|
|
Thank you Viorel... but
It doesnt work. It still showing a total black image.
What else can i do.
KIRAN PINJARLA
|
|
|
|
|
I think you should assign a palette. A simple way is:
CxImage image(...);
image.SetGrayPalette();
image.Clear(0xFF);
Since your text must be black, I think instead of
RGBQUAD c={255,255,255,255};
which is white, you should try
RGBQUAD c = {0, 0, 0, 0};
I hope this helps.
|
|
|
|
|
Thank you Viorel.
Now it has shown the white page but i wonder why it hasn't shown my text on it. It only a balnk page created.
My code is
FILE *fp1,*fp2;<br />
fp1 = fopen(fileSrc,"r");<br />
fp2 = fopen(fileDest,"wb+");<br />
<br />
while((ch[0] = fgetc(fp1))!= EOF)<br />
{<br />
if(ch[0] == '\n' || ch[0] =='\r')<br />
{<br />
x=10;<br />
y+=10;<br />
}<br />
x+=10;<br />
ch[1]='\0';<br />
image.DrawString(hdc, x, y, ch,c, "Arial");<br />
}<br />
<br />
fclose(fp1);<br />
fclose(fp2);
KIRAN PINJARLA
|
|
|
|
|
I think you should make an experiment with a greater y , for instance set the initial y to 100. Also check if you are using black colour, i.e. "RGBQUAD c = {0, 0, 0, 0}; ".
|
|
|
|
|
HDC hdc = ::GetWindowDC(NULL); int l = image.DrawString(hdc, x, y, "ch",c, "Arial");<br />
::ReleaseDC(NULL,hdc);
what exactly the line GetWindowDC(NULL) does. and what happens when we place the hdc in the Drawstring(hdc,..).
KIRAN PINJARLA
|
|
|
|
|
Analyzing the source of CxImage library (ximawnd.cpp), it seems the HDC value is used to format and draw the text on a temporary in-memory bitmap, and then the image is copied from this bitmap to CxImage object.
It does not look much optimized for speed, and maybe you will have time to investigate some other approaches, like creating your own HBITMAP object, drawing on it, and then saving it to a file, for example using CImage class from ATL/MFC?
|
|
|
|
|
Hi,
I am writing an application that generates documents and I wqould like to open them in Microsoft Word automatically. Does anyone have an idea how to launch Word with the relevant document from within my application?
Thanks in advance,
William
|
|
|
|