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
D

dliviu

@dliviu
About
Posts
34
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Problem installing VS 2013
    D dliviu

    Hello. I have a problem installing VS 2013 express. The problem is that the installation does not take place. It shows me just a small black rectangle on the screen and it stays like that. I have Win 7, SP1, all updates installed. What is the problem? Does anybody know, please?

    - Uncategorised posts - question visual-studio help

  • Multiple selection on Tree Control
    D dliviu

    I cannot attach the two projects here. I don't see any attach button. Can I send you on a private mail the two projects and have a quick look, please?

    C / C++ / MFC com data-structures help question

  • Multiple selection on Tree Control
    D dliviu

    The code I'm refering to is from here: http://www.codeguru.com/cpp/controls/treeview/misc-advanced/article.php/c723/Allowing-multiple-selection.htm[^] There's not much to elaborate. I just took this code, all these functions, and put them in my CTreeCtrlXML class which is derived from CTreeCtrl. And I have the problem I wrote above. I have the same exact problem by using the Syed Babu code from here: MultiSelection Tree Control[^]

    C / C++ / MFC com data-structures help question

  • Multiple selection on Tree Control
    D dliviu

    I tried the code from the second link. It behaves the same as the code from Syed Babu from codeproject. If I select multiple items using Ctrl and left mouse button it selects JUST THE LAST 2 previously selected items; the first item selected in a row of three is always deselected. I don't get it, I have the same code as the original code. There's something strange here.

    C / C++ / MFC com data-structures help question

  • Multiple selection on Tree Control
    D dliviu

    Thanks for your reply and for the provided links.

    C / C++ / MFC com data-structures help question

  • Multiple selection on Tree Control
    D dliviu

    I downloaded a project from codeproject that makes multiple selection posibible on a CTreeCtrl. The link is: [^] The downloaded project works fine, I mean it works to select multiple lines with the Ctrl key. I created a project on my own, taking from the downloaded project just CCustomTreeCtrl files, because I need just CCustomTreeCtrl. So, my problem is that it does not work to select multiple lines in the tree control in my project, but in the downloaded project it does. How can this be? I cannot figure it out. I checked and double checked to see if there's any notable difference, and I can't see any.

    C / C++ / MFC com data-structures help question

  • CTreeCtrl::GetNextSiblingItem never null
    D dliviu

    Thanks for your answer! I know it works, because I tried another similar tree myself. But I really do not know why it does not work in a particular case. What I am trying to do is to copy a CTreeCtrl from Dialog1 to Dialog2. So I do something like Dialog1::_tree1.GetNextSiblingItem(ci) and then put ci in _tree2 which is in Dialog2, like this _tree2.InsertItem(csChild,NULL, NULL), where csChild = Dialog1::_tree1.GetItemText(ci). So it may be that this cross dialog thing is the problem.

    C / C++ / MFC com help

  • CTreeCtrl::GetNextSiblingItem never null
    D dliviu

    OK, thanks.

    C / C++ / MFC com help

  • CTreeCtrl::GetNextSiblingItem never null
    D dliviu

    Hello! I just want to pass through all the siblings of a parent CTreeCtrl node. So I do something like the code from msdn http://msdn.microsoft.com/en-us/library/xfh3f9zt.aspx[^]:

    if (m_TreeCtrl.ItemHasChildren(hmyItem))
    {
    HTREEITEM hItem = m_TreeCtrl.GetChildItem(hmyItem);

    while (hItem != NULL)
    {
    hItem = m_TreeCtrl.GetNextSiblingItem(hItem);
    }
    }

    The problem is that, GetNextSiblingItem never returns null. When all the siblings are passed through and the function should return null, it just returns the first sibling. So it enters into an infinite loop. I just cannot understand why it does so.

    C / C++ / MFC com help

  • How to find out if a file is loaded in memory?
    D dliviu

    Okay, I will do that. Thanks.

    C / C++ / MFC c++ performance tutorial question

  • How to find out if a file is loaded in memory?
    D dliviu

    Are you sure of this? In what operating system? I have Win XP and I can tell you for sure that this is not happening because when I open a second app it takes as much time as the first one for all the files and dlls to load. Maybe in higher operating systems all apps point to the same adress in memory but not in XP.

    C / C++ / MFC c++ performance tutorial question

  • How to find out if a file is loaded in memory?
    D dliviu

    You say there are ways to make this files load faster? I guarantee you that in this case there are no ways. Loading has already been optimized to the max.

    C / C++ / MFC c++ performance tutorial question

  • How to find out if a file is loaded in memory?
    D dliviu

    No, there aren't.

    C / C++ / MFC c++ performance tutorial question

  • How to find out if a file is loaded in memory?
    D dliviu

    It will matter because it takes 15 seconds for the app to start.

    C / C++ / MFC c++ performance tutorial question

  • How to find out if a file is loaded in memory?
    D dliviu

    Well yes, it is a XY problem. :) When I'm opening a txt file from an application which I made I want to open another instance of this application with the file opened in it. So I don't want to load all the dlls and bins again, but just point to them in the memory (because the files were already loaded by the application which was first opened). I want to do this because I cannot make the application a MSDI one, because it's to hard to do for me.

    C / C++ / MFC c++ performance tutorial question

  • How to find out if a file is loaded in memory?
    D dliviu

    Ok,thanks!

    C / C++ / MFC c++ performance tutorial question

  • How to find out if a file is loaded in memory?
    D dliviu

    Hello! Let's say I load a "data.bin" file in dinamic memory using a program. Now, can I by means of C++ code, find out using another program, if a file called "data.bin" is loaded in memory? Thanks!

    C / C++ / MFC c++ performance tutorial question

  • Open A File Just Like MS Word Does
    D dliviu

    I'm using MFC. Thanks for the suggestion.

    C / C++ / MFC c++ csharp visual-studio performance help

  • Open A File Just Like MS Word Does
    D dliviu

    Thank you very much!

    C / C++ / MFC c++ csharp visual-studio performance help

  • Open A File Just Like MS Word Does
    D dliviu

    Hello! I'm working on an application similar to MS Word, but on a much smaller scale. My problem is that I do not know how to open a file just like Word does. Word does something like this: if you are already in Word and you opened a file already and then you open another one from the file menu, than a new application appears with this file opened, just like the first file. But this application does not open a new WINWORD.EXE app. No matter how many files you open there's still just one WINWORD.EXE. So, I want to do exactly like this in my application, but I don't know how! If Word does not open a new app with the opening of a new file, this means that somehow the new interface opened with the file is linked with the initial dlls or with the files that have been loaded in memory. I don't have a clue how to do that. I'm working in C++, Visual Studio 2005, MFC. Anybody has any idea? Thanks!

    C / C++ / MFC c++ csharp visual-studio performance help
  • Login

  • Don't have an account? Register

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