|
This is just a blindshot, but maybe the font you are using needs the GREEK_CHARSET set to it, like shown here[^] for the LOGFONT structure's lfCharSet member?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> "It doesn't work, fix it" does not qualify as a bug report. <
> Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <
|
|
|
|
|
Hi
<br />
<br />
BeginPath(hdc)<br />
<br />
Ellipse( hdc,0,0,200,200 );<br />
<br />
EndPath(hdc);<br />
FlattenPath( hdc);<br />
<br />
LPPOINT pt;<br />
LPBYTE byt;<br />
int nCnt= 0;<br />
nCnt = GetPath(hdc, (LPPOINT)NULL,(LPBYTE)NULL,0);<br />
if( nCnt != 0 )<br />
{<br />
pt = new POINT[nCnt];<br />
byt =new BYTE[nCnt];<br />
}<br />
<br />
Is this code produce correct path count (nCnt) in the given ellipse?
|
|
|
|
|
Well, as far as i can see, according to the documentation[^], nCnt should give you the number of points the path consists of.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> "It doesn't work, fix it" does not qualify as a bug report. <
> Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <
|
|
|
|
|
Hi!
I got the following error:
Error 1 error C2259: 'irr::gui::CImageGUISkin' : cannot instantiate abstract class d:\klagui\source\main.cpp 27
I checked the CImageGUISkin class for pure virtual functions. It has no pure virtual functions. Then why this error comes? How to resolve this error?
|
|
|
|
|
If CImageGUISkin inherits from other classes, you need to check them too, and make sure all pure virtual functions are overridden/defined.
|
|
|
|
|
Parent class contains pure virtual functions. But if I try override those functions, I got the following errors:
error C2259: 'irr::gui::CImageGUISkin' : cannot instantiate abstract class
1>d:\klagui\source\cimageguiskin.cpp(325) : error C2143: syntax error : missing ';' before 'irr::gui::CImageGUISkin::getColor'
1>d:\klagui\source\cimageguiskin.cpp(325) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\klagui\source\cimageguiskin.cpp(326) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\klagui\source\cimageguiskin.cpp(326) : error C2511: 'int irr::gui::CImageGUISkin::getColor(irr::gui::EGUI_DEFAULT_COLOR)' : overloaded member function not found in 'irr::gui::CImageGUISkin'
1> d:\klagui\source\cimageguiskin.h(37) : see declaration of 'irr::gui::CImageGUISkin'
|
|
|
|
|
There is something on the line d:\klagui\source\cimageguiskin.cpp(325) that the compiler doesn't understand. Usually a type name where you forgot to #include its declaration.
|
|
|
|
|
Are you aware that there is an Irrlich forum (which can be accessed through their website) ? You'll have much more chance to get an answer there rather than asking Irrlicht specific questions on codeproject.
|
|
|
|
|
Hi
How to find hit testing of Circle/ellipse using mathematical formulas(not using Regions)?
thanks
|
|
|
|
|
one way would be to store the centers and radius of circle(In case of ellipse it depends on the length of the major and minor chords) and when the mouse is clicked you can get the point of click and check if the coordinates are within the range of the circle or the ellipse.
For ex: in case of a circle, if you have a circle with center at (100,100) and radius as 100 then if the user clicks on x,y then check if the new points are still in the space occupied by the circle. In other words you can check if x,y both lie between 0 and 200
There will be some refinements required though with this approach.
EDIT: BTW circle is a special case for ellipse with the major and minor chords of the same length, called the radius in a circle.
I am a HUMAN. I have that keyword (??? too much) in my name........
_AnsHUMAN_b>
modified on Wednesday, September 15, 2010 2:54 AM
|
|
|
|
|
The straight way is: use the curve equations for finding possible intersections.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
How to use the C++ dynamic load DLL which compiles with C#
tks!
|
|
|
|
|
I suggest you start looking at p/invoke - here's two starters ...
http://www.perceler.com/articles1.php?art=pinvoke1
http://www.codeproject.com/KB/dotnet/PInvoke.aspx
'g'
|
|
|
|
|
What do you mean by a dll which compiles with C#? I think you have a native (C++) dll which you want to use in C#. As already suggested you can either use PInvoke to call the functions from that dll or if its a COM dll you might be interested in generating a tlb for it, then you can add the reference to this .tlb in your C# application and consume it.
I am a HUMAN. I have that keyword (??? too much) in my name........
_AnsHUMAN_b>
|
|
|
|
|
Is it possible to write a code that adds today's date to a jpg photo?(the date is changed everyday)
|
|
|
|
|
1. read JPG without date
2. draw the date text onto the image
3. save the image as a new JPG
4. wait 23.9999999 hours
5. goto 1
there are a million ways to do 1, 2 and 3.
|
|
|
|
|
Still using goto ?!?
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
if it's good enough for a CPU, it's good enough for me
|
|
|
|
|
Add it to the visible part of the photo, or to its metedata?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
for the easiness, you can make use of CImage class declared in atlImage.h for loading and saving jpg images. The rest in usual way, is as easy as creating a memory dc, selecting HBIMAP from CImage object into it, and calling TextOut() on memdc. For anti aliasing support and additional smoothness, you may make use of GDI+ functions too.
|
|
|
|
|
using GDI+ you can add metadata (any additional information)to your image file.
see EncoderParameters in GDI+
|
|
|
|
|
Hi all,
is it possible to get the contents of a drive i.e the list of all files and folders inside the drive ?
i have the drive letter with me.
so please can i get some help to get all the contents inside the drive ???
Thank You
|
|
|
|
|
Are you looking for WIN32_FIND_DATA in conjunction with FindFirstFile and FindNextFile?
I am a HUMAN. I have that keyword (??? too much) in my name........
_AnsHUMAN_b>
|
|
|
|
|
Not exactly...
however..could it be elaborated a bit on how to get the first, next or last file from a drive, where the drive letter is known?
|
|
|
|
|
Subrat Patnaik wrote: ...could it be elaborated a bit on how to get the first, next or last file...
Based on what criteria?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|