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
A

anu_88

@anu_88
About
Posts
25
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Writing to the middle of a file
    A anu_88

    "r+"

    Opens for both reading and writing. (The file must exist.)

    "w+"

    Opens an empty file for both reading and writing. If the given file exists, its contents are destroyed.

    If your file already exists,try using r+

    C / C++ / MFC question

  • Writing to the middle of a file
    A anu_88

    From MSDN:

    When a file is opened with the "a" or "a+" access type, all write
    operations occur at the end of the file. The file pointer can be
    repositioned using fseek or rewind but is always moved back to the end of
    the file before any write operation is carried out. Thus, existing data
    cannot be overwritten.

    When the "r+", "w+", or "a+" access type is specified, both reading and
    writing are allowed (the file is said to be open for “update”). However,
    when you switch between reading and writing, there must be an intervening
    fflush, fsetpos, fseek, or rewind operation. The current position can be
    specified for the fsetpos or fseek operation, if desired.

    So instead of using append mode try to use r+ it is for both reading and writing. Hope this helps. -- modified at 0:31 Monday 18th December, 2006

    C / C++ / MFC question

  • adding hyperlink to Dialog
    A anu_88

    Just see here http://bobmoore.mvps.org/Win32/framed_tip064.htm[^] Hope this helps

    C / C++ / MFC com tutorial question

  • Background color on Text Boxes and other controls
    A anu_88

    In WM_CTLCOLOR message handler set background mode as transparent and return a null brush. This will make the background colour of the controls same as background colour of your dialog

    C / C++ / MFC question

  • Dialog Controls Palette
    A anu_88

    Right click on the tool bar and check on the option controls to get the controls palette

    C / C++ / MFC question

  • Help~~~
    A anu_88

    See this www.devguy.com/fp/Tips/COM/bstr.htm[^] Hope this will help

    COM help question

  • #pragma pack
    A anu_88

    Thank you very much for your reply

    COM question

  • #pragma pack
    A anu_88

    hi , what is the meaning of #pragma pack ? From MSDN I came to know that it specifies the packing alignment for structure and union members . But what is meant by packing alignment ? Can you please tell me. Thanks in advance

    COM question

  • error [modified]
    A anu_88

    Are you using VS2003 or vs2005?? #include should be in the first line of all include statements. Just check this.

    C / C++ / MFC debugging help tutorial question

  • checksum
    A anu_88

    see this article on checksum algorithm .This may help [http://www.flounder.com/checksum.htm](<a href=)[^]" -- modified at 0:35 Friday 21st July, 2006

    C / C++ / MFC debugging help question

  • error [modified]
    A anu_88

    hi Try by adding #include Hope this will help

    C / C++ / MFC debugging help tutorial question

  • CHANGE COLOR
    A anu_88

    ___________ |tab1|tab2| |============| |****color*****| |****here***** | |=============| -- modified at 0:45 Thursday 20th July, 2006

    C / C++ / MFC tutorial

  • CHANGE COLOR
    A anu_88

    |------| |----------------------| | color here | | | |----------------------| I want the tab ctrl to look like this. How can I do it:confused:

    C / C++ / MFC tutorial

  • CHANGE COLOR
    A anu_88

    In the tabcontrol I have a button which is associated with tab1 . Now I want to change the background color of that button. How can I achieve this?

    C / C++ / MFC tutorial

  • CHANGE COLOR
    A anu_88

    how can we change color inside tabcontrol

    C / C++ / MFC tutorial

  • TAB CONTROL
    A anu_88

    as i use three tabs now when i click on one color changed where i put code for this or what function i have to use If you want to change the color handle the OnSelChange message handler void Ctabeg::OnSelchangeTab1(NMHDR* pNMHDR, LRESULT* pResult) { // TODO: Add your control notification handler code here *pResult = 0; } -- modified at 7:06 Tuesday 18th July, 2006

    C / C++ / MFC tutorial

  • Shell Execute
    A anu_88

    Hai can any one pls tell what is ShellExecute command ? and when do we use it? Thanks in advance:)

    C / C++ / MFC question linux

  • BSTR and VARIANT
    A anu_88

    hi, I want to know how do we use BSTR and VARIANT .Can any one please tell where to find the information about these? Thank You

    COM question

  • CImageList for CTreeCtrl
    A anu_88

    Thank you very much:)

    C / C++ / MFC

  • CImageList for CTreeCtrl
    A anu_88

    BOOL CBmDialog::OnInitDialog() { CDialog::OnInitDialog(); CImageList list; list.Create(16, 16, ILC_COLOR8, 0, 4); CBitmap bm; bm.LoadBitmap(IDB_BITMAP1); list.Add(&bm, RGB(0, 0, 0)); m_tree1.SetImageList(&list,TVSIL_NORMAL); m_tree1.InsertItem("Image1"); m_tree1.InsertItem("Image2"); HTREEITEM h1,h2; h2=m_tree1.GetNextItem(h1,TVGN_FIRSTVISIBLE); m_tree1.SetItemImage(h2,0,0); return TRUE; }

    C / C++ / MFC
  • Login

  • Don't have an account? Register

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