Sunday, December 11, 2016

RMDIR folders on C:\ drive with denied access

There are temporary folders downloaded on the C:\ drive but the computer which requires to change each folder user permissions before deleting them and that can be tedious if the number is 300.


----------------
Left click on c drive, right click-properties, security, click edit, permissions for everyone, check full control, modify, read and execute, list folder contents, read and write. Apply and O.K. No more empty folders. Greeting

Monday, November 28, 2016

PHPbb email notifications

If you want to be notified of a forum post approval, these are the steps.



Go to arvixe -> email create new ->
      arvixe-> email forwarding

email created is Test@forums.test.com

After you login as an admin in phpbb
click notifications -> settings -> check all email -> profile -> edit account settings -> [add Test@forums.test.com]

cbdsignedXX

Friday, April 1, 2016

CString scenario where concatenation does not work

CString ss = _T("Hello");
ss = ss + _T(" World");

//works fine

//but, when you are dealing with file loc c:
CString ss = _T("c:\\clsdata"), temp;
ss = ss + _T("\\jobs");//will not work
temp.Format(_T("%s\\jobs"), ss);// will work

Friday, February 5, 2016

MFC OnPaint refresh draw Flickering

The best way to stop flickering is to have another member variable, and to redraw only when necessary. For instance, I chance the cursor every now but that can cause significant redrawing. Using an extra variable, I only redraw when necessary.

void COGraphCtrl::OnPaint()
{
   if(m_RePaint)
   {
           CPaintDC dc(this);

      dc.FillSolidRect(&clientRect,RGB(255,255,255));