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

Search:

Type: Posts; User: mbenic

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Replies
    2
    Views
    961

    Re: Confused by #ifdef behavior

    Ah ok, I don't know what had me thinking I could check for the existence of any symbol.. Daft moment, thanks :)
  2. Replies
    2
    Views
    961

    Confused by #ifdef behavior

    Hi, I'm a bit confused by the way the preprocessor handles function definition checks, and I'd really appreciate it if someone can clear this behavior up for me. I'm defining a set of macros which...
  3. Replies
    13
    Views
    1,720

    Re: Passing 'this' in member intitialization list

    Thanks very much, those gotchas are acceptable in this case.
    Thanks for the tip on the ISO standard as well, I'll look into it.
  4. Replies
    13
    Views
    1,720

    Re: Passing 'this' in member intitialization list

    I really am just looking for an answer to the question of whether the dereferencing behavior is defined.

    I really appreciate your comments :) and I normally would agree with you both on all...
  5. Replies
    13
    Views
    1,720

    Re: Passing 'this' in member intitialization list

    That is the approach I would normally take, however in this case objects may need to be inserted into multiple lists (using different nodes). So it's not possible to just subclass the list node, and...
  6. Replies
    13
    Views
    1,720

    Re: Passing 'this' in member intitialization list

    Of course it is usually better to avoid unsafe behavior, but sometimes it has to be weighed up against ease of use and the intended 'target audience'.
    What I am asking is, specifically:
    Is the...
  7. Replies
    13
    Views
    1,720

    Re: Passing 'this' in member intitialization list

    I am doing something very similar to the original poster, except that I am dereferencing the this pointer and passing that in an initialization list (see code snippet below).
    I understand the cause...
  8. Replies
    3
    Views
    1,057

    Re: Patching autoincremented numbers

    I wouldn't mind that so much, if it wasn't for the fact that every time a user presses 'enter' to complete entry in a GridView, the BindingSource automatically navigates to the next row-and if there...
  9. Replies
    3
    Views
    1,057

    Patching autoincremented numbers

    Hi all.

    I'm using a DataSet in .Net2.0 which is not actually connected to a database (just serialized from/to XML). I use auto-incrementing keys in a couple of the tables for convenience....
  10. Re: 'Join' like behavior in a BindingSource with the Filter property?

    For reference, I have made some progress with this, though I'm not quite there yet.
    The Expression interpreter understands the 'IN' keyword, and when a relation is being used, the 'Child' and...
  11. 'Join' like behavior in a BindingSource with the Filter property?

    Hi all,

    following on from my previous post (and hence using the same table structure) I'm trying to limit the items in the combo box to those already used in the relationship. In other words, if...
  12. Re: Combobox with items from data source and list from binding

    In case anyone ever needs to do this, solution is as follows:
    Create a binding source to the Parent table:


    BindingSource^ parentBindingSource = gcnew BindingSource(this->components);...
  13. [RESOLVED] Combobox with items from data source and list from binding

    Hi all,
    Related to my previous binding post, I am trying to populate a Windows.Forms.ComboBox with the contents of a child/lookup table, and bind the current selection to the foreign key value in...
  14. Re: BindingSource with Relation as Data Member

    I just wanted to add that this does actually half work. If I make changes to an existing value in the textbox, the change is applied to the child (lookup) table. It just doesn't work if I am adding a...
  15. Re: BindingSource with Relation as Data Member

    Thanks for the reply boudino.
    I've tried that, but unfortunately it didn't help. Interestingly enough, based on the xml saved out with WriteXml for the TParent and TChild tables, not only is the...
  16. [RESOLVED] BindingSource with Relation as Data Member

    Hi all. For your information before I get into my question, I am using Visual Studio 2005 and .Net version 2.0.

    I have an application in which I have created a DataSet with the DataSet designer...
  17. Finding a specific row in a data row-not with primary key

    Hi all,
    I have a table in a DataSet that simple consists of an Int32 primary key Id (StringId) which is the primary key, and a String value (String). I need to be able to search for the row that has...
  18. Re: Please help: XML based DataSet and Parent/Child relationships in forms

    Thanks, I thought it might belong in the Visual forum since forms are, well.. visual ;)
  19. Please help: XML based DataSet and Parent/Child relationships in forms

    I was of two minds on whether to put this here or in managed C++, sorry if it's misplaced.

    I have a reasonably simple data schema consisting of a main/parent table and two lookup/child tables (and...
  20. Re: "More Data is Available" error using RegEnumValue, even with NULL lpData value

    Thanks Krishnaa, I stupidly assumed that this error would not be returned if I set the data parameter to NULL. We all know what assumption is the mother of ;)
    I can continue after the initial...
  21. Re: "More Data is Available" error using RegEnumValue, even with NULL lpData value

    My first call is to RegEnumValue, it has the same parameter documentation as RegQueryValueEx. But the failure happens in the RegEnumValue call, which does have a NULL value for lpData. This call is...
  22. "More Data is Available" error using RegEnumValue, even with NULL lpData value

    Hi all,
    I am attempting to enumerate through a registry key's values and obtain the data. My initial attempt resulted in a "More Data is Available" return on the second iteration (there are four...
  23. Replies
    3
    Views
    5,919

    Re: m_dwRef assert in ~CCmdTarget

    Thanks, I thought as much, but after commenting out most of my app I can't imagine what. I have to work on something else at the moment, but as soon as I'm back on the bug I'll grab the stack trace...
  24. Replies
    3
    Views
    5,919

    m_dwRef assert in ~CCmdTarget

    Hi all, I'm fighting an exit error in an MFC app that is driving me nuts. On exit, MFC asserts in CCmdTarget::~CCmdTarget because m_dwRef is greater than 1 (in this case it is 2). I have determined...
  25. Replies
    0
    Views
    738

    Scrollbar in child dialog not scrolling

    Hi all, I have a CDialog subclass in which the default constructor calls Create with a simple template that has no controls, but for which the vertical scrollbar property is set. I then...
Results 1 to 25 of 46
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured