|
Which means there's already a _DATA_TYPE defined someplace else. Put the cursor on it and press F12 should take you to the other definition.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Anybody have any ideas to help me resolve this problem?
Thanks for any help
|
|
|
|
|
Hi, thank you everybody for helping me do everything I posted a few weeks back. I took your advice and am doing great in my programming class. I'm getting a 109%! But I have one more question. Is there any way to add sound (such as speaking) to text? Example: You do printf("My name is Bob");
then you do something after it to make the computer speak My name is Bob.
I have a program called write out loud and it does that and i want to know if there is a way to do something like that in C or C++. I already know how to do sound(#); and nosound(); I just want to know how to have a robot voice say text you type in. Please post a small example.
Thank you!
Sincerely, Colin M.
|
|
|
|
|
SAPI, man, SAPI! SAPI rocks the big one! Get it here[^]
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
colin21 wrote:
I'm getting a 109%!
That's called STACK OVERFLOW. In your case I think it is a good thing.
Good luck with your class.
Chris Meech
If you spin a Chinese person around, do they become dis-oriented?
Why do people in this time period worry so much about time traveler's destroying their worldline when they have no problem doing it themselves every day? John Titor.
|
|
|
|
|
Take the Chinese joke out. Not everyone will think of it as humor.
William
Fortes in fide et opere!
|
|
|
|
|
Are you suggesting some people are too dense to recognize a simple pun?
Or are you on a political correctness kick?
Just curious........
|
|
|
|
|
You can rationalize it however way you want to make it look innocent. What is one man's pun is another man's pain.
I try to live by the simple rule of doing unto others as I would have them do unto me. Since none of us is perfect, tell us about your imperfections so we can make pun of them.
William
Fortes in fide et opere!
|
|
|
|
|
WREY wrote:
tell us about your imperfections
I guess I don't consider a person's being asian an imperfection like you do........
As for my imperfections:
1) I am 6'1" - taller than average
2) My hairline is receding
3) I don't fall on my knees weeping if I hear a simple pun
4) I indent like this:
int foo(int bar)
{
return bar/2;
}
instead of like this:
int foo(int bar){
return bar/2;
}
5) I have yet to break 100 in golf
6) I have a 1" scar on near my left ear
(I could go on for hours, why are you interested in this? It seems rather strange........
|
|
|
|
|
The person's Asian heritage is and has never been a consideration of imperfection to me.
I was specifically refering to your imperfections. YOUR IMPERFECTIONS!!!
That you readily equated heritage to imperfection, already shows density on your part to grasping the point and your penchant to bigotry to think it nothing when someone makes a joke about someone else's heritage, to simply refer to it as a pun.
No, I don't expect you to fall on your knees to weep for anything (and that includes your receding hairline and the fact that you may NEVER break 100 in golf).
Talk about receding hairline, it's obvious not only is your hairline that's receding, common sense and average intelligence are too. But why are so hypocritical about classifying flaws as imperfections. These are NOT imperfections. These are mere flaws that you're trying to pass off as imperfections. Give us the REAL IMPERFECTIONS.
William
Fortes in fide et opere!
|
|
|
|
|
A pun was made based on the similarities between the word "oriental" denoting asian heritage, and the word "orientation" meaning position or direction.
You slipped on your PC-Policeman's hat and made a comment.:
I replied that it was just a pun.
You said:
"You can rationalize it however way you want to make it look innocent. What is one man's pun is another man's pain."
implying that Chinese people are too (insert whatever word you see fit here) to understand that making a pun based on similarities between orient(the geographic region) and orient (to position) is not an insult.
You then said:
"Since none of us is perfect, tell us about your imperfections so we can make pun of them."
Now, if you want to hide behind the fig leaf of pretending to be too ignorant to understand context, then I guess your huffy rebuttal makes sense.
Here is the context:
A pun was made - a play on the 2 meanings of "orient".
You said this was wrong and had the potential to cause emotional scarring and that since I, too, was imperfect I should throw some of my imperfections up so you could try to emotionally scar me with clever punnery.
Now, since you offered my imperfection as a counter to the original pun, any person with a language parser that operates on a level above a chimpanzee's would assume the 2 statements were contextually linked.
Therefore, it can be assumed that you feel being Asian is an imperfection.
I notice that you went out of your way to convolute the actual meaning of your words. And with 20/20 hindsight and a mastery of your keyboard you managed to cobble together some semblance of a coherent revision.
Wouldn't have been simpler (and more truthful) to admit you misspoke and went a little PC-overboard?
WREY wrote:
Talk about receding hairline, it's obvious not only is your hairline that's receding, common sense and average intelligence are too
What baseline are you using to conclude that my "average intelligence" is receding?
WREY wrote:
That you readily equated heritage to imperfection, already shows density on your part to grasping the point
I was merely assuming that you had an at least pre-school level of understanding of context.
If I say to you: You are a man!
And you shriek back: That ain't cool! You aren't perfect either!
One can reasonably assume that you took my calling you a "man" as an insult.
WREY wrote:
and your penchant to bigotry
My wife is a Japanese-American. She thought the sig was funny.
WREY wrote:
when someone makes a joke about someone else's heritage, to simply refer to it as a pun
Look, I'll let you off the hook if (as I am beginning to suspect) you say English isn't your primary language. That sig did not make "a joke about someone else's heritage" it made a pun out of the 2 words (as puns are wont to do). The fact that one of the words is a racial description does not magically transform the pun into a racially demeaning joke.
WREY wrote:
These are NOT imperfections. These are mere flaws
Are you going out of your way to confuse me? Does your universe swim with perfect flaws?
WREY wrote:
Give us the REAL IMPERFECTIONS
I tend to find Politically Correct wannabe saviours of the world overly amusing.
|
|
|
|
|
You can't even make a simple prosaic reply. You resort to carving out selected phrases and pieces of sentences to bolster some phony rationale as a counterpoint. Then as if that wasn't enough, you start mincing words and turn to semantics to find ways of explaining what is already known, that you condone and approve tasteless jokes about other people's heritage.
But to save yourself from being viewed as a bigot (mistakenly or otherwise), you desperately sought to conjure up different scenarios in which you tried to show legitimacy and acceptability of the joke through word definition, passing it off as context. "See, in one instance the word means this, but in another instance, it means that." Yeah. Right.
Irrelevance, incoherence, disjointedness, casuistic reasoning are but a few of the characteristics that fill the rest of your garble, and as such does not deserve the time to even second guess the relevancy it purports to tell.
William
Fortes in fide et opere!
|
|
|
|
|
WREY wrote:
You can't even make a simple prosaic reply
I'm glad you don't find my replies dull and unimaginative.
WREY wrote:
You resort to carving out selected phrases and pieces of sentences to bolster some phony rationale as a counterpoint.
If by "carving out" you mean I quote you, then I'll have to agree. What "phony" rationale? That I can tell the diffence between a joke and a pun?
WREY wrote:
you start mincing words and turn to semantics to find ways of explaining what is already known, that you condone and approve tasteless jokes about other people's heritage.
Since we disagree on whether or not that pun was, in fact, a tastless joke about a person's heritage your piling on serves no purpose.
WREY wrote:
But to save yourself from being viewed as a bigot (mistakenly or otherwise),
I issued a very short statement about my percieved bigotry. beyond that, I couldn't care less what you or any other facelless drone might think about me. I only care about what people close to me think. And they are universally intelligent enough to not get their panties in a wad about a stupid pun.
WREY wrote:
you tried to show legitimacy and acceptability of the joke through word definition, passing it off as context
I tried (apparently unsuccessfully) to explain to you the difference between a pun and a racial slur joke. It is up to the individual to find the pun acceptable or not.
WREY wrote:
Irrelevance
How is explaining what a pun is (after you have conceded it was a pun) in relation to a pun irrelevent?
WREY wrote:
incoherence
Should I use smaller words? What part of my argument did you not understand?
WREY wrote:
disjointedness
This is a relative term - some of us are capable of seeing a common thread throughout my replies. If you have trouble following then I guess it was disjointed.
WREY wrote:
casuistic
Is this an example of "incoherence"?
WREY wrote:
are but a few of the characteristics that fill the rest of your garble, and as such does not deserve the time to even second guess the relevancy it purports to tell
Wow. I mean wow. I will try to be more coherent, less disjointed and more relevent so that you won't need to second guess the relevency my garble purports to tell.
|
|
|
|
|
I'll settle for you just trying to be relevant, coherent, less disjointed, and non-casuistic in your reasoning when replying, rather than being more of what it isn't already.
What standard are you judging your writing to believe it is not dull and unimaginative? That you persist in the way you do it simply says you haven't gotten the message of how exactly dull and unimaginative it is (and continues to be). You delude yourself.
It must be desperation time for you, because first you turned to semantics to explain yourself away (more like trying to cover up the shameful guise in which you condone jokes made about other people's heritage), then when you see that didn't work, you next turned to the (so called) "intelligent" people who surround you, claiming legitimacy because of their "universal intelligent" when in truth and fact if their intelligence were so "universal" then it should have been explained to you that it is something contemptible to make jokes of someone else's heritage or to condone it!! (Maybe someone did explain it to you, but for which your continued feeble explanation of your action can attest, you didn't get it. The question then is, "Are you ever going to get it?)
William
Fortes in fide et opere!
|
|
|
|
|
WREY wrote:
What standard are you judging your writing to believe it is not dull and unimaginative?
Your quote:
"You can't even make a simple prosaic reply"
(using the definition of prosaic as dull and unimaginative)
Look Wrey, you think orient is a bad word and I don't. Get over it. Learn to live with yourself.
I don't think a pun based on 2 meanings of orient is a racial slur. You do.
Drive on.
|
|
|
|
|
Prosaic also means, "Having the form or character of a prose without the identyfying elements of poetry." IOW, like a story without the metrical structure and verse normally associated with poetry. It also has another meaning associated with hymns. (Something new you learnt today? Typical of your narrow-sightedness to see only that which you care to see.)
Since you believe the joke was proper and nothing more than plain old fun, why don't you put it to the test!! Walk up to the next 100 Asian people you randomly happen to meet and tell them the joke and see how funny it'll be to them.
Say to them, "If I were to spin a Chinese person around, would it make that Chinese person disoriented?" Then laugh to make them see that you thought it was funny!! (And don't foget to put emphasis on the word, "disoriented" to underscore the joke you meant it to be.)
I guarantee you, you'll stop telling the joke BEFORE you reach quarter way to the 100 people. You'll also be thankful you stopped. (Wish I could be there to witness the encounter!)
William
Fortes in fide et opere!
|
|
|
|
|
Chris Meech wrote:
If you spin a Chinese person around, do they become dis-oriented?
Thats great. I had a good laugh thanks
I'm drinking triples, seeing double and acting single
|
|
|
|
|
On a dialog I have two buttons and two edit boxes. When I first show the dialog, one button is marked as the default button, and trigggers w hen I hit enter. But after I am done entering some text in the edtbox, then if I hit enter, I want button #2 (not my default button) to trigger. How do I in code switch my defaultness to the 2nd button? Or how do I trap the enter in the textbox to make it behave like I clicked the second button?
Thanks,
ns
|
|
|
|
|
ns wrote:
How do I in code switch my defaultness to the 2nd button?
Ah, spoken like a true engineer. I'm extremely anal about spelling, grammar and general "correctness" of information displayed to the users of my apps, (as may come as no surprise to you).
GotoDlgCtrl (GetDlgItem (IDC_BUTTON_2);
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
In what function am I using your snippet? And if focus goes to button2, does that mean that "enter" clicks it? I cant try it out cause I dont see which function I am to use when the enter key is pressed in that particular textbox. Just give me some hints...I know yer a busy guy an ddo have some jailly..
|
|
|
|
|
Gosh darn it, it's easier than I thought! Ignore my earlier stupid, brain dead, coffee-deprived post. In your dialog's OnOK() handler, just do the right thing.
CMyDialog::OnOK()
{
CString strText;
m_myEditCtrl.GetWindowText (strText);
if (!strText.IsEmpty())
handlerForButton2();
else
CDialog::OnOK();
}
CMyDialog::handlerForButton2()
{
...
} /ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Many thanks......
the day winds down............. hour and half to go...........fridayyyyyyyyyyyyy. Going to hit the treadmill...walking is fun!
|
|
|
|
|
What an interesting difference - I just finished 6 months of 7x14 days and I'm going to spend my first free weekend working on a new hack (a freeware bug tracking system).
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
In an MDI CRichEditView derived app, when the user presses the tab key, I would like four spaces to be added rather than a tab. Any ways I can do this?
|
|
|
|
|
catch it in WM_KEYDOWN event handler?
when you found <tab> key was press. Then, do the things you want to your richeditview. Eg.
switch(wParam)<br />
{<br />
case VK_TAB : DoSomethingToYourricheditview(); break;
Sonork 100.41263:Anthony_Yio
|
|
|
|