Hi! You are missing 1 file per call to countfiles(). Simply move the while to the bottom of the loop to solve this.
if ( f.FindFile(LPCTSTR(strDir)))
{
do
{
...
}
while ( f.FindNextFile() );
}
Regards Frank
Hi! You are missing 1 file per call to countfiles(). Simply move the while to the bottom of the loop to solve this.
if ( f.FindFile(LPCTSTR(strDir)))
{
do
{
...
}
while ( f.FindNextFile() );
}
Regards Frank
Hello, WaitForSingleObject takes a handle as first argument. You are passing a pointer to a CWinThread. Changing your code to
WaitForSingleObject( m_pcThread1->m_hThread, INFINITE );
WaitForSingleObject( m_pcThread2->m_hThread, INFINITE );
should solve your issue. Regards Frank
You can set a breakpoint when the memory is allocated. Take the number in curly braces and set it like this: _crtBreakAlloc = 159399; The debugger will break in, when the n-th memory block is allocated. see: http://msdn.microsoft.com/en-us/library/w2fhc9a3%28VS.80%29.aspx Regards Frank
Hello, this is a MS design feature. You need to call TrackMouseEvent prior to receive a WM_MOUSELEAVE-Message. See: http://msdn.microsoft.com/en-us/library/ms645615%28VS.85%29.aspx for more info. Kind regards Frank
Hi, there is a tool to generate wrappers to call C/C++ from PHP and other script languages called SWIG ( see: http://www.swig.org[^] ). I've used it a few times to generate wrappers for perl. Hope this helps. Frank
Hi Jain, the ODBC Adminstrator dialog is a control panel applet named ODBCCP32.CPL. It is found in %WINDIR%\system32. The dialog is opened with control.exe like this. C:\Windows\System32\control.exe ODBCCP32.CPL Regards Frank
Hi, a quick look at the code shows that the handle will not be closed. From MSDN: When the handle is no longer needed, it can be closed by using the FindCloseChangeNotification function. So I guess the error will show up after the loop has been executed a few times? Regards Frank