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

prasad_som

@prasad_som
About
Posts
2.3k
Topics
21
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Initializing base class data
    P prasad_som

    What's wrong in having a copy c'tor in base class, too. That would take care of this.

    C / C++ / MFC help performance tutorial question

  • on button stop control transfers to a option button click code
    P prasad_som

    Check if you are duplicating button ids in any way. or using wrong message mappings.

    C / C++ / MFC help question

  • Sending windows message from worker thread
    P prasad_som

    CWnd::PostMessage internally calls win32 ::PostMessage. I'll use CWnd::PostMessage, if I've CWnd object(no need to wrap window handle, specially to use this version), and ::PostMessage, if I've window handle.

    C / C++ / MFC c++ help tutorial question

  • Sending windows message from worker thread
    P prasad_som

    You already got answer in earlier post. If you want to pass pointer to handle, use address of m_hHandle member variable, which is handle of CMainFrame. No need to call GetSafeHwnd.

    C / C++ / MFC c++ help tutorial question

  • Excel Issue
    P prasad_som

    Use second parameter of CreateDispatch to check what's causing it to fail. See COleDispatchDriver::CreateDispatch [^] for it's usage.

    C / C++ / MFC help question

  • CreateWindow / CreateWindowEx
    P prasad_som

    difference is,later function takes one extra parameter. Actually, CreateWindow is a macro, expanding to CreateWindowEx with NULL(no extended style) as first parameter. In effect you are using only one function.

    C / C++ / MFC performance question

  • visual studio 2005 fails to debug c++ program, breakpoint will never be hint, program after debug always running in background, (be found in task manager->processes)
    P prasad_som

    Check your build configuration. If it's been set to any non debug mode. It happens sometime.

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

  • files stream & iterators
    P prasad_som

    Maximilien wrote:

    std::ifstream ifs("filename.txt");std::string str((std::istreambuf_iterator(ifs)), std::istreambuf_iterator());

    Something like this is much faster,

    std::ifstream stream("c:\\test.txt");
    if (stream.good())
    {
    std::stringbuf buf;
    stream>>&buf;
    std::string str(buf.str());
    stream.close();
    }

    C / C++ / MFC tutorial

  • Pointer
    P prasad_som

    dehseth wrote:

    p2 = p1;

    But, why one would like to do that ? Heard of need for copy c'tor and assingment operators ? Or dangling pointers ?

    C / C++ / MFC question learning

  • Trying to create a Popup Window
    P prasad_som

    BobInNJ wrote:

    CRect rect1( 100, 200, 300, 400 ); CreateEx( 0, NULL, TEXT("Graph"), WS_OVERLAPPEDWINDOW|WS_CHILD, rect1, this, 0 );

    Effectively, here you are trying to create CMyView again, where it already exists. You may want to do something like this

    CRect rect1( 100, 200, 300, 400 );
    m_wndYouwantotCreate.CreateEx( 0, NULL, TEXT("Graph"), WS_OVERLAPPEDWINDOW|WS_CHILD,
    rect1, this, 0 );

    C / C++ / MFC visual-studio data-structures help

  • Visual Studio 2008 Lost Class View of XXXview and a couple of other classes.
    P prasad_som

    I'm note sure, but in such cases, deleting .ncb file and other temp files from project folder does the trick.

    C / C++ / MFC csharp visual-studio tools help

  • Back to basics; just started learnin C++
    P prasad_som

    EliottA wrote:

    is this compiler only for C++.Net

    It can be used for unmanaged(only) code as well.

    C / C++ / MFC csharp visual-studio c++ com

  • Calling global function causing linking error.
    P prasad_som

    Comp_Users wrote:

    I just have the global function body in the .cpp file and including this file in places where I am calling it.

    You should not include cpp file in other files. Do , what I said in my first post.

    C / C++ / MFC question c++ data-structures tools help

  • Calling global function causing linking error.
    P prasad_som

    Comp_Users wrote:

    I have an .cpp file which contains a set of utility functions like TrimMyString() etc which could be called a lot of times.

    I assume you have declared its prototypes in a header file, and are using it wherever that function in needed , isn't it ?

    C / C++ / MFC question c++ data-structures tools help

  • Folder Size
    P prasad_som

    Naveen wrote:

    BTW happy to see you back on codeproject.

    Thanks ! And congrats for being awarded as MVP.

    Naveen wrote:

    What happened in between?

    Changed employer, Changed country and busy with work. :)

    C / C++ / MFC linux question

  • Folder Size
    P prasad_som

    Naveen wrote:

    SizeThreadProc()

    Looks like callback function. Must be adding up size of individual file in folder structure.

    C / C++ / MFC linux question

  • Folder Size
    P prasad_som

    MPTP wrote:

    there should be any API like this.

    Not in my information. There needs to be a class(article) for this requirement. So you should understand there is no such API.

    MPTP wrote:

    As windows calculates size very fast

    Have you tried class in given link ? Isn't that fast ?

    C / C++ / MFC linux question

  • Folder Size
    P prasad_som

    Check XFolderSize[^] from Hans Dietrich.

    C / C++ / MFC linux question

  • How to read the contents of a VARIANT ?
    P prasad_som

    LindeA wrote:

    _bstr_t s1(v1);

    In addition to checks suggested by CPallini, I suggest to you to read VARIANT's doucmentation. If it really contains strings, it can be used as v1.bstr.

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

  • Memory Leak
    P prasad_som

    rr_ramesh71 wrote:

    // will this array get released after the function over

    Yes, You don't need to worry about memory, as its been allocated on stack.

    C / C++ / MFC data-structures performance
  • Login

  • Don't have an account? Register

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