|
kapardhi wrote: please provide som sample code if possible to fulfill above requirement.
i.e. how to get current time in integer domain.
Following functions are used frequently, ranked according to their importance...
QueryPerformanceCounter
GetTickCount
clock (haven't seen usage of this but anyway just for your information)
Does these[^] help?
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
Use GetTickCount() instead of GetCurrentTime() .
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi,
For Vista 64 we are using signed driver.
Before installing the driver we have to set the testsigning ON through command prompt.
for enabling the testsigning type the following command on cmd:
bcdedit.exe /set /TESTSIGNING ON and then restart the machine.
my concern is that if some one forgot this step and he is trying to install the driver then how could he know that TESTSIGNING is not ON.
Is there way in MFC through which we can get the status of TESTSIGNING.
Thanks
--Minakshi
Minakshi
|
|
|
|
|
Hi All
How can i call function with parameter in vc++.Function is BOOL CPopDlg::MoveFile(CString source, CString destination) And i want to call these function in
BOOL CTestDlg::OnInitDialog()<br />
{} .
Right now i am geting error..
error C2275: 'CString' : illegal use of this type as an expression<br />
1><br />
error C2146: syntax error : missing ')' before identifier 'source'<br />
error C2059: syntax error : ')'
Plz help me
|
|
|
|
|
you would need to pass a pointer of class CPopDlg in CTestDlg through some function and then call MoveFile.
If there is a parent child relationship between these two classes, you can use GetParent() to obtain a pointer to the parent and call functions of parents.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
What statement is the compiler complaining about?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi,
I want to know whether the state of a button is enabled or diabled so that accordingly i can enable or diable it.
Kindly let me knnow the function.
Thanks In advance.
Dhiraj Kumar Saini
|
|
|
|
|
does IsWindowEnabled() help??
Regards,
Sandip.
|
|
|
|
|
Hi,
Is it possible to change the "color" of the "Tracker Rectangle's handle"
when using CRectTracker object. 
|
|
|
|
|
dinesh babu wrote: Is it possible to change the "color" of the "Tracker Rectangle's handle"
IMO no!
Since it's hardcoded in source as RGB(0,0,0), what you can do is derive a class from CRectTracker and override Draw function.
It's not a virtual function, but still if you are using the derived class object you can directly call yours, you just got to change one line...
pDC->FillSolidRect(rect, RGB(0, 0, 0));
copy the rest of source code to your own Draw version.
Nibu babu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
|
Hi All
I want to Copy Files and Folder from One directory to other Directory.I want to copy files/folders from C:\ to D:\. I know directory name but i don't know files/folder name.When user copy the files from c:\ to D:\ then i want show Message of files/folders name.
Plz help me
|
|
|
|
|
Reposting same question again and again will not help you getting answers.
If you post some things that you have tried or reading about might help.
for your previous posts people have suggested you few things have you tried or looked at??
Regards,
Sandip.
|
|
|
|
|
yes i tried it..Now i am geting Adding and deleteing files/folders information but i am geting copy information.So i am posting again.
|
|
|
|
|
|
i don't want to show files name.I want to show files name which currectly copy from current drive(C:\).
|
|
|
|
|
plz explain more......
i dont understand ur question.
how ur copy file from one drive to another with copyfile()
and how you are find the file with use of CFileFind class
than you can get file name from the CFileFind object.
|
|
|
|
|
i am fineding file to use og this code
WIN32_FIND_DATA FindFileData;<br />
FindFileData.cFileName
how ur copy file from one drive to another with copyfile()
And my question is.. How can i show Copy file name in Message box..
Plz help me
|
|
|
|
|
AfxMessageBox(FindFileData.cFileName); 
|
|
|
|
|
MsmVc wrote: And my question is.. How can i show Copy file name in Message box..
This will require you to create your own "progress dialog" that shows what file is currently being copied.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
You can use of SHFileOperation.
|
|
|
|
|
MsmVc wrote: I want to Copy Files and Folder from One directory to other Directory.
Using what?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Sir my question is that what i use for do that?If i know then why i ask here?
Plzz help me
|
|
|
|
|
MsmVc wrote: Sir my question is that what i use for do that?
Have you bothered to read about CopyFile() or SHFileOperation() ? Those have been mentioned to you several times.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi all,
I want to change size of dialog at run time.
this possible.
if yes please tell me .
if possible please explain me with example.
thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|