|
|
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
|
|
|
|
|
It is well known that the client loads the DLL within its process space.
Now if 10 differenct clients use the same DLL, is it that there will be 10 copies of the DLL with the 10 clients. If yes, is it possible to resolve this.
Also, DLLCanUnloadNow() checks if there are any clients attached to this DLL.
From the above statement, if each client loads a separate copy of the DLL into its process space, what is the reason to check whether multiple clients are using this DLL ?
|
|
|
|
|
You need a good book to know about DLLs,
amar_shinde wrote:
Now if 10 differenct clients use the same DLL, is it that there will be 10 copies of the DLL with the 10 clients
no 10 copies of the dll is not made, only one is made, but loading an address space into a process is bit tricky issue, it involves the knowledge of LDT (local discriptor table)
amar_shinde wrote:
Also, DLLCanUnloadNow() checks if there are any clients attached to this DLL.
This check is done my the OS when each clients start unloading the DLL, or in some case in a fixed interval or time.
Generally a global variable called as reference count is incremented or decremented depending upon loading or unloading, When this reference count is zero the dll code has the option to unload itself from the memory by returing appropriate value.
Still Alive!!!
Thank you God.
|
|
|
|
|
You might have been correct in 16-bit Windows; in 32- and 64-bit Windows, you should treat them as separate copies. Behind the scenes, Windows maps read-only pages to the same physical memory and maps writeable pages as copy-on-write (i.e. a copy is made the first time the page is written to). The programmer shouldn't worry about this.
If you need to share data between different copies of a DLL, you should either mark a section of the image as shareable and ask the compiler to store your shared data there, or use memory-mapped files. Memory-mapped files are generally easier to understand.
The DllCanUnloadNow entry point is only relevant to, and called by, COM. The COM runtime calls it when releasing an object instance or calling IClassFactory::UnlockServer (not necessarily immediately). If it returns TRUE , COM will eventually call FreeLibrary to unload the DLL.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|