|
this is the text from the msdn
The default implementation of this function checks for
a NULL window class name and substitutes an appropriate
default. Override this member function to modify the
CREATESTRUCT structure before the window is created.
and also
By design, these derivations of PreCreateWindow are
not documented
so you too need to check for null and perform any relavant operation.
May be the first call is for you too fill any information i.e if you want to create your own window class, coz if you dont MFC defines it.
then in the next call you are given an option to modify the window style.
Still Alive!!!
Thank you God.
|
|
|
|
|
hi:
as we know ,there are two track modes in the VCD ,the first one is MODE2 FORM1 and the second one is MODE FORM2.
how to read the VCD sectors.
who can help me?
thank you very much.
|
|
|
|
|
Can we overload the function operator () - Curly brackets ?
If yes then what would be the syntax for this.
|
|
|
|
|
int operator()(int i1, int i2)
{
return ;
}
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Why would you want the curly brackets to have a dual role in life? What problem are you trying to solve?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I agree with you, no need to overload curly brackets.
Still Alive!!!
Thank you God.
|
|
|
|
|
Mr.Prakash wrote:
I agree with you, no need to overload curly brackets
Two words:
Function Objects
Ian Darling
"The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt." - Bertrand Russell
|
|
|
|
|
humm???
I lookedup in MSDN and it should be links for JScript..
As far as my knowldge Brase brackets are not operators so you cant overload it.
brase brackets is used by the compiler for scope management of the identifiers.
Still Alive!!!
Thank you God.
|
|
|
|
|
STL uses it all the time: they are called 'functors'. Search MSDN or Google for functors and you'll understand what I mean.
Perl combines all the worst aspects of C and Lisp: a billion different sublanguages in one monolithic executable. It combines the power of C with the readability of PostScript. -- Jamie Zawinski
|
|
|
|
|
Right:
You can overload normal parenthesis, being (), which is what I think the original poster really meant.
You can't overload curly braces {}, because it's meaningless (although I could see some possible uses for lambda constructs, perhaps.)
Ian Darling
"The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt." - Bertrand Russell
|
|
|
|
|
Ian Darling wrote:
You can't overload curly braces {}, because it's meaningless (although I could see some possible uses for lambda constructs, perhaps.)
Or thunks (for the Smalltalk 80 perverted people )
--
So let's just walk from place to place, as long as we don't talk face to face.
|
|
|
|
|
No I mean for parenthesis ().
This has been asked to me during an interview. Can we overload function operator () ? If yes then how and in what scenario this would be required.
|
|
|
|
|
class multiplier
{
public:
int operator()(int i) { return i * 3; }
};
multiplier mul;
cout << mul(10);
Robert-Antonio
"Life is very hard, when you apply E-R model to it."
|
|
|
|
|
|
With all due respect, are you blind? Did you not see the first response to your query?
--
So let's just walk from place to place, as long as we don't talk face to face.
|
|
|
|
|
|
Hi!
The TVITEM structure has a member
lParam
A 32-bit value to associate with the item.
What does this mean? Does it mean that it is a mysterious value used by Windows internally OR does it mean that this is a value we can use freely for anything and Windows won't touch it?
Thanks in advance!
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
The latter: you can use this value for your own purpose. I normally store a pointer to the object which generated this tree item.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
This value, in most cases, can be used freely by the application.
It is usually set directly using this structure, or by the SetItemData() function of the tree control.
For example, If I need to display a list of database record entries using the tree control, I would use lParam to store the unique database identifier. If the user clicks on this item, I can then retrieve this value and do whatever to the appropriate db entry.
Hope that helps.
I Dream of Absolute Zero
|
|
|
|
|
hey!!
What does this code do???
outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
regards
balkrishna
|
|
|
|
|
If you have 95/98/ME, just try it (save all data before)
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
My window is basically an MFC dialog with some extra-stuff on it.
Specifically related to this problem, I have an empty handler for OnNcCalcSize and my window doesn't have the WS_CAPTION style.
I've noticed that when I give myself the WS_CAPTION style and let windows handle OnNcCalcSize , my window will respond to the specified commands, but I also get a nasty window frame+caption around my window which I dont want...
I've seen many windows that don't have the WS_CAPTION style, and obviously handle OnNcCalcSize by-themselves, yet they respond to the 'Tile Verticaly/Horizontaly' / Cascade-Windows commands.
I understand this is most likely due to something they do inside OnNcCalcSize that makes windows believe they should be tiled/cascaded/etc, but what should I do there if I don't want a non-client area ?
Thanks
|
|
|
|
|
I have created the service, using that how could i read the file on other system of same workgroup.
|
|
|
|
|
I have downloaded an MDI project.
The PROBLEM is when I insert any ActiveX component or control to any of the dialogs and run, Iam unable to VIEW the dialog to which I had added the ActiveX. That specific dialog is not popping up.
The PROBLEM occurs specific to THIS PROJECT only.
Is there any project settings to be done for enabling ActiveX controls.
Please help me out.
I thank u in advance.
Mughi
|
|
|
|
|
is there a call to OleInit() in the initinstance of the application.
Still Alive!!!
Thank you God.
|
|
|
|