Click here to Skip to main content
16,006,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ Misery Pin
#realJSOP16-May-01 0:51
professional#realJSOP16-May-01 0:51 
GeneralNT Service shutdown. Pin
Flit16-May-01 0:21
Flit16-May-01 0:21 
GeneralOwnerdrawn ListBox and Tab Stops Pin
Baz16-May-01 0:17
Baz16-May-01 0:17 
GeneralRe: Ownerdrawn ListBox and Tab Stops Pin
Tomasz Sowinski16-May-01 0:28
Tomasz Sowinski16-May-01 0:28 
GeneralRe: Ownerdrawn ListBox and Tab Stops Pin
Baz16-May-01 0:39
Baz16-May-01 0:39 
GeneralHiding the messageboxes that appear on file errors Pin
Joan M15-May-01 23:37
professionalJoan M15-May-01 23:37 
GeneralRe: Hiding the messageboxes that appear on file errors Pin
Tomasz Sowinski16-May-01 0:03
Tomasz Sowinski16-May-01 0:03 
GeneralRe: Hiding the messageboxes that appear on file errors Pin
Joan M16-May-01 4:58
professionalJoan M16-May-01 4:58 
uiErrorModeANT = SetErrorMode(SEM_FAILCRITICALERRORS);

hArxiuLog = CreateFile (filename,GENERIC_WRITE,FILE_SHARE_WRITE | FILE_SHARE_READ,NULL,OPEN_ALWAYS,FILE_ATTRIBUTE_ARCHIVE,NULL);
if (hArxiuLog != INVALID_HANDLE_VALUE)
{
dwFileSize = GetFileSize(hArxiuLog,NULL);
SetFilePointer (hArxiuLog, dwFileSize, NULL, FILE_BEGIN);

::CreateDirectory(TCCApp.GetAccesRegistre()->GetRefsPathRespatllar(),NULL);
::CreateDirectory(TCCApp.GetAccesRegistre()->GetProgramesPathRespatllar(),NULL);


iLimit = dlgPare->m_clbRestantsRespatllar.GetCount();

while ((iComptador < iLimit) && (!dlgPare->m_bCancelThread) && (!bTrobatError))
{
dlgPare->m_clbRestantsRespatllar.GetText(0,dlgPare->m_vstatRespatllantACT);
dlgPare->m_clbRestantsRespatllar.DeleteString(0);
dlgPare->UpdateData(FALSE);
dlgPare->m_clbRestantsRespatllar.RedrawWindow();

// the paths change in each loop iteration (here's not that piece of code...

iRetornOperacioCopia = CopyFile(csFullPathOrigenReferencia, csFullPathDestiReferencia, FALSE);

if (iRetornOperacioCopia == 0)
{
iErrorsTrobats++;
csAuxiliar += " : registrado error en éste proceso";
bTrobatError = true;
}

iComptador++;
}

// Posicionar el punter en l'arxiu (anar al final...)
dwFileSize = GetFileSize(hArxiuLog,NULL);
SetFilePointer (hArxiuLog, dwFileSize, NULL, FILE_BEGIN);

// csArxiuLog is a String that changes in each copy operation.
WriteFile(hArxiuLog,csArxiuLog,strlen(csArxiuLog),&dwNBWritten,NULL);
CloseHandle(hArxiuLog);
csArxiuLog.ReleaseBuffer(0);
}

// Get back to the original err mode.
SetLastError(0);
SetErrorMode(uiErrorModeANT);
GeneralRe: Hiding the messageboxes that appear on file errors Pin
Tomasz Sowinski16-May-01 5:15
Tomasz Sowinski16-May-01 5:15 
GeneralFlushing data into the registry (How to?) Pin
Joan M15-May-01 23:21
professionalJoan M15-May-01 23:21 
Questionhow to change a char to an int Pin
hearties15-May-01 22:28
hearties15-May-01 22:28 
AnswerRe: how to change a char to an int Pin
Christian Graus15-May-01 22:31
protectorChristian Graus15-May-01 22:31 
GeneralRe: how to change a char to an int Pin
hearties15-May-01 22:36
hearties15-May-01 22:36 
GeneralRe: how to change a char to an int Pin
Christian Graus15-May-01 22:43
protectorChristian Graus15-May-01 22:43 
AnswerRe: how to change a char to an int Pin
Michael Dunn16-May-01 5:34
sitebuilderMichael Dunn16-May-01 5:34 
GeneralThe good use of AddDocTemplate() Pin
15-May-01 21:33
suss15-May-01 21:33 
GeneralSMTP - Client Pin
Gunnar Mätzler15-May-01 20:57
Gunnar Mätzler15-May-01 20:57 
GeneralRe: SMTP - Client Pin
markkuk16-May-01 1:05
markkuk16-May-01 1:05 
GeneralRe: SMTP - Client Pin
Giles16-May-01 2:09
Giles16-May-01 2:09 
GeneralGrid Control Pin
15-May-01 20:31
suss15-May-01 20:31 
GeneralPartial repaint Pin
15-May-01 17:28
suss15-May-01 17:28 
GeneralRe: Partial repaint Pin
Christian Graus15-May-01 17:41
protectorChristian Graus15-May-01 17:41 
GeneralWeird Multithreading - Driving Me Nuts Pin
Stephen Caldwell15-May-01 15:17
Stephen Caldwell15-May-01 15:17 
GeneralA Question on Setting the Day State of a Month Calendar Control Pin
15-May-01 15:10
suss15-May-01 15:10 
GeneralRe: A Question on Setting the Day State of a Month Calendar Control Pin
Michael Dunn15-May-01 16:18
sitebuilderMichael Dunn15-May-01 16:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.