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

Search:

Type: Posts; User: mop

Page 1 of 10 1 2 3 4

Search: Search took 0.31 seconds.

  1. Replies
    19
    Views
    1,630

    Re: Pass by value & pointer question

    Don't be that extreme. There are two common delusions:
    - all you'll ever encounter is by standard
    - you'll one day encounter any given thing from standard

    Who's the extremist ? I'm not sure...
  2. Thread: Help with C++

    by mop
    Replies
    18
    Views
    1,778

    Re: Help with C++

    Post what you have _or_ attach it. Do it quick before I go into hiatus here.
  3. Thread: Help with C++

    by mop
    Replies
    18
    Views
    1,778

    Re: Help with C++

    I was trying to trace through your problem so on second thought. Let see here:



    _above_ alphabetical order? Should this read: Output the information in alphabetical order?
    What do you mean...
  4. Thread: Help with C++

    by mop
    Replies
    18
    Views
    1,778

    Re: Help with C++

    I'm not sure if sometimes I'm getting my leg pulled ... but



    int main()
    {
    int const nElement = 3;
    int array[ nElement ] = { 1, 0, 2 };
    std::cout << accumulate(array, array + 3, 0);
  5. Replies
    19
    Views
    1,630

    Re: Pass by value & pointer question

    Clear _nonesense_

    A pointer can be null, so any time somebody returns a pointer
    to me, I need to write code to verify that it's valid. A reference can
    never be null, no matter what some of...
  6. Replies
    19
    Views
    1,630

    Re: Pass by value & pointer question

    I wouldn't go as far as to say _no_ performance gain. While it's true that performance (and underlying implementation) is typically the same,
    an optimizing compiler might in some cases generate...
  7. Replies
    23
    Views
    2,182

    Re: deterime which bits in a byte are set

    Sounds like you're using Code Composer Studio. The 2812 is one of those animals where a char is 16 bits :)
  8. Replies
    0
    Views
    524

    dialog implementation woes..

    The attached source reflects a main dialog with three buttons: "trs lsr dlg, port_options and cancel". When the button trs lsr dlg is depressed two dialogs get launched side by side. I'd like to...
  9. Replies
    2
    Views
    1,002

    hexadecimal inputs for edit control

    I've got an edit control with a min and max range of 0 and 255 respectively.



    DDV_MinMaxInt(pDX, m_dbx_register_val, 0, 255);

    If the user enters inputs in Hexadecimal, a dialog box pops...
  10. Replies
    5
    Views
    1,550

    Re: Radio Button - Enable/Disable Question

    Thanks...
  11. Replies
    5
    Views
    1,550

    Re: Radio Button - Enable/Disable Question

    I'm not sure I'm following this CheckRadioButton function. Is that an MFC function?
  12. Replies
    5
    Views
    1,550

    Radio Button - Enable/Disable Question

    I have a dialog based application with radio buttons. Lets suppose for 'group1' I have 4 radio buttons label - a, b, c, d -. For 'group2' lets suppose I have 3 radio buttons labeled h, i, j.
    ...
  13. Replies
    5
    Views
    812

    Re: Icon - for my executable

    Overwrite how. There's no copy and paste feature with these beasts.
  14. Replies
    5
    Views
    812

    Icon - for my executable

    I've got an dialog based application. I modified IDR_MAINFRAME to reflect an ICON of my choosing. As a result my dialogs reflect the 'new/modified' icon.

    Trouble is, the executable still...
  15. Thread: Trolltech's QT

    by mop
    Replies
    7
    Views
    790

    Re: Trolltech's QT

    I think what you're trying to tell me is that this is not the appropriate place to ask.

    I've already done all what you've suggested. Note specifically where I state I'm having difficulties...
  16. Thread: Trolltech's QT

    by mop
    Replies
    7
    Views
    790

    Re: Trolltech's QT

    I'm well aware of the link you posted and believe me it didn't help!!!
  17. Thread: Trolltech's QT

    by mop
    Replies
    7
    Views
    790

    Trolltech's QT

    I'm having some difficulties registering with the trolltech forum, in any event, I'm curious to know if there's anyone available who could point me in the right direction with regard to using QT and...
  18. Replies
    3
    Views
    672

    Re: random number generator

    Peruse this thread.

    http://www.codeguru.com/forum/showthread.php?t=317008
  19. Replies
    10
    Views
    832

    Re: Problem with

    getch. Perhaps I'm misunderstandign your question but I would expect
  20. Replies
    8
    Views
    1,964

    Re: QUestion about singleton classes

    Ordering of destruction may be more treacherous, since creation ordering may be correct simply by virtue of the first use technique. I prefer accessors that cannot fail, but there are cases where...
  21. Replies
    3
    Views
    746

    Re: parsing a connections file in C++

    Are you opting to read in terms of a 'column'? Is that what you mean by your statement above?

    Post the code - or at least the 'trouble' spot.
  22. Thread: Nested classes.

    by mop
    Replies
    6
    Views
    1,356

    Re: Nested classes.

    Post the portion of the code you feel is suspect - or if small enough post the entire code.
  23. Replies
    5
    Views
    1,006

    Re: Reading actual bits from a file

    Recommend you look into std::bitset and std::vector<bool>.
  24. Thread: using find

    by mop
    Replies
    1
    Views
    522

    Re: using find

    Ideally you should post the smallest compilable code. In any event, some recommendations based on a quick glance over your code



    // add
    bool operator==(data *&a, const data &b)
    {
    return...
  25. Replies
    8
    Views
    947

    Re: RNG- Get different whenever i need

    This much I understand. You'd like to output a different value from the array data with each execution of the program without the use of a RNG.

    But what do you mean one time click, one...
Results 1 to 25 of 232
Page 1 of 10 1 2 3 4





Click Here to Expand Forum to Full Width

Featured