|
The "kind guy" makeover doesn't look good on you.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rajesh R Subramanian wrote: The "kind guy" makeover doesn't look good on you.
I know.
BTW did you read this [^]? Now I must choose:
- Should I stop using sarcasm in my answers?
- Should I instead stop answering?
- Should I build the wall?
- Should I run for president?
- Should I trust the government?
- Will they put me in the firing line?
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: Should I stop using sarcasm in my answers?
The occasional sarcasm is good. Also, you're mature enough to keep it under acceptable levels, so I don't see a problem.
CPallini wrote: Should I instead stop answering?
WTF are you talking about.
CPallini wrote: Will they put me in the firing line?
I hope.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Well, I'm unhappy with Chris 'HOW TO ANSWER A QUESTION'. Anyway, of course, I'm not going to stop.
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]
|
|
|
|
|
My same exact thoughts. We always try our levels best to provide an answer that could be of help; but some questions CANNOT be answered and the OP WILL NOT learn, no matter what. Now, we can ignore such posts completely.
But like you said, I won't stop either.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
consider writing one yourself...
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
i need to measure a char width in a text , to detrmine where the user clicked.
void CTest_View::OnLButtonDown(UINT nFlags, CPoint point)
{
CString strInput;
strInput = "Text 1234";
int nX = point.x; // but this is the position in pixel.
}
please help.
Thanks
|
|
|
|
|
Let me google that for you![^] and remember that google or any search engine is your friend.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
What does it have to do with finding the character width? Can't you just call GetCursorPos()[^]?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
no because i need to find th x and y where the mouse clicked in order to mark the text to copy it.
|
|
|
|
|
susanne1 wrote: i need to find th x and y where the mouse clicked in order to mark the text to copy it.
Ugh... You need to find x and y? Ya know? That's *exactly* what GetCursorPos() does.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
CDC::GetTextExtent [^].
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]
|
|
|
|
|
This method gives me the width of the whole text, wht i exactly need, is the width in pixel for each charchter in the text.
|
|
|
|
|
Actually this method gives the width of the passed string, if you pass a single-character string then you get the width of such character.
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]
|
|
|
|
|
What are you trying to achieve exactly ? On what the user is supposed to click and what do you want to do in response ?
|
|
|
|
|
To get the character width you can use below sequence.
Firstly use GetCursorPos() to get the cursor point
and use HWND WindowFromPoint( POINT Point ) To get the handle and from that handle
use the below API in which the LPTEXTMETRIC haves the character width.
BOOL GetTextMetrics( HDC hdc, // handle to DC
LPTEXTMETRIC lptm // text metrics
);
i cannot understand whats your need to do such a step, well hope you are looking for the above
modified on Monday, July 13, 2009 4:46 AM
|
|
|
|
|
Hi Everyone,
Is it possible that when we burn any of the CD, it shouldn't get copied on any PC or it should not get Burned.if possible please send a sample.
Thanx in Advanced.
Shashi Bhushan
|
|
|
|
|
Read about it here - CD/DVD copy protection[^]
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Member 4603754 wrote: Urgent please
This clearly states you don't know forum guidelines, please read [^] carefully.
Member 4603754 wrote: Is it possible that when we burn any of the CD, it shouldn't get copied on any PC or it should not get Burned
?
Member 4603754 wrote: if possible please send a sample.
A sample CD?
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]
|
|
|
|
|
Trying to get your question...
Are you asking about code which will burn CD on the fly means without copying it on HD?
The secret of life is not enjoyment
but education through experience.
- Swami Vivekananda.
|
|
|
|
|
If I'm right, there's something called "Copyright protection" or copy protection. But that merely shows a message that the disc is copy-protected when someone makes a copy. You cannot prevent a disc from being copied. Any disc consists of merely data, not a running program which can decide what to do.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi
can any one help me how to segment a speech wave file based on shortpauses between the words in the wavefile,I need to parse the wave file for pause if I get it I will take the word content and make a new wave file and again parse the old one for next pause and make the new
file...
the difficulty I am facing is how to get the pause in a wave file.
thanks for help from any one,
regards
vamshi
|
|
|
|
|
what sound API are u using or how have u read in and stored the raw data?
i guess how i would do it would be to either do a raw data check to see if the current sound buffer had a series of zeros in it. this wont work if you have microphone data because of noise etc.
otherwise you could FFT analyse the buffer to see if there exsists a freq in the audiable spectrum range with a magnitude of X, where X is your tolerance of quiteness.
|
|
|
|
|
Thanks for giving me the hint I will make an r&d on FFT.
but how could I know the audible limit of the sound wave file as the header donot contain this info.
I didnot used any API ,I am provided with the wave files recorded from a
software in PCM,16000kHz,1 channel mono,16 bit sample unit.
thanks
|
|
|
|
|
Thanks for giving me the hint I will make an r&d on FFT.
but how could I know the audible limit of the sound wave file as the header donot contain this info.
I didnot used any API ,I am provided with the wave files recorded from a
software in PCM,16000kHz,1 channel mono,16 bit sample unit.
I am the same kittu_vamshi.some settings could destroy my old id
thanks
killabyte
|
|
|
|