|
You can derived your class of Editbox and then overwrite WM_CHAR only for digital number for 0..9 and A..F.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
AFAIK, you have to write your own code to validate the entered number.
Luckily there are functions like strtol [^] (or _tcstol , if toxcct is nearby ) that may greatly help you.
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]
|
|
|
|
|
ouh..oke!!
let me try 1st..
thanks master!!..
|
|
|
|
|
As an alternative to what the other replies suggested you, you can still first search if somebody didn't already that for you. Check here[^] if you can find something that suits you.
It would amaze me if something like that is not available on CP...
But if it's not the case, that would be an idea for an article
|
|
|
|
|
NEED HELP!!
hii all..
anyone here knows how to convert the requested memory address to bus address???...
plss..im urgent!!
this is my email : hafizul_10422@yahoo.com
thanks all..
hv a great day!!
|
|
|
|
|
aswd wrote: anyone here knows how to convert the requested memory address to bus address???...
plss..im urgent!!
Nope. Anyway I may help you converting a memory address to a bus number , for instance the address 0x0E translates to tram no.14 , that travels from my home to Rome central railway station.
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]
|
|
|
|
|
thanks alot..
|
|
|
|
|
I may give you two suggestions:
- Read carefully the forum guidelines before posting.
- Go to (1) if you have any doubt.
For instance you should be more precise with your questions: What is the 'bus address' your talking about?
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]
|
|
|
|
|
oke..the bus address is the transaction address of the frontside bus(FSB)..so if a cpu want to do a transaction such as I/O transaction or Read/Write Data transaction, the cpu must request the bus address 1st for the cpu to do the transaction..so my problem is how to convert to requested memory address (cpu requests) to the bus address.
|
|
|
|
|
I suppose you may get better help posting in the Hardware & Devices forum [^].
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 wanted to reply to him to read the posting guidelines, but to my dismay, it seems they disappeared
|
|
|
|
|
Well it is not your fault: first of all the are carved into the CodeProject's soul, then, sooner or later, they magically will appear again (at least I hope).
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]
|
|
|
|
|
learning is lifetime..do keep learning and reading!!
have a great day!!
thanks to all!!
|
|
|
|
|
Hi All,
I know the process name. I want to getting notified on the starting/Exiting of that particular process in my program.
Is there any method for this other than repeatedly enumerating all the running processes and checking for that particular process.
Thanx in advance.
|
|
|
|
|
You need to read Detecting Windows NT/2K process execution[^](An article on how to get notification from the OS when a process starts ).
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Thanks for the reply Hamid.
This articles describes about the development of a Processor Monitoring Application by Implementing a Kernel-mode driver, using the kernel mode driver API PsSetCreateProcessNotifyRoutine().
But I can't use this since I have to implement the Process monitoring in my MFC dialog baesd application.
|
|
|
|
|
Hi All,
I need the sample code for splitter window in dialog based application without using SDI.
Thanks and Regards,
Anitha
|
|
|
|
|
|
I'm trying to extract an icon from an exe file. I've managed to find Its raw data within the EXE file; but this raw data differs from a *.ICO file! I mean It's not possible to use an HEX editor to copy the raw data and save It as a *.ICO file. any help?
Thank you masters!
|
|
|
|
|
Do you need to extract an icon of a file?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
No, I don't. I just wanna LEARN.
Thank you masters!
|
|
|
|
|
|
Hi All,
I am writing one function that should return me a difference between given dates in months. I know it can easily be done by getting difference in years, months and days. Then calculate months like
trmMonths = 0;
trmMonths += years * 12;
trmMonths += months;
But i am not sure about what to do with days, because sometimes it may happen that difference between dates would be years = 1 months = 11 days = 28. in this case the difference between dates should be 24months.
Can anyone give me idea on how days can be handled here to get accurate difference?
Thanks,
AksharRoop
|
|
|
|
|
AksharRoop wrote: But i am not sure about what to do with days, because sometimes it may happen that difference between dates would be years = 1 months = 11 days = 28. in this case the difference between dates should be 24months.
Err I'm totally confused by your sentence here. Could you explain a bit better what is the problem exactly ?
Are you using COleDateTime and/or COleDateTimeSpan classes ? This could help you manipulating times.
|
|
|
|
|
I have a strange issue. There are 3 radio buttons that are grouped horizontally are showing wrong behavior.
By default two radio buttons are checked and one is unchecked.
When you click on any Radio button it becomes unchecked and the remaining two becomed checked.
The code is working totally fine when there is no RTL support.
However after applying the RTL support the above problem starts to occur.
I have a custom library that draws the radio buttons.
|
|
|
|