|
Agree, Hamid!
You are a good person like to share learning resources with others.
regards,
George
|
|
|
|
|
Hi Vijay,
I am a real person. I like this forum and programming. Is that enough.
regards,
George
|
|
|
|
|
Thank you.
|
|
|
|
|
Yes.
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.
[my articles]
|
|
|
|
|
Thanks CPallini,
My question is answered.
regards,
George
|
|
|
|
|
There's a really good website full of clever articles, and some are even helpful.
Hint (Begins with "C", and ends with "odeproject".
Have a look under Platforms, Frameworks & Libraries, then COM/COM+, then Beginners.
There are many articles there that explain COM. A good one to start with is a series called "COM in plain C". There are many parts.
Iain.
|
|
|
|
|
Hi Iain,
Thanks for your recommendation.
Iain Clarke wrote: There's a really good website
Which web site do you mean? CodeProject?
regards,
George
|
|
|
|
|
I think yes.
|
|
|
|
|
how can I draw PNG file on device context without using GDI+ in SDK(not MFC)
|
|
|
|
|
CImage class is your answer.
CImage m;
m.Load("C:\\1.png");
m.BibtBlt(...);
|
|
|
|
|
I thought CImage was a wrapper for GDI+ ?
|
|
|
|
|
Why do you think GDI+ (i.e. Image class in this context) needs a wrapper?
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.
[my articles]
|
|
|
|
|
Wrapper probably wasn't the best word to use. I just wanted to point out that GDI+ is used internally by CImage as the OP said they didn't want to use GDI+.
|
|
|
|
|
|
Because the op didn't want to use GDI+ but CImage uses GDI+
for loading/saving files
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Really I didnt know it.
|
|
|
|
|
Hamid. wrote: Why?
Because of comments like this in the CImage documentation...
"Whenever the count goes to 0, the function GdiplusShutdown is automatically called to release resources used by GDI+. "
"to explicitly release resources used by GDI+."
|
|
|
|
|
|
bob16972 wrote: I thought CImage was a wrapper for GDI+
Nah it's a wrapper for a DIBSection, using GDI+ for loading and saving
If I remember right...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
well, I probably shouldn't have used the word wrapper as I meant it uses GDI+ internally. I didn't mean to make it sound all inclusive.
The OP not wanting to use GDI+ was the purpose of my original response as you pointed out in your other post (in this thread). I glad somebody knew what I meant.
|
|
|
|
|
Heh it doesn't matter - the whole topic is kind of
tongue-in-cheek for me anyway - I never get why people will use
Windows APIs but won't use GDI+....seems kind of silly
Cheers,
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
You can link with the PNG library to read/write PNG files. The source code is located on the website.
http://www.libpng.org/pub/png/[^]
Best Wishes,
-Randor
|
|
|
|
|
Hi friends ...i have small doubt with my project..in this code is not created the serial numbers in file ...how to generate it ?
i am used only CFile ..i am not using CStdioFile etc...plz i need ur help...!!!
CFile Lfile("path of the file name", CFile::modeReadWrite);
CString big_string,b_Temp;
CStringArray big_Array;
int isize=0;
int iver=0;
while(Lfile.GetLength())
{
b_Temp=big_string;
big_string.Format(_T("%d. %s"),iver+1,b_Temp);
big_Array.Add(big_string);
++iver;
}
Lfile.SeekToBegin();
for(int i=1;i<=big_Array.GetSize();++i)
{
b_Temp=big_string;
b_Temp.Format("%s\n",big_Array.GetAt(i-1));
Lfile.Write("",b_Temp.GetLength());
}
Thanks!!
raju.k
|
|
|
|
|
verify this
raju.k wrote: Lfile.Write("",b_Temp.GetLength());
|
|
|
|
|
yes.. i checked ..but ..its shown same ....not write the serial NUMBER in file
raju.k
|
|
|
|