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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
L

Le Thanh Cong

@Le Thanh Cong
About
Posts
36
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CFile::Write() and disk-full condition
    L Le Thanh Cong

    Thank you, maybe I found cause of this problem. In normal conditions, CFileException will be thrown. But in some special conditions, as multi-thread, communication with devices as USB I/O … then other exception has thrown before that.

    ----------------- Best Regards, Le Thanh Cong

    C / C++ / MFC question help

  • CFile::Write() and disk-full condition
    L Le Thanh Cong

    I catched the exception follow: try { file.Write(...); } catch (CFileException*) { AfxMessageBox("xxx"); } But message didn't display

    ----------------- Best Regards, Le Thanh Cong

    C / C++ / MFC question help

  • CFile::Write() and disk-full condition
    L Le Thanh Cong

    In MSDN, Write() function of CFile class follow: virtual void Write( const void* lpBuf, UINT nCount ); throw( CFileException ); Remarks Writes data from a buffer to the file associated with the CFile object. Write throws an exception in response to several conditions, including the disk-full condition. But in fact, when disk full and application try write to disk then an unhandled exception occur.(CFileException didn't catch) What is cause of this problem?

    ----------------- Best Regards, Le Thanh Cong

    C / C++ / MFC question help

  • InitCommonControls and XP visual style
    L Le Thanh Cong

    MFC application will be automatically called InitCommonControls() function, so to enable XP visual style we only need add manifest file to resource. That is right or wrong?

    ----------------- Best Regards, Le Thanh Cong

    C / C++ / MFC c++ question learning

  • CString.Format - new line?
    L Le Thanh Cong

    You can use edit box with multi line to instead listbox

    ----------------- Best Regards, Le Thanh Cong

    C / C++ / MFC question

  • Browse for folder
    L Le Thanh Cong

    To update folder dialog, you can do follow: Use SHGetPathFromIDList( m_bi.pidlRoot, pszPath ) to get root folder path Use IShellFolder::ParseDisplayName to convert root folder path to LPITEMIDLIST (pidlRoot) Assign this pointer (pidlRoot) to m_bi.pidlRoot: m_bi.pidlRoot = pidlRoot; to refresh folder dialog. This code i didn't test, but i think it can do.:-D

    ----------------- Best Regards, Le Thanh Cong

    C / C++ / MFC

  • NcAPI
    L Le Thanh Cong

    I use NcAPI & Netcard2280 to programm for USB device. How determine a packet is NULL packet when Netcard get packet form host PC ----------------- conglt

    C / C++ / MFC

  • About IADsSecurityUtility::GetSecurityDescriptor
    L Le Thanh Cong

    Hi, everyone I use IADsSecurityUtility::GetSecurityDescriptor to get file permission but function is only avaiable in WindowsXP/Windows2003. How do perform it in windows2000? My problem is not get file permission in windows 2000 (have some other way as GetNamedSecurityInfo, ... in articles of CodeProject), but What is code same as IADsSecurityUtility::GetSecurityDescriptor in windows2000? Thanks ----------------- conglt

    C / C++ / MFC question help

  • Help me!!!
    L Le Thanh Cong

    long result(long d , long e) { if (d >= 1 , d < e) { return (result(d + 1,0)); } else return (0); } this function is wrong because result(d + 1,0) = 0 bacause d+1 > 0 if you replace e for 0: result(d + 1,0)->result(d + 1,e), this function still wrong because result(d,e)=result(d+1,e)=.....=result(e,e)=0 ----------------- conglt

    C / C++ / MFC c++ help learning

  • Email
    L Le Thanh Cong

    http://www.codeproject.com/internet/csmtpconn.asp[^] ----------------- conglt

    C / C++ / MFC tutorial question

  • Splitter Window Problem
    L Le Thanh Cong

    http://www.codeproject.com/splitter/SSplitter.asp[^] http://www.codeproject.com/splitter/splitterwindowtutorial.asp[^] ----------------- conglt

    C / C++ / MFC help learning

  • Get IP address of LAN
    L Le Thanh Cong

    I tried this function but only can get local information ----------------- conglt

    C / C++ / MFC question

  • Order of views in MDI application
    L Le Thanh Cong

    thanks ----------------- conglt

    C / C++ / MFC question

  • Important: Am I running under user or administrator?
    L Le Thanh Cong

    Good, thanks ----------------- conglt

    C / C++ / MFC question

  • Order of views in MDI application
    L Le Thanh Cong

    I build a MDI application, it contains 5 views. What is way to get information for order of view (view 1 is above view 2, view 2 is above view 3, ...). ----------------- conglt

    C / C++ / MFC question

  • termination of the dialog
    L Le Thanh Cong

    You can override 2 function OnOK() (for ENTER) and OnCancel (for ESC). In override function, you don't call base function from class CDialog Example: void CMyDialog::OnOK() { //CDialog::OnOK(); } ----------------- conglt

    C / C++ / MFC help

  • external program
    L Le Thanh Cong

    You must insert library Kernel32.lib to your project ----------------- conglt

    C / C++ / MFC question c++

  • Important: Am I running under user or administrator?
    L Le Thanh Cong

    If application run under Active Directory, you can use ADSI to get object acording to current user, check user is a member of group Administrators or not ----------------- conglt

    C / C++ / MFC question

  • Get IP address of LAN
    L Le Thanh Cong

    I work in a LAN, IP address of my computer is 192.168.0.111, default gateway is 192.168.0.1 How do I get real IP address of LAN when connect to Internet? (ex:203.162.1.123) ----------------- conglt

    C / C++ / MFC question

  • How detect leak memory
    L Le Thanh Cong

    Bounds checker is good but expensive, I can't buy it ----------------- conglt -- modified at 3:28 Tuesday 18th April, 2006

    C / C++ / MFC performance help 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