|
Other than the convention that I provided, I do not know of a standard 'name' for time zones.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Ok, say I want to do this. User gives the time offset, say -6:30 as an example. Now I want to find the appropriate time zone name. From where I should find it?
I appreciate your help all the time...
Eranga
|
|
|
|
|
SetWindowExtEx
SetViewportExtEx
SetWindowOrg
SetViewportOrg
DPtoLP
LPtoDP
I need these functions in my program.
Thanks in advance.
modified on Thursday, December 20, 2007 11:03:00 AM
|
|
|
|
|
|
I've found it in msdn, the topic is "Types of Coordinate Systems".
|
|
|
|
|
Hi,
How can i check during drop operation which mouse button(left or right) is released.
|
|
|
|
|
When I move the dialog box I just want to paint the border. This is the deafult behaviour in Java/Swing. It avoids a lot of flickering and refresh problem.
Is there any easy way to achive this in wonodws?
|
|
|
|
|
Hi all.....
Please tell me what is Message Reflection?
Thanks in advance
sairam
|
|
|
|
|
|
Hi everybody,
I want to warn a customer in my app when Windows begin to swap. How can i to get this information ?
Somebody can help me ?
Thx
André Rios
|
|
|
|
|
Andre Rios wrote: when Windows begin to swap.
What do you mean by this? Windows is in a constant state of swapping data to/from disk.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
This case of swapping: When the physical memory is full and Windows write memory data to disk for free physical memory.
|
|
|
|
|
So why would you want to detect, and subsequently act upon, something that Windows does almost non-stop?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I have this graph to explain my case :
The Virtual Mem is the Virtual Memory Size of the process.
The Used Mem is the Physical Memory used by the process.
thx
|
|
|
|
|
Well, if you can find those two values in the Performance Monitor, the solution is rather simple.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
In the AppWizard and CodeWizard directories of Microsoft Visual Studio there are some code template files. These templates contain string substitutions such as [!output CLASS_NAME]. Does anyone know where I can find a list of these 'variables' and what they are substituted with? Also does anyone know if it is possible to add ones own 'variables'.
|
|
|
|
|
Hi all,
I have the following string: "MA01234 TEST" and I want to replace the number part of the string with a value of (just an example) "43210 ". So how can I replace the value within the string? What function can I make use of?
Example:
MA01234 TEST
TO
MA43210 TEST
Can anyone please assist me.
Many Thanks in advance
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Well, if your string fields have fixed format, then it is pretty easy (just replacing characters, I think you can figure how).
On the other hand, with variable field format you have to parse the strings to extract the numeric field (maybe the other ones) and replace it.
A powerful tool to do such string operations is a regular expression parser, like
Boost.Regex
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.
[my articles]
|
|
|
|
|
CPallini wrote: On the other hand, with variable field format you have to parse the strings to extract the numeric field (maybe the other ones) and replace it.
A powerful tool to do such string operations is a regular expression parser, like
The numbers that I provided was only an example it could have been alphabetic as well.
CPallini wrote: Well, if your string fields have fixed format, then it is pretty easy (just replacing characters, I think you can figure how).
It is fixed and I'm not looking for the complete answer, but just want to know which function I can make use of to replace a part of the string from a starting location to a end location.
Thanks for the reply
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
Oh, if it is fixed you don't need functions at all (assuming ASCII strings):
int i;
char record[]="MA01234 TEST";
char new_field[]="43210 ";
for (i=0; i<6; i++)
{
record[2+i]=new_field[i];
}
of course hard-coded numbers are ugly, but I think the concept is clear.
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.
[my articles]
|
|
|
|
|
|
There are I think 2 approaches to this. You can either use a regular expression engine (something I know next to nothing about but there are CP articles if you search) or you can code it yourself. A loop from 0 to the length of the string would be your basic algorithm, pick out the numbers either one digit at a time or as a group and replace them either in place or by generating a new modified string by partially copying the old one. The C Runtime has lots of useful functions like _isdigit and strcat which could help you and stl strings have useful things like functions to reverse strings as well. It important to decide if you're only working in ASCII here or only in UNICODE or if you want it to work for both.
This function seems very specific as well so you might want to break it down into more usefully generic things like bool find_digit_sequence_in_string( TCHAR* aString, int& iBegin, int& iEnd )
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Thanks for the reply and the information provided. I will be working with ASCII and the numbers that I provided in my example was just that ... an example it could have been letter as well. Basically I'm looking for a function that will allow me to copy from a starting position to a end position within a string. Does something like this exist? I can think of a way to do it with string copy but it feels like a very long way to perform something like this.
Thanks in advance
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
stl strings have a substr function you can use for this
<br />
basic_string substr(<br />
size_type _Off = 0,<br />
size_type _Count = npos<br />
) const;<br />
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Thanks for the info Matthew.
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|