|
Im sure there are one (or more) performance counters that you can use for disk activity, if not, WMI might be able to help
'g'
|
|
|
|
|
yes u r rt and thanks 4 ur suggession.
I can use PDH APIs. But I want to know is there any way other than using PDH APIs.
And u mentioned about Windows Management Instrumentation. I don't have much knowledge abt it. Can u pls help me?
Regards,
Ajay
|
|
|
|
|
Ajaywinds wrote: I had created a thread to check the system idle state.
Why not just use GetLastInputInfo() ?
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
thanks 4 ur suggession.
Can u pls tell me how can I check the HDD load( other than PDH APIs )
Regards,
Ajay
|
|
|
|
|
Why not do the processing in a subthread created with the THREAD_PRIORITY_IDLE thread priority?
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
hi,
but I have my one idle conditions. How can I check that conditions like
1) whether the CPU utilization is less than 10%
2) whethter there is load on HDD
regards,
ajay
|
|
|
|
|
how do i export classes using regular dll?
because i donot want to use an extension DLL to export classes.
regards
Shailesh
|
|
|
|
|
how do i export classes using regular dll?
because i donot want to use an extension DLL to export classes.
regards
Shailesh
|
|
|
|
|
Shailesh Halankar wrote: how do i export classes using regular dll?
#define DllExport <code>__declspec( dllexport )</code>
class <code>DllExport</code> C
{
int i;
virtual int func( void )
{ return 1; }
};
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
Thanks for the INFO
how will the client import the exported class i.e wher should the __declspec( dllimport ) statement be used?
|
|
|
|
|
Shailesh Halankar wrote: wher should the __declspec( dllimport ) statement be used?
Replace dllexport by dllimport . Rest is the same.
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
Shailesh Halankar wrote: how do i export classes using regular dll?
because i donot want to use an extension DLL to export classes.
In continuation with Nibu, you have to include the lib and header file in your project!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
|
Hi All,
I want to write the contents of the edit box to file i have used this code but its not working can u tell me the cause..
i want to remove the old contetns and add the contetns of the edit box.
str holds the file name.
CStdioFile file(str, CFile::modeWrite);
file.Open(str);
char *pBuffer = new char[dwSize + 1];
m_FCONT.GetWindowText(*pBuffer);
UINT uWrite = file.Write(pBuffer, dwSize);
delete [] pBuffer;
Regards,
Vinay Charan.
|
|
|
|
|
you can use (CArchive /CFile)for your work
whitesky
|
|
|
|
|
Hi whitesky,
I have used CFile but i am nt getting how to save in the file can u plz c the code.
Regards,
Vinay Charan.
|
|
|
|
|
See one example Here[^] maybe it is some helpful to you
whitesky
|
|
|
|
|
and one simple example
<br />
CFile m_File("c:\\text2.txt",CFile::modeCreate|CFile::modeWrite);<br />
<br />
TCHAR buf[120];<br />
m_Edit1.GetWindowText(buf,sizeof(buf));<br />
m_File.Write(buf, lstrlen(buf));<br />
m_File.Close();<br />
whitesky
|
|
|
|
|
In Continuation with WhiteSky,
better option will CStdioFile, which deal will Text based File
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
VinayCool wrote: ...but its not working
What is not working? Be specific.
VinayCool wrote: file.Open(str);
It is not necessary to call the Open() method. The constructor has already done this.
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
try this;
char buff[] = "Test Data";
CStdioFile file("c:\\Test.txt", CFile::modeCreate | CFile::modeWrite);
file.WriteString( buff );
file.Close();
i think you forget to set file creation open flag.
|
|
|
|
|
Hi!
Please, can you give me a link to find out the way to define/declare a function in C++, export it as a 'standard' dll, and then use it in a basic program.
I need to do this only to understand the procedure,
so the function can be very very simple; something like this:
extern "C" int Foo(int param){<br />
return param+3;<br />
}
Cheers,
Russell
|
|
|
|
|
Lets see if this can help you
Just giving a try on this.
The module definition file lists the functions exported by a dynamic link library. All you have got to do is to list the names of the functions you are exporting to the EXPORTS section of the file
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I think that I'm near to the solution:
I'm trying to follow this example(http://www.it-lang-vb.net/Documentazione/Articoli/DllxVb.htm[^])(sorry but the comments are in italian lenguage), but I'm using VS.NET 2003 and this, probally, is creating compilers version problems.
Do you know if this code lines are not compatible with my version of VS?
Cheers,
Russell
|
|
|
|
|