Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
P

Pir8ofTampa

@Pir8ofTampa
About
Posts
5
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Subclassing CDateTimeCtrl
    P Pir8ofTampa

    Created and editable CListCtrl. Trying to subclass CDateTimeCtrl - unable to handle using VK_TAB and forcing the subclassed control to lose focus and destroy itself. Reasoning: When using the drop-down, obviously, CDateTimeCtrl loses focus, but can't figure out how to keep control visible until all user intervention is complete - or naturally, it loses focus to the next column, or other object. I tried overiding OnKillFocus: void CdtkDate::OnKillFocus(CWnd* pNewWnd) { CDateTimeCtrl::OnKillFocus(pNewWnd); CMonthCalCtrl* pMonCalCtrl = this->GetMonthCalCtrl(); // But CMonthCalCtrl doesn't get focus until the user selects it, // Even though it is visible - should I force this focus? if(pNewWnd->m_hWnd == pMonCalCtrl->m_hWnd) return; DestroyWindow(); } This Class will not always destroy itself - and I get an error when the application instance is terminated. Any suggestions will be appreciated.

    C / C++ / MFC agentic-ai help tutorial question

  • MFC and COM, and Access violation in CoUninitialize
    P Pir8ofTampa

    Have you determined that the COM server is indeed initialized? if(::CoInitialize()!=S_OK) MessageBox(_T("COM INIT FAILED"),NULL,MB_ICONERROR); ??

    C / C++ / MFC help question c++ com debugging

  • CDAORecordset::Find() trouble
    P Pir8ofTampa

    I myself have had difficulty with short date fields in MS Access. Possible Solutions: Verify (without reformatting) the COleDateTime value that is actually returned from your table. Mine have sometimes included time even though I have set it to be exclusively a date. Also becuase you are using a short date, you must use two digits to express the year so: str.Format("[ProductID] = '%s' AND [Date] = #%s#", m_pSet->m_strProductID, COleDateTime::GetCurrentTime().Format(_T("%#m/%#d/%y"))); Good luck.

    C / C++ / MFC help announcement database

  • Winsock ? Again
    P Pir8ofTampa

    Sorry, 'bout that, now I understand what you are asking. No you don't need SDK. Theoretically, constructing WsaData explicitly requires SockAddr_in struct but I had an instructor once who said that dynamic sockets are possible but never showed me how. Also, I've never tried to use a "Send" socket and a "Receive" socket (I assume this is what you are trying). I'll have to think more about this one using winsock2.

    C / C++ / MFC question c++ sysadmin

  • Winsock
    P Pir8ofTampa

    Like johnny said - use what you get in VS. Easiest and most preferred for beginners is to create a class derived from CAsyncSocket - and override SetParent function. I've tried other methods which are more in-depth, but still find this one the easiest and most straight-forward. Don't forget AfxSocketInit(). I did not write W32.Blaster quit asking.

    C / C++ / MFC asp-net tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups