|
i think i might talk about synchronising the node in the treeView and the item actually opened as a document...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
what was that?
|
|
|
|
|
Hi,
I am planning to take VC++ certifications that can add weight to my Resume. Not the free ones like Brain Bench certifications. Should be authentic and has to be taken from recognised promatic center. Has Microsoft have plans to re-start VC++ certifications??
Please Help..
Nani
|
|
|
|
|
How to format double variable with CString::Format() to the second digit after decimal point?
thanks
|
|
|
|
|
Hello,
Did you even bother too look at MSDN[^]? It just took me 3 seconds to come up with the answer...
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
CString Temp;<br />
double MyDouble = 1.234567;<br />
Temp.Format("%.2f",MyDouble);
|
|
|
|
|
I would like to convert a normal chinese code to unicode ISO 10646 code?
Please help!
|
|
|
|
|
The working group for unicode ISO 10646 has been around since 1991, so even the libraries that come with VC6.0 should support it.
What do you mean by normal chinese?
Do you mean Taditional Chinese (probably)?
Do you mean Simplified Chinese?
I forget, which one is Big-5?
INTP
Every thing is relative...
|
|
|
|
|
I mean Traditional Chinese!
I try to read from a text file with Traditional Chinese charactor and store it into a CString. Then convert the CString to unicode ISO 10646.
What should I do?
Please help!
|
|
|
|
|
There you will have a bit of a problem, since what is stored in CSting depends on whether _UNICODE is defined or not.
What are you trying to accomplish?
INTP
Every thing is relative...
|
|
|
|
|
I use _MBCS, how can I convert the CString data to unicode ISO 10646?
I would like to store the converted code into a text file.
Please help!
|
|
|
|
|
Hi everybody. I got a short question regarding the CreateFont API. I use it like this to create a Times New Roman font of size 20 but the result is a very small Times New Roman font of a height of only 12 pixels. In Word or Notepad for example, when one selects a font of size 20, the result is a lot bigger. I must be missing some conversion maybe?
hfntFont = CreateFont(20, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, CLIP_DEFAULT_PRECIS, ANTIALIASED_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Times New Roman");
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
BOOL CreateFont(int nHeight, ... );
nHeight:
Specifies the desired height (in logical units) of the font. For all height comparisons, the font mapper looks for the largest font that does not exceed the requested size or the smallest font if all the fonts exceed the requested size.
|
|
|
|
|
That wasn't an answer. I read the documentation myself and I know that. However, if I increase nHeight indeed the font grows, but just a little. So how can I convert logical units (what-ever-that-means) to pt (the measurement used in Notepad and Word). You know that font selection dialogue? Where you chose the font size? Now... how can I create a font just like it was selected from there? ::- ).
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
Sorry cann't remember the calculation right now. The CreateFont() function says it takes the logical units of the font, which is usualy the point size.
So when you specify the height, you are not specifying the height in pixels, you need to do a conversion.
Ooh! I just found this:
lfHeight = -MulDiv(PointSize, GetDeviceCaps(hDC, LOGPIXELSY), 72); (index: LOGFONT)
INTP
Every thing is relative...
|
|
|
|
|
If only I would know how to get the PointSize... searching for that in the meantime...
Oh, that's actually the size I want it to be I guess right? ::- D.
|
|
|
|
|
Yeah, that was it ::- D. Silly me. Thanks. It works! Hooray.
*scribbles Jown R. Shaw on his thank you list*
-= E C H Y S T T A S =-
The Greater Mind Balance
-- modified at 4:17 Thursday 10th November, 2005
|
|
|
|
|
You funny!
Point size is a type setter thing, which has been a pain in may (BLANK) for years. I think in pixels, not point sizes. If you ever write a text/code editor under Windows, you'll understand.
INTP
Every thing is relative...
|
|
|
|
|
I like pixels a lot more than pt but hey, that's the standard. So I had to take care of this. Thanks a lot again. You'll see yourself on the "Thanks to" list of the freeware application I'm working on next year when I'll start releasing public betas and final versions. So far I'm still in private beta testing ::- D.
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
hi all ....please i need help...
how could i create report with vc++ using crystal report ?and how to use crystal report view class?? is there any tutorial or sample code avaliable somewhere .
thanks alot for interest in my query .
|
|
|
|
|
Hi,
Can we send WM_ messages to a window in another desktop createted by CreateDesktop() (if the window handle is with us)?
Thank you.
- NS -
|
|
|
|
|
Try it out - I guess it'll take about 2 minutes.
--
The Blog: Bits and Pieces
|
|
|
|
|
I do not think that this is possible. Maybe... It might be possible to use SetThreadDesktop to switch a thread into the target desktop and then have it send the message?
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
HI
I have got one doubt. Is there any retstrictions to make an exe as Service.
I want to make my Server application exe as Service. That Server application is Dialog based application and it is for Client-server communication. when i am creating Service for this Exe it is creating Service and able to see that service name in Services of Administrative tools.
But unable to start it. it is giving error as 1053 : Service didnot respond to the start or control request in timely fashion.
Help me.
Thanks in Advance
|
|
|
|
|
How did you create the service? Did you simplly register it?
|
|
|
|