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

Search:

Type: Posts; User: kempofighter

Page 1 of 5 1 2 3 4

Search: Search took 0.06 seconds.

  1. 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...
  2. Thread: dword

    by kempofighter
    Replies
    2
    Views
    338

    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...
  3. Replies
    14
    Views
    1,190

    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,...
  4. Replies
    3
    Views
    453

    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...
  5. Replies
    14
    Views
    1,190

    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...
  6. Replies
    14
    Views
    1,190

    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...
  7. Replies
    21
    Views
    5,515

    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...
  8. Replies
    14
    Views
    1,190

    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...
  9. Replies
    1
    Views
    326

    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...
  10. Replies
    7
    Views
    1,237

    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.
  11. Replies
    3
    Views
    1,602

    Re: Max and Min using arrays and pointers

    Duplicate!
  12. 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...
  13. Re: How to save memory by using bit-precision in C++?

    Is it? This is what the C++ standard says about it.
  14. 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...
  15. Replies
    12
    Views
    661

    Poll: Re: How do you thread?

    Seriously? What do you think the "...." means? :rolleyes:
  16. Replies
    12
    Views
    661

    Poll: Re: How do you thread?

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

    by kempofighter
    Replies
    17
    Views
    976

    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...
  18. Re: Permutations with repeated elements

    I'm not sure how else you could do a generic permutation algorithm without storing off previous sets. the STL is simply going to return the next biggest or previous smallest value.

    123 will...
  19. Re: remove multiple elements from vector in a loop

    Did you look at the example? You could have copy and pasted the example from that link and compiled it. Simply substitute your function names.
  20. Re: remove multiple elements from vector in a loop

    It really is not that hard to tweak what lindley posted. All you have to do is write the global function and substitute its name where the lamda expression went (that is the 3rd argument to...
  21. Re: remove multiple elements from vector in a loop

    The problem is obviously that you are still decreasing the size of the vector within the loop. Don't do that. The loop will end up terminating before all of the values are tested. When the loop...
  22. Re: remove multiple elements from vector in a loop

    geez. you mean like this? Lindley did say that the lamda expression might not work for you. In that case write a global function, static member function of a class, or a functor.


    // write a...
  23. Replies
    26
    Views
    4,150

    Re: A better vector trim with move semantics

    Wait - what is a make_move_iterator? I don't see that in my copy of the ISO/IEC 14882:2003(E) C++ standard. Is this something that is added to the latest standard? Please clarify. :confused:
  24. Replies
    26
    Views
    4,150

    Re: A better vector trim with move semantics

    Something like this would be better as an article submission or frequently asked STL question. If you can figure out how to do that, then it won't get buried so deeply within the general C++ forums.
  25. Re: Not sure how parse this file correctly

    I recommend searching the forums for a solution. I'll bet that you will find many questions about processing CSV files. Your initial post doesn't lead me to believe that you put much effort into...
Results 1 to 25 of 120
Page 1 of 5 1 2 3 4



HTML5 Development Center

Click Here to Expand Forum to Full Width