I am writing program in gdi+ c++.
How can I know two Font* p1, Font* p2 are the same.
p1 and p2 are points of different address.
p1 p2 point to different object:)
I am writing program in gdi+ c++.
How can I know two Font* p1, Font* p2 are the same.
p1 and p2 are points of different address.
p1 p2 point to different object:)
To compare if the pointers point to the same address / object see StackOverFlow Question How to compare pointers.
In order to check if the font are the equivalent (e.g. same font , size, and style), you want to compare the output of
of the two fonts.
Alternately you can call Font::GetLogFontA or Font::GetLogFontW and compare each of the structure entries you are interested in equating.