|
In my formview I have some edit control where I must put numbers, but if put characters I have an message : "write number" and the program hang; the message stay one the screen.
I want to use Win32 Exception to handle this error so that the program can continue.
What to do ?. I know that I must write try{}, catch{} but where to write it and what to put inside this fonction ?
that my problem.
Would you like to help me ?
I learn my self
|
|
|
|
|
Handle EN_CHANGE.
And include Try Catch there.
Happy christmas friends. May the Love of My Lord and Saviour Jesus bring forth Joy and Happiness into your life too.
<marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" hspace="2" vspace="2">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
|
toxcct wrote: right this time
When am I wrong.
toxcct wrote: '5'
LOL I Passed.
I have a message for you here below...
Happy christmas friends. May the Love of My Lord and Saviour Jesus bring forth Joy and Happiness into your life too.
<marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" hspace="2" vspace="2">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
Owner drawn wrote: have a message for you here below...
too bad, i don't believe in god
but you can salutate him from me
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VisualCalc 3.0]
|
|
|
|
|
Sure. I will pray for you.....
Happy christmas friends. May the Love of My Lord and Saviour Jesus bring forth Joy and Happiness into your life too.
<marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" hspace="2" vspace="2">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
Owner drawn wrote: Sure. I will pray for you.....
what about me... happy xmas...logging off till xmas
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
funny
Happy christmas friends. May the Love of My Lord and Saviour Jesus bring forth Joy and Happiness into your life too.
<marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" hspace="2" vspace="2">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
|
Now i know that you understand my problem; can you show me the code to write(inside try and catch) so that the program will continue.
|
|
|
|
|
I don't know what to test in try {...}so that i can execute the throw command.
the message that appear when i put characters in float field is "Taper un nombre"("Write a number" I translate in English, my version is french).
What to test?
Give me an example related with my question
I learn my self
|
|
|
|
|
An easy way would be subclass the edit box and handle the WM_CHAR message. And do the exception handling there.
This way you can get individual characters as you type them and you will also be able to decide whether to process them or not.
You will get lot's of samples from Code project
Happy christmas friends. May the Love of My Lord and Saviour Jesus bring forth Joy and Happiness into your life too.
<marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" hspace="2" vspace="2">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
Hi,
I have a list of objects which are all releated in some kind of way with each other.
But now i need to prevent cyclic references in my links.
Just like Excel prevent this when a formula got a cyclic reference.
Is there a sort of algoritm that can be used for this check or what would be the best
way to implement this.
If you need more specific information just let me know.
Merry XMas too all,
BadKarma
codito ergo sum
|
|
|
|
|
Keep checking for cycles. I had a similar problem. I solved it by setting flags on each list node.
I have another method, lol can't say how useful it could be for you.
I tried with a slow and fast traverser.
Fast traverses the list like ->next()->next()
Slow traverses the list like ->next()
If fast comes around and catches up with slow then there is a cycle.
This helped me a lot.
Happy christmas friends. May the Love of My Lord and Saviour Jesus bring forth Joy and Happiness into your life too.
<marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" hspace="2" vspace="2">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
Hi,
I am getting the text data "12345" and i want to convert it into long data type 12345. Is there any API which do this?
Thanks
|
|
|
|
|
|
It would not give same 12345 number. I am not looking for long value of text "12345". I am looking for same number which text contain!!
|
|
|
|
|
I have checked atol
it works fine i think it satisfies ur demand
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
kidding?
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1"> --[V]--
|
|
|
|
|
|
|
|
Hello!
I am making MFC application which is divided into many DLL.
I am using STL and having problems with "access violation".
Should I use <afxtempl.h> instead, or is there anyway to fix that STL error? Your comments would be appriciated.
Sovann
|
|
|
|
|
Hello,
I think that the problem is not with STL or that the collections that the MFC provides will solve the problem.
What exactly is your problem?
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Well, when all in one EXE, everything works just fine. Until we break into many DLL and pass/save pointer back/forth, we come to this "access violation". Most of the crash, we have invalid pointer such as 0xfeeefeee or 0xcccdcccd.
Sovann
|
|
|
|