|
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.
|
|
|
|
|
THANK YOU for your help Mr.PRAKASH.
I got it working through AfxEnableControlContainer().
|
|
|
|
|
Add the command
AfxEnableControlContainer();
in your Apps InitInstance()-Method !!!
e.g.
/////////////////////////////////////////////////////////////////////////////
// CMyApp initialization
BOOL CMyApp::InitInstance()
{
AfxEnableControlContainer();
greets al
|
|
|
|
|
THANK YOU for your help Mr.EIWE.
I got it working.
|
|
|
|
|
Quick Q.
Does anyone know how to tell what service pack/s, if any, has been installed on my Visual C++ Dev. environment?
There are no obvious clues from the About dialog at all!
I Dream of Absolute Zero
|
|
|
|
|
search here at CP. there is a VS AddIn that shows
the ServicePack number.
|
|
|
|
|
Cheers!
I Dream of Absolute Zero
|
|
|
|
|
|
Of course, the best question is, will VSSP6 ever come out of beta testing...
Steve S
|
|
|
|
|
How To Disable a System Service like Messenger?
What rights do i need to Disable a System service ?
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|
|
Actually there is very easy way to do it...but i dont remember ..but the alternative method is...
Run regedit.exe and find for "RUN" or got to this
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
and on right hand side u will see the list of application getting loaded..
just right click and delete them...
regards
Balkrishna Talele
|
|
|
|
|
|
Thanks a bunch
C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg
|
|
|
|