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

Search:

Type: Posts; User: kempofighter

Page 1 of 43 1 2 3 4

Search: Search took 0.14 seconds; generated 34 minute(s) ago.

  1. Replies
    3
    Views
    1,597

    Re: Incorrect values Printed

    I applaud you for trying to use code tags, but please try to make the indenting more sensible in the future. The code within the tags is still very messy and hard to read. Also, it is a good idea...
  2. Re: conditional breakpoint with string does not work in visual studio 2010 as I expec

    That is a good point which I had forgotten about. Sometimes I see code like this.

    CString csValue(_T("TEST")); // is it necessary to wrap the ansi string?

    If I had just written this,
    ...
  3. Re: conditional breakpoint with string does not work in visual studio 2010 as I expec

    John, that suggestion worked for me. Thanks. That at least proves that it is possible to use some of those c-run time functions if we can figure out what the debugger can handle. I wish I could...
  4. Re: conditional breakpoint with string does not work in visual studio 2010 as I expec

    See my subsequent reply. It still doesn't work with .c_str() added. Additionally, visual studio didn't complain about whether the expression was valid or not. Also when I tried doing this with...
  5. Re: conditional breakpoint with string does not work in visual studio 2010 as I expec

    In hindsight, I realized that the condition above isn't quite right so I tried this one.


    strcmp(str.c_str(), "stop") == 0

    I'm surprised that the previous condition that I tried didn't cause...
  6. [RESOLVED] conditional breakpoint with string does not work in visual studio 2010 as I expect

    First, I read the following blog post and my expectation is that I can now do some conditional breakpoints with strings provided that I use the list of allowable functions. I could not get it to...
  7. Cbutton text wrap not working with windows classic theme

    I'm programming with VS2010, for windows 7. The user likes to use the windows classic theme, and I discovered that BS_MULTILINE style isn't working as I expect. When a button is pressed in the...
  8. Replies
    0
    Views
    1,262

    CPP only RSS feed does not work

    I've tried to setup a feed to the following RSS feed, but LOTUS notes won't complete the operation.
    http://www.codeguru.com/rss/cpp/

    I've done the same for several other feeds, and it worked...
  9. Replies
    3
    Views
    1,765

    Re: Linker error: Multiple definition of...

    For noobs that read this and wonder what the solution was, do a search with the text "multiply defined operator c++" and lots of threads will come up. I have run into this myself and usually the...
  10. Thread: dword

    by kempofighter
    Replies
    2
    Views
    605

    Re: dword

    '&' takes the address of the variable which is whatever the environment assigns. You are passing the address of the variable to the function, which will presumably modify that variable so that it is...
  11. Replies
    14
    Views
    15,930

    Re: Secure Memset

    If it was that simple, then I wouldn't have started the thread in the first place. Being aware is great, if it is in fact true! But finding a solution is an entirely different matter. Moreover,...
  12. Replies
    3
    Views
    764

    Re: Is this class set up correctly

    I do not know the requirements of your program. Therefore it is very difficult to comment about whether something is done correctly or efficiently or whether there is a better way. I am concerned...
  13. Replies
    14
    Views
    15,930

    Re: Secure Memset

    My biggest problem with understanding this is that I don't see how a compiler can determine whether something is read from or written to again; especially in a large scale project. I could...
  14. Replies
    14
    Views
    15,930

    Re: Secure Memset

    Surely there must be something more elegant than using the volatile keyword and a manually written loop. Honestly, the aforementioned links don't do a very good job of explaining why the volatile...
  15. Replies
    21
    Views
    25,239

    Re: C++ (boolean)? do if true : do if false;

    Even if what you wrote compiled, I fail to see how that would be easier to read. I find the ternary / conditional operator to be a weird syntax for someone to read. I've recently noticed that this...
  16. Replies
    14
    Views
    15,930

    Secure Memset

    I read some code recently where someone wrote their own function called secureMemset where they used a temporary volatile pointer to the memory block and executed the write operation an extra time to...
  17. Replies
    1
    Views
    617

    Re: Accessing a static Db object

    You are trying to call a non-const function of the class via a pointer to a const object. The open function is not a const function. Do you need the database pointer to be declared as a pointer to...
  18. Replies
    7
    Views
    8,612

    Re: Pointers and Arrays

    Please don't waste time scolding spammers. Just press the report button and move on; unless of course you want to waste your own time.
  19. Replies
    3
    Views
    5,149

    Re: Max and Min using arrays and pointers

    Duplicate!
  20. How do I get makefile to produce diag output

    I'm using a visual studio 2005 makefile. I don't understand how to cause it to generate an output file with compiler/linker diagnostics info. What options do I include within the file? I was...
  21. Re: How to save memory by using bit-precision in C++?

    Is it? This is what the C++ standard says about it.
  22. Re: How to save memory by using bit-precision in C++?

    Saving memory shouldn't be your only concern. What about speed of execution? Extracting bits from bytes or bytes from words can be more time consuming than storing values using the natural type of...
  23. Replies
    12
    Views
    1,352

    Poll: Re: How do you thread?

    Seriously? What do you think the "...." means? :rolleyes:
  24. Replies
    12
    Views
    1,352

    Poll: Re: How do you thread?

    Sure you can! That's what the "other" option is for.
  25. Thread: union

    by kempofighter
    Replies
    17
    Views
    2,581

    Re: union

    Hopefully you are still alive and realized that you should just eliminate the union and have two class attributes employeeName and id. You want the person to have both of those attributes, not one...
Results 1 to 25 of 1065
Page 1 of 43 1 2 3 4





Click Here to Expand Forum to Full Width

Featured