|
Fareed Rizkalla wrote: You can code programs similar to C in C++.
You can but should not
cheers,
AR
When the wise (person) points at the moon the fool looks at the finger (Chinese proverb)
|
|
|
|
|
Here ya go:
#include <stdio.h>
void main( void )
{
printf(L"PEBKAC error. Please back away from the keyboard.\n");
}
"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
|
|
|
|
|
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]
|
|
|
|
|
A basic C programming language code example is in every, every, every (did I say every?) book (even in romance books, I guess).
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]
|
|
|
|
|
CPallini wrote: (even in romance books, I guess).
Ya .. if we are romancing with Computer
|
|
|
|
|
1. First of all Iwould like to set a value of a varuable during debugging in visual studio 2005
2. And then I had a question if the path is five as below does the compiler will take care of converting \\ to \ in the string
CString path = c:\Temp\\bin_Images\abc.txt"
|
|
|
|
|
1. You can do this from one of the debug windows (Autos, Locals, Watch etc). Just click on the variable's value and change it to whatever you want it to be.
2. All backslashes in a string need to be escaped thus:
CString path = "c:\\Temp\\bin_Images\\abc.txt";
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
Hello,
I am finding an issue where in I have a Text which is longer than a single line with no spaces. This text is not displayed completely in the tool tip. It gets truncated.
I make use of CDC for the tooltip display rectangle,
CDC* pDC = GetDC();
CRect rect(0, 0, 0, 0);
CString sComment = "this is a comment bigggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg comment 2 2 2";
pDC->DrawText(sComment, &rect, DT_CALCRECT | DT_LEFT | DT_WORDBREAK | DT_NOPREFIX | DT_TOP);
int iheight = rect.Height(); // It wont return the correct rectangle height
//Output is
this is a comment biggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
Can anyone tell me what the issue is.
Thank you,
~ Vikram
|
|
|
|
|
If you don't like the clipped text, then why didn't you specify the DT_NOCLIP formt?
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]
|
|
|
|
|
I need the text to be displayed on multiple lines, but i need to avoid text truncation.
|
|
|
|
|
I suppose you got the wrong height because you've passed an empty rectangle to the function.
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]
|
|
|
|
|
Interestingly this is an exact duplicate of this question[^], even though the ids are different. I cannot believe that two different CP members randomly created exactly the same issue in the last few days. Are you (or the other person) perhaps a sock puppet?
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
or the user simply changed his name ?
Watched code never compiles.
|
|
|
|
|
Well, a simple view of both user entries shows this not to be the case.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
then, a very strange case of telepathy
|
|
|
|
|
...or collective conciousness...hell the borg are coming!
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world.
Fry: But this is HDTV. It's got better resolution than the real world <
|
|
|
|
|
Or team members in a race to please the boss (chetana is usually a girl's name and vikram a boy's)
|
|
|
|
|
Maybe they should get together and make beautiful programs ...
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
hi all,
please tell me What characters are not valid and not supported in URL?
thanks in advance.
|
|
|
|
|
Try something like this[^], it's amazing what you can learn.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
I am facing a strange problem.
In my dialog application (Win32), I have a button control.
I am loading a "Greek" string ("Επιλογή Εκτυπωτή")from a string DLL and trying to
>Case-1
display on the button control.
>Case-2
And also I am trying to use the same string to set the dialog's title.
But here the problem is,on the button, text is displayed correctly, but dialog's title displayed as
"?p???? ??t?p?t?"
I am using (both for Case-1 and Case-2)
>LoadStringW to load the string
>SetWindowTextW to display
While debugging, I found that strings are loaded properly in both the cases.
I have also tried by changing code pages using setlocale API.
But I couldn't solve this issue.
Please provide me some tips so that I can move forward.
Thanks in advance
msr
|
|
|
|
|
The difference is on the font used for the two items: are you sure that the font used for window titles supports greek characters?
|
|
|
|
|
I have seen the dialog properties, the font is Microsoft Sans Serif.
I think this font supports Greek also. Check
Regards
msr
|
|
|
|
|
I have just used your Greek phrase to set my dialog title and it appears correctly (font is MS Sans serif), so I cannot see what is different between your code and mine. Maybe you could show a bit more of your code as there may be a clue that you have missed.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
Hi, thanks for the reply. Here is my code.
WCHAR* chr = L"Επιλογή Εκτυπωτή";
HWND hWnd = ::GetDlgItem(m_hWnd, IDC_BUTTON);
::SetWindowTextW(m_hWnd, chr);
::SetWindowTextW(hWnd, chr);
>> Where m_hWnd is handle to the Dialog and hWnd is handle to the Button.
>> Output
>> Button - "Επιλογή Εκτυπωτή"
>> Dialog's Title - "?p????? ??t?p?t?"
Regards
msr
|
|
|
|