|
Aamir Butt wrote: ...I dont want to do it through polling mechanism.
ReadDirectoryChangesW() doesn't poll. It uses notification. Keep in mind, though, that Windows NT and Windows 2000 only update the LastAccessTime every hour for performance reasons.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
hav u checked ReadDirectoryChangesW()
please inform me if it was successfull
RinuRaj
|
|
|
|
|
|
hi i want to know how to debug DLL.i had error in my created dll and want to know where it is.
Tasleem Arif
|
|
|
|
|
You may import the DLL to a Test Application. For example dialog based one , on clicking a button the function of the DLL will be called. Specify the test app name at the
Project->Settings->debug->executable for debug session
then place a break point where you want to check, the start debugging with that test application
RinuRaj
|
|
|
|
|
Use Project-->Setting-->Debug-->Executable for debug session to give path of exe , that using its function, and set break points in functions and use as normal debug.
If you use F5 in this case, that exe will be run.
Answered by Rinu_Raj already.
|
|
|
|
|
thnaks u both i will try that
Tasleem Arif
|
|
|
|
|
So just set a breakpoint in the appropriate spot within the DLL and run the application via F5.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi all .
How can I display a page (dialog) in CTabCtrl .
When I call InsertItem , it add any tab to Tab Control with empty page , but I need display controls example Button on it .
I can't solve this by search in codeproject .
Thanks .
|
|
|
|
|
Hi,
This might help:
<a href="http://www.codeproject.com/tabctrl/ctabctrlssl.asp">http:
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
very nice :
"The only programmers that are better than C programmers are those who code in 1's and 0's....."
thanks .
|
|
|
|
|
Hi all,
Ok, this might be a stupid question but, here goes:
Lets say you have a class in your DLL. And this class has a couple of functions that will be exported. Is it nessacery to export the class?
I.E.
<code>
#ifdef UTILITY_EXPORTS
#define UTILITY_API __declspec(dllexport)
#else
#define UTILITY_API __declspec(dllimport)
#endif
class UTILITY_API test
{
public:
int function1();
};
</code>
DEF File:
LIBRARY Utility
DESCRIPTION "Export Some Symbols."
EXPORTS
test @1
function1 @2
Thanx in advance
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
you need to export that class, not its functions.
|
|
|
|
|
Thanx for reply..
And one would be able to refernce those functions then, when exporting just the class?
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
have you only tried ?
yes, when you export a class, you export everything within the class
|
|
|
|
|
No, I haven't tried ! ... But thank you for the help.
But now that I know what to do, I'll try.
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
Hi,
> Lets say you have a class in your DLL. And this class has a couple of functions that will be exported. Is it nessacery to export the class?
To export a class from a dll is only possible from MFC-Class-DLL to MFC-Application. (or Microsoft Specific)
To export a class isn't C++ standard.
HTH
Frank
|
|
|
|
|
Thanx for the reply ... I'll keep that in mind.
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
Frank K wrote: To export a class from a dll is only possible from MFC-Class-DLL to MFC-Application.
Wrong. You can export a class from any type of DLL. Whether you can use that class or not, depends entirely on the compiler/linker you use to link to the DLL.
--
Mit viel Oktan und frei von Blei, eine Kraftstoff wie Benziiiiiiin!
|
|
|
|
|
Thanx Jörgen Sigvardsson, for clearing that one up....
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
Hi,
I asked this a few days before, but didn't get any answer, so maybe if I keep my question more compact someone will understand, what I want to do:
I'm using the PDH-library like it is known from the PerfMon system tool. We want to detect memory leaks and the first step is to see which tasks in our software consume how much memory. Which counters do I have to observe for finding out how much memory a specific process has allocated?
Greetings
Martin Dietz
|
|
|
|
|
See here.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi DavidCrow,
Sorry for not answering earlier (I worked on something else the last few days), but your link didn't help me in my question. The problem was not how to use the functions and procedures provided by the PDH library to get the counter information, but which counter to use to get the memory information.
Is \Process(..)\Page File Bytes significant enough to determine the memory usage and memory leak behaviour of the different subcomponents, or do I need more/better fitting counters?
Greetings
Martin Dietz
|
|
|
|
|
m.dietz wrote: but which counter to use to get the memory information.
I thought that's what that link would provide, but after looking at it, the post does indeed not match the subject. I'm not quite sure how that happened. Anyway, the three counters that I've used in the past are:
pdhCpe.szMachineName = TEXT("your machine");
pdhCpe.szObjectName = TEXT("Memory");
pdhCpe.szCounterName = TEXT("Available Bytes");
...
pdhCpe.szCounterName = TEXT("Cache Bytes");
...
pdhCpe.szObjectName = TEXT("Process");
pdhCpe.szInstanceName = TEXT("_Total");
pdhCpe.szCounterName = TEXT("Working Set");
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hello comunity,
how to determine from which class is an dialog object derived?
So, i wand to copy data in to clipboard, but how to know which methods to use,
for example, if i have an CListCtrl a can use pListCtrl->GetItemText(iIndex, iSubItem);
to read text and copy them to clipborad, but how to know the base class when i want to copy from
CEdit field??
Is there any method or macro to use for this?
regards
break;
|
|
|
|