CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: pdk5

Page 1 of 17 1 2 3 4

Search: Search took 0.10 seconds.

  1. Re: find if any duplicates within the struct in a vector

    Thanks a lot kaud.

    Actually, i want to check, if the m_nId is unique and no duplicates.

    As this is not very big vector (may have atmost 10 elements) and the check is not done many times, i...
  2. Re: find if any duplicates within the struct in a vector

    Thanks a lot kaud.

    The vector is not sorted.
    I donot want to insert any values.

    But i want to kind of send a message to user that something is wrong in his entry. (It is assumed user is not...
  3. find if any duplicates in a vector of structs based on an attribute

    Hello,

    I have a vector of structs (or classes):
    std::vector<ConfigData>& vecConfigData;



    class ConfigData
    {
    public:
  4. Replies
    4
    Views
    150

    Re: Reopen the Dialog.

    Basically i was relooking into code, and wondering, after the CLOSE, the window is destroyed, but the handle is still having not deleted. Is it wrong ? So tried the following it works, but not sure...
  5. Replies
    4
    Views
    150

    Re: Reopen the Dialog.

    Thanks a lot Victor i tried it is not working.



    if (m_pResultAnalysisDialog)
    {
    WINDOWPLACEMENT windowPlace;
    windowPlace.length = sizeof(WINDOWPLACEMENT);
    BOOL bOk =...
  6. Replies
    4
    Views
    150

    Reopen the Dialog.

    Hi,
    As per discussion one month back, I tried to create the MFC dialog from the existing one. But now when trying to test various scenarios, i am facing the issue. Actually, the dialog is created...
  7. Replies
    2
    Views
    149

    Re: stl find_if iterator type

    Thankyou so much kaud for your patience to help me .

    Thanks a lot again.
  8. Replies
    2
    Views
    149

    stl find_if iterator type

    Hello,

    It is strage that that find_if for the vector returns normal iterator, but when i replace it with the set , it return const iterator.

    Basically, i wanted to change the content of the...
  9. Re: Removing the duplicates in the multiset (bit urgent)

    Thanks a lot kaud for the inputs, I'll try to change that and make efficient as you suggested. The initial design didnot consider all possibilities
  10. Re: Removing the duplicates in the multiset (bit urgent)

    I think i found a way, I just tried to check before the insertion, if that element is already present,




    struct find_by_cellkey {
    find_by_cellkey(const int & cellkey) : cellkey(cellkey)...
  11. Removing the duplicates in the multiset (bit urgent)

    Hello,

    I have the following map. I changed the set to multiset, as I need to store, the cell, even if the distance is the same.




    struct TACNeighbourData
    {
    int m_CellKey;
  12. Thread: LRU cache

    by pdk5
    Replies
    3
    Views
    199

    Re: LRU cache

    Thankyou very much kaud. much appreciated. Sorry for the delay, was busy with some personal stuff.

    Yes, the site i was going through. because sometime back, i was searching for job, a company told...
  13. Thread: LRU cache

    by pdk5
    Replies
    3
    Views
    199

    LRU cache

    Hi All,

    I was trying to practice some LRU cache example from the online practice. Also checking the discussions, where somebody already solved using the hash map and the doubly linked list....
  14. Replies
    6
    Views
    374

    Re: string replace related

    @wolle and kaud: Thanks a lot
  15. Replies
    6
    Views
    374

    string replace related

    Hello,

    Im trying to solve the following:
    Basically for the given input string, i need to expand as follows:

    4[x] = xxxx
    2[y2[z]] = yzzyzz
    2[pq] = pqpq

    thanks
  16. Thread: ListCtrl in MFC

    by pdk5
    Replies
    32
    Views
    1,564

    Re: ListCtrl in MFC

    @GCDEF: May be I didnot code properly.
    What i understood is:, SetItemData can hold a reference to the index into the list control and a number. The number can be used later to deduce the first...
  17. Thread: ListCtrl in MFC

    by pdk5
    Replies
    32
    Views
    1,564

    Re: ListCtrl in MFC

    Thanks a lot Arjay, for all the help. Very much appreciated. I'll try this today
  18. Thread: ListCtrl in MFC

    by pdk5
    Replies
    32
    Views
    1,564

    Re: ListCtrl in MFC

    Thanks a lot Arjay.

    I tried to load the project with my free version of visual studio 2015. (where i have created some simple sample MFC projects yesterday). But i am getting lot of errors , when...
  19. Thread: ListCtrl in MFC

    by pdk5
    Replies
    32
    Views
    1,564

    Re: ListCtrl in MFC

    Thankyou Victor. Google doesnot have some good examples (at least for beginners), so i can get the basic concept.

    If the MFC experts in the forum, find some spare time and help me comeup with...
  20. Thread: ListCtrl in MFC

    by pdk5
    Replies
    32
    Views
    1,564

    Re: ListCtrl in MFC

    But still not able to understand the virtual list ctrl :cry:
  21. Thread: ListCtrl in MFC

    by pdk5
    Replies
    32
    Views
    1,564

    Re: ListCtrl in MFC

    Looks like I understood the idea behind the SetItemData and GetItem:

    Changed my code to following , but i guess, now i can build my code upon this:




    BOOL...
  22. Thread: ListCtrl in MFC

    by pdk5
    Replies
    32
    Views
    1,564

    Re: ListCtrl in MFC

    Thankyou very much kaud
  23. Thread: ListCtrl in MFC

    by pdk5
    Replies
    32
    Views
    1,564

    Re: ListCtrl in MFC

    Arjay,

    I went through one of your examples, but couldnot get anything from that.

    I am looking for some simple code, so i can relate and learn. May be expand to practical applications later.
    ...
  24. Thread: ListCtrl in MFC

    by pdk5
    Replies
    32
    Views
    1,564

    Re: ListCtrl in MFC

    @Arjay: Thanks a lot

    I'll check for the tutorials..

    As GCDEF mentioned, i need to use setitemdata/getitemdata. Still working on that, not solved yet. Its taking time for me as this is new area,...
  25. Thread: ListCtrl in MFC

    by pdk5
    Replies
    32
    Views
    1,564

    Re: ListCtrl in MFC

    GCDEF, Could you bit elaborate, on how to use SetItemData in this case ?
Results 1 to 25 of 417
Page 1 of 17 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)