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
N

Naveen

@Naveen
About
Posts
2.3k
Topics
28
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to create manifest file for private assembly
    N Naveen

    Hi all, I want to know how to create manifest for my c++ private assemblies. What I have done now is keeping a static manifest file(as show below) and embed it into the dll. The down side of this approach is that I cannot update the version number in the manifest file. I want to update the version in the manifest file with the version of dll. Please advice me if anyone knows some details on creating manifest for "private assembly"

    nave [My Articles] [My Blog]

    C / C++ / MFC announcement c++ com tools tutorial

  • Delete folder MFC code
    N Naveen

    yeah. if any process has kept any files opened from that folder. you will not be able to delete it. refer this article Listing Used Files[^]

    nave [My Articles] [My Blog]

    C / C++ / MFC

  • vc++
    N Naveen

    Sharanya.. this post is 5 years old.. :)

    nave [My Articles] [My Blog]

    C / C++ / MFC help c++ architecture

  • Crash
    N Naveen

    T.RATHA KRISHNAN wrote:

    m_pBackButton->draw();

    Are you sure the m_pBackButton is a valid pointer?

    nave [My Articles] [My Blog]

    C / C++ / MFC tutorial question

  • CreateFile - " file is being used by another process." [modified]
    N Naveen

    Cvaji wrote:

    hFile = ::CreateFile( csFileName_i.operator LPCTSTR(), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL );if( INVALID_HANDLE_VALUE == hSMPFile )

    The return value of the CreateFile is stored in **hFile**, but you have checked the INVALID_HANDLE_VALUE aganist **hSMPFile** file. Is it really like that in the code or its just a typo?

    nave [My Articles] [My Blog]

    C / C++ / MFC help

  • Edit Control
    N Naveen

    AbhiHcl wrote:

    GetWindow() takes only one parameter as HWnd. I m not clear how to proceed..

    try putting :: infront of it ;) . ::GetWindow(...) Sorry I dont have a sample for that now...

    nave [My Articles] [My Blog]

    C / C++ / MFC help tutorial

  • MSXML2 - XML parser Memory Leak
    N Naveen

    Using which tool did you check the Memory usage? If you checking this from the task manager of window XP, I must say that you should consider only the VM usage, the memory usage it specifies is actually Working Set. I dont remeber excatly, but there was problem with DOM parser such that it will release the memory completely only when the thread( that created DOM objects are created) is terminated. You can try like, create a dedicated thread to read the data from the XML and once it is done, end that thread and check whether the memory is back to normal or not( VM size, not Memory usage ).

    nave [My Articles] [My Blog]

    C / C++ / MFC announcement html xml performance help

  • Edit Control
    N Naveen

    AbhiHcl wrote:

    There will be some image on up and down arrow of the spin control

    If you have customised a normal spin control, you can customise, the spin in the Date time picker also. The spin control is actually a child of the Date time picker and you can get the handle of that spin control like HWND hSpin = GetWindow( hDateTimerPicker, GW_CHILD ); . Then you can subclass it.

    AbhiHcl wrote:

    and also some gradient effect shud be there in edit box.

    How did you plan to do that? Try the same will work in Date time picker also..

    nave [My Articles] [My Blog]

    C / C++ / MFC help tutorial

  • Edit Control
    N Naveen

    Why dont you use the DateTimeControl instead of edit box?

    nave [My Articles] [My Blog]

    C / C++ / MFC help tutorial

  • First Chance Exception
    N Naveen

    Karthika85 wrote:

    CloseHandle(hSearch);

    This is wrong. You should use FindClose() function to close the handle retured by FindFirstFile()

    nave [My Articles] [My Blog]

    C / C++ / MFC help tutorial question

  • How to convert Modal dialog to modeless dialog?
    N Naveen

    Instead of the DoModal function, Call Create(), ShowWindow() function. Remeber, the CDialog object should not be local variable if you are calling Create() function. Other wise, the window will be destroyed when the object goes out of scope.

    nave [My Articles] [My Blog]

    C / C++ / MFC tutorial question

  • re:Windows VS/C++ and exiting with debuggable/traceable output
    N Naveen

    There is a function MiniDumpWriteDump[^] in the Dbghelp.dll. if you call that function it will create a dump file for you. Later you can analyze this dump using WinDbg.

    nave [My Articles] [My Blog]

    C / C++ / MFC c++ visual-studio debugging question

  • Making window half of the screen
    N Naveen

    You should go for splitter window. See this sample SDI with split window[^] Added: Are you talking about two different applications?

    nave [My Articles] [My Blog]

    C / C++ / MFC tutorial question

  • malloc limitations
    N Naveen

    Again it depends on the OS. In window, usually a process can take only 2GB of memory( User mode ), the remaining 2GB is reserved for Kernal mode. Again among this 2GB, some memory will be already taken by process, for loading exe, dll, heap, stack etc. So technically, the maximum about of memory that you can specify in malloc is always less than 2GB and the excat value depends on various factors I mentioned above. I dont know about Linux :(

    nave [My Articles] [My Blog]

    C / C++ / MFC performance question

  • Why did ParseDisplayName fail ?
    N Naveen

    I not sure but, but I think had faced the same problem some moths ago and at that time when I changed the CoInitializeEx to CoInitialize( or reverse ) the problem go fixed. Could you please try changing it?

    nave [My Articles] [My Blog]

    C / C++ / MFC help question announcement

  • Convert CString array to System::String
    N Naveen

    please ask questions related to CLI in the C++/CLI forum[^]

    nave [My Articles] [My Blog]

    C / C++ / MFC question csharp data-structures help tutorial

  • Color For List View Control Column
    N Naveen

    Check this article Neat Stuff to Do in List Controls Using Custom Draw[^]

    nave [My Articles] [My Blog]

    C / C++ / MFC help workspace

  • Transparent background and colored text for radio button
    N Naveen

    From comctrl6,if theme enabled you cannot change the text color of the raido button usign the WM_CTLCOLOR color. AFAIK, one thing we can do is, disable theme only for radio button. After this your code in the CTL color will work. eg: SetWindowTheme( GetDlgItem( IDC_RAIOD_BTN_ID)->m_hWnd, L"", L"" ); where IDC_RAIOD_BTN_ID is the id of the radio button

    nave [My Articles] [My Blog]

    C / C++ / MFC

  • Kill child process
    N Naveen

    You can add a crash handler in the parent process and in that function you can notify the child process to exit. to install a crash handler check the API's AddVectoredExceptionHandler or SetUnhandledExceptionFilter

    nave [My Articles] [My Blog]

    C / C++ / MFC tutorial question

  • How to read a programs memory?
    N Naveen

    Did you mean something like ReadProcessMemory[^]

    nave [My Articles] [My Blog]

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