|
Yeah, I figured that out after decompiling the dll. I never found the solution to the problem though, I have a feeling the DACL was being set high while the section was being passed between user/kernel modes, preventing me access to it.
|
|
|
|
|
|
After 4 painful days ... got it!
(to many #include in the project ... )
tnx anyway
Russell
|
|
|
|
|
After 4 painful days?? It's only been 30 mins
|
|
|
|
|
|
You should have asked in the first 30 minutes
Even though nobody answered, you would have solved it
and you could have taken 4 days off!
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
_Russell_ wrote: Why are you telling this to me only now?
To rub it in (salt in the wound), of course
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Please any one can tell me what is lfOrientation in LOGFONT structure. i can't find any visible difference by changing any values of it. output is mostly same. my code is as bellow,
for (int i=0; i<3600; i+=150) {
LOGFONT lf;
::ZeroMemory (&lf, sizeof (lf));
lf.lfHeight = 2400;
lf.lfWeight = FW_DEMIBOLD;
lf.lfEscapement = i;
lf.lfOrientation = 600; // No change of any value
::lstrcpy (lf.lfFaceName, _T ("Times New Roman"));
CFont font;
font.CreatePointFontIndirect (&lf);
CFont* pOldFont = dc.SelectObject (&font);
dc.TextOut (0, 0, CString (_T (" This is my Output")));
dc.SelectObject (pOldFont);
}
|
|
|
|
|
as far as i know, orientation refers to angle wrt. x axis.
not sure weather degrees or radians.
try it out by gradually incrementing the the values from 0 to 360 in a loop.
|
|
|
|
|
i tried it but it won't work and Angle is given by lfEscapement member of LOGFONT structure.
|
|
|
|
|
both refer to angle only but with some difference.
you can refer the following url
for more information.
http://msdn2.microsoft.com/en-us/library/2ek64h34(VS.80).aspx
|
|
|
|
|
Thnks, But still change of lfOrientation not making any difference...
|
|
|
|
|
Bhavesh Bagadiya wrote: Please any one can tell me what is lfOrientation in LOGFONT structure.
Straight from MSDN:
It specifies the angle, in tenths of degrees, between each character's base line and the x-axis of the device.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I just did a small test, and lfOrientation does barely anything.
lfOrientation changes the angle of the whole string.
lfEscapement
Specifies the angle, in tenths of degrees, between the escapement vector and the x-axis of the device. The escapement vector is parallel to the base line of a row of text.
Windows NT/2000/XP: When the graphics mode is set to GM_ADVANCED, you can specify the escapement angle of the string independently of the orientation angle of the string's characters.
When the graphics mode is set to GM_COMPATIBLE, lfEscapement specifies both the escapement and orientation. You should set lfEscapement and lfOrientation to the same value.
Windows 95/98/Me: The lfEscapement member specifies both the escapement and orientation. You should set lfEscapement and lfOrientation to the same value
So, set both values to the same thing, Unless you want some very wacky effects under GM_ADVANCED.
I just had a play in my OnDraw method...
::SetGraphicsMode (*pDC, GM_ADVANCED);
NONCLIENTMETRICS ncm;
ncm.cbSize = sizeof (NONCLIENTMETRICS);
CString s;
s = "Hello";
ncm.lfStatusFont.lfOrientation = 450.0;
ncm.lfStatusFont.lfEscapement = -450.0;
pDC->TextOut (0,0, s);
and see the results!
One rotates the string, the other rotates individual characters.
If in doubt, do little test programs - it's the only way to learn.
Iain.
ncm.lfStatusFont.lfOrientation = 450.0;
ncm.lfStatusFont.lfEscapement = -450.0;
|
|
|
|
|
Thanks I'm really new to Visual C++ MFC Programming. so again Thanks for suggestion !!!!
|
|
|
|
|
How specify the order of files during compiling (using VS2003)?
Russell
|
|
|
|
|
I guess that the files are sorted via the alphabet. So you have to rename them. But it is no good idea.
If you have problems, this "isnt the solution it only cures the symptoms", a typical method in german politics.
I consider to emigrate.
Greetings from Germany
|
|
|
|
|
Why would you want such a thing ?
|
|
|
|
|
Only to put at the end files too long to be compiled (of course... I have a very big project), in this way I will compile for first the files that I'm probally editing and, if there is bugs, I'll get errors more soon.
Russell
|
|
|
|
|
this is probably because you rebuild all every time, no ?
why don't you just recompile only the units you just modified ?
|
|
|
|
|
|
_Russell_ wrote: But as you know, developing you compile many times per hour the same project and shorcuts are very fine.
i don't really get what you mean here...
|
|
|
|
|
|
i want to create a tool bar which should contain both text and bitmap. it should be done in dialog based application
like toolbars in any window(Ex. Back with left arrow, forward with right arrow, save with floppy symbol)
can anyone help me.plz.
thanks in advance
regards
sudhakar
|
|
|
|