|
no backspace allowed ?
he will be surprised
|
|
|
|
|
WOW! You live in history? just like Van Helsing? oh man this thread is too old!!
by the way I'm like Google, don't like "deleting" :->
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
Link2006 wrote:Let's take it outside of CP
Jeremy : Please don't.I would love to see this.I'm making the popcorn already.
|
|
|
|
|
VuNic wrote: You live in history?
nope, just browsing the forum, searching for a topic, instead than asking for a question that has been asked soooo many times already
|
|
|
|
|
One of the controls I created some time ago supports filtering of input. You can use its implementation as an example of one way to restrict input to a certain set of characters (in your example, "0-9 " and "a-f ", and optionally "x ").
http://www.codeproject.com/editctrl/enhfocusedit.asp[^]
-=- 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! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
cn u send me an example as i easily undestand
i hav three dialog boxes
third dialog box contain menu
i want that when i goto third dialog box from first dialog box then its menu are disabled but when i go from second dialog box third dialog box menues are not disabled.
plz send me code how to do it
note : specially for viorel
Please mail me
-- modified at 8:40 Thursday 15th June, 2006
|
|
|
|
|
put a flag in the dialog. u should check this flag in the InitDialog. if flag is set, disable the menu.
so before calling the domodal function from the first dialog set this flag.
and when u call DoModal from the second dialog reset the flag..
nave
|
|
|
|
|
CAN U SEND ME SOME EXAMPLE PLZ
Please mail me
|
|
|
|
|
Hi,
I have some problem with this fn.
IMultiMediastream::GetDuration(..);
but this fn. worked well
IMultiMediastream::SetState(STREAMSTATE_RUN);
how to solve this problem
-- modified at 8:08 Thursday 15th June, 2006
|
|
|
|
|
Hi,
Is there any tool that can effectively find out the occurances of memory leaks?
Thanks in advance
Taruni
|
|
|
|
|
|
|
|
try out :-Rational Purifier .
Regards,
FarPointer
Blog:http://farpointer.blogspot.com/
|
|
|
|
|
there are proffessional licensed tools like Numega Bounds Checker and inte vtune performance analyser.
SaRath.
"Don't Do Different things... Do Things Differently..."
Understanding State Pattern in C++
|
|
|
|
|
Search for AQTime and Rational Purify
Cheers
"Peace of mind through Technology"
|
|
|
|
|
I use BoundsChecker from NuMega, but VC6 had functions of detecting memory leaks and there are some articles on it at CP. The best solution I found (non-group) was to put a TRACE command (that is a macro in VC6) before every allocation (new, malloc, etc...) and deallocation (delete, free, etc...) in your program. That includes constructors and destuctors in your classes, that way you know if you are the source of the leak or one of the libraries is. Use your imagination and you will find there are many ways to discover such problems; including appending the results to some file.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
MFC does this same sort of thing automatically when the application is closed.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hey David,
That is kind of what I was talking about when saying whether you are creating the leaks or the library is. MFC actually was the cause of some leaks under VC6; I can not remember right now where they where, but they where there. If I was to dig a bit I think I would find a case where they load a font, use it, select the old font, and then proceed without releasing the font they had loaded.
Just for kicks:
1) Heck I never realized you where 8 years younger than me before.
2) “The largest…” sounds familiar are you sure you are the original source?
3) “Judge not by…” explain that one to an Arab when they are starring you in the eye during negotiations in order to see if they dilate, which indicates whether you are lying or not.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
Yes, MFC does have a few, but those too are revealed when your application is shut down.
John R. Shaw wrote: 2) “The largest…” sounds familiar are you sure you are the original source?
I'm not 100% sure. I heard on the radio that all thing begin as something, even fire as a spark. I thought about that for a minute and settled on the quote. If it belongs to someone else, it was not intentional.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I believe you 100%, but I know I have read or heard that quote before (multiple times). But half the stuff I figured out or made a statement about (mostly when I was younger) had already been done by someone else. When I first sat down with a piece of graphics paper and figured out how to draw a line (simple algebra) via C code (before the Web) I was not shocked that some one else had already done that. What bothered me was that he (some professor) wrote a paper on it (years before) and therefore (from an academic point of view) I could not have figured it out on my own. I some times think we are dealing with a bunch of intellectual idiots, just because someone solved the same problem before you did (and you did not know about it) does not lessen the fact that you discovered it [separately].
I got a little carried away there. I am going back to school and discovered a few months back that no matter how accurate my paper is I still need to search the Web to find [supporting] references, because I am not an expert until I have published (with per-review). Even then you are not an expert on the subject unless you where the first person to write about it, in which case you can quote yourself.
“When you fall down it hurts!” – John R. Shaw
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
i used LoadMappedBitmap,CreateMappedBitmap in my program.it is compiled successfully but it is showing runtime error?why?
E-Ramu
|
|
|
|
|
Can you be more specific,how to use?whats error?
whitesky
|
|
|
|
|
What does the debugger say about the problem?
|
|
|
|
|
CBitmap b;
b.LoadMappedBitmap(IDB_BITMAP3,0);
i wrote these 2 lines.the debugger is showing that "the memory could not be read".but it is working when i use b.LoadBitmap(IDB_BITMAP3) instead of MappedBitmap
E-Ramu
-- modified at 8:01 Thursday 15th June, 2006
|
|
|
|
|
i wrote
<br />
CBitmap b;<br />
b.LoadMappedBitmap(IDB_BITMAP,0); and it return 1 and it work a another question whats IDB_BITMAP3?(detaily)
whitesky
|
|
|
|