|
|
Look (real hard) at your initial post. How would you answer it?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
Does it really support those features?
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Actually the first version supported it, but in the later versions it's depricated.
Press: 1500 to 2,200 messages in just 6 days? How's that possible sir?
Dr.Brad :Well,I just replied to everything Graus did and then argued with Negus for a bit.
|
|
|
|
|
It's no longer deprecated on Vista.
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
, but Vista the whole would be depricated soon!
Press: 1500 to 2,200 messages in just 6 days? How's that possible sir?
Dr.Brad :Well,I just replied to everything Graus did and then argued with Negus for a bit.
|
|
|
|
|
The initial library is called sys/time.h. I want to know the name of another library who can replace it.
|
|
|
|
|
Anka_Ame wrote: The initial library is called sys/time.h. I want to know the name of another library who can replace it.
That's available on Unix, but not Windows. Which functions from sys/time.h do you need?
|
|
|
|
|
Hi all,
I can easily change the color and bolding of text in a CRichEditCtrl using SetSelectionCharFormat:
CHARFORMAT cf;
::ZeroMemory(&cf, sizeof(cf));
cf.cbSize = sizeof(cf);
cf.dwMask = CFM_BOLD;
cf.dwEffects = CFE_BOLD;
m_text.SetSel(start, start + len);
m_text.SetSelectionCharFormat(cf);
BUT if 'start' is zero, that is, if the range I want to affect is right at the beginning of the control, then the whole text turns bold! Not just the 'len' number of characters!
This is really frustrating - what's so special about position zero that it wants to propagate its styles throughout the text? Is there a workaround?
Help!
Thanks!
~ Mike
Mike
|
|
|
|
|
Can this be of any interest: clickety[^]?
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
why...when I implement this function in C++....it give me...
warning C4996: 'fopen' was declared deprecated
void printitems(allinfo *a)
{
item *i;
itype x1, y1, z1;
FILE *trace;
stype vol;
char s[20];
vol = 0;
trace = fopen("trace.cont", "w");......}
lavi
|
|
|
|
|
lavy2883 wrote: why...when I implement this function in C++....it give me...
Because it has been declared deprecated.
led mike
|
|
|
|
|
) yes I know that;P...but what is realy the problem
lavi
|
|
|
|
|
|
use fopen_s instead
|
|
|
|
|
|
Ranjoy Guha wrote: use fopen_s instead
...and turn your perfectly valid standard portable code to be MS-only
|
|
|
|
|
how do I do this.... ....
lavi
|
|
|
|
|
lavy2883 wrote: warning C4996: 'fopen' was declared deprecated
See here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
fopen was declared deprecated along with many of the standard C functions. It's replaced by the fopen_s function. In the case of fopen, I think the issue was that it communicated specific error conditions by use of the global errno variable, which isn't thread-safe. That's the only issue I can think of.
VS 2005 is the only compiler I know of that has done this (in fact it may be an MS invention). If portability is a concern, use fopen. Or if laziness is a concern, use fopen in that case too! . There's a preprocessor define that turns off the warnings, and I think that's mentioned in the warning itself.
|
|
|
|
|
I am new to VS2005 so forgive me if I am asking the obvious.
I have a dialog that I want to add an OnInitDialog to. I have a class derived from CDialog tied to the resource. The properties page does not have a WM_INITDIALOG message in the list. Where is it?
Am I missing a setting?
Do I have to hand code this?
(Little things like this make me want to stay with VC6)
Dave
I'm pretty sure I would not like to live in a world in which I would never be offended.
I am absolutely certain I don't want to live in a world in which you would never be offended.
Dave
|
|
|
|
|
It's a virtual function. it's in the "overrides" properties
led mike
|
|
|
|
|
Thanks - I didn't even realize that was there.
-- modified at 11:35 Wednesday 4th April, 2007
(On looking into this further - the overrides is only available when I have the .h file for the dialog up and I was looking at the properties when I had the dialog resource up.
I wonder why it is done that way?
I'm pretty sure I would not like to live in a world in which I would never be offended.
I am absolutely certain I don't want to live in a world in which you would never be offended.
Dave
|
|
|
|
|
Right-Click on the Dialog Class
Select Properties
Check for the "overrides" properties
Check for WM_INITDIALOG
If OnInitDialog is not already beside it
Click on the drop-down beside WM_INITDIALOG
and select it
Then select Edit option
You will be inside OnInitDialog block
enjoy
|
|
|
|