is a working code coz i have put this in my Dialog based application (Xyz) in a class called CXyzDlg..... that is, i have already added this function "OnSetCursor()".....and the cursor changes......in the main Dlg box but..... i have derived a class from the CStatic Class named it as "CMyClass".....and i have created obcts of it in the CXyzDlg class.....basically these objects i have created by placing the "static control" on the dialog box and then..... thru the class wizard created an object linking it with the picture control of type CMyClass(that is .....SUBCLASSING).....
also in thiz CMyClass i have added the "OnSetCursor()" function as well......and many other mouse functions like "onmousemove()","LbuttonDown()".....etc.....but here when i put in the same code as i had put in the main Dlg box for the "OnsetCursor()".....it does not change!!!!!......y???
I have a dialogbox application with 4 checkbox and one button.
the checkboxes have variables of type BOOL (m_check1. m_check2...)
When I click the button, how can I detect what check boxes were selected?
I tried to do it for getting name of the current driver that the program is running and to show how much free_space in Bytes left
Check this code I think it will help you ..(_getdrive)
You can delete what ever you don't need
/*The Function print the free space of the current disk */
/*Input- none. */
/*Output-Don't return a value
/* just print the Value in Mega-Bytes */
/*need to be included*/
for (uDrive=1; uDrive<=26; ++uDrive)
current_drive = _getdrive();
//check for the current disk that is working
uErr = _getdiskfree(uDrive, &df);
Letter = uDrive + 'A' - 1;
//Calculate the value to Mega-Bytes
First of all Password protect you PC then disable any folder you are sharing on network and disable remote access to you computer in My Computer>Properties.Enable Windows firewall.Use some other firewall.
forgot one thing
Look in administrative tools and from there Security policy something like that i dont remember exactly and remove all users except you,System,Administrators from the list of those who can access your system.And dont remove yourself otherwise you will not be able to access your drive.