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

Search:

Type: Posts; User: TheCPUWizard

Page 1 of 80 1 2 3 4

Search: Search took 0.66 seconds; generated 49 minute(s) ago.

  1. Re: set_constraint_handler_s -- Visual Studio 2019+

    Thanks for the confirmation. I was hopjng for some set of extensions as __STDC_LIB_EXT1__ (while optional) is ancient, and being able to control the behavior of overflows is quite powerful.
  2. Pointers to member functions and const members...

    declare a member as const and you can invoke it on a non const instance....

    But how can one declare a POINTER to a member function so that it can bew assigned to either a const or non-const?

    ...
  3. set_constraint_handler_s -- Visual Studio 2019+

    https://en.cppreference.com/w/c/error/set_constraint_handler_s
    [Note "since C11"]
    BUT

    https://learn.microsoft.com/en-us/cpp/overview/visual-cpp-language-conformance?view=msvc-170

    [See Item...
  4. Replies
    5
    Views
    1,763

    Re: library function call

    Also, always be cautious about using multiple tools in the same environment, increases cognitive load. As Scott Meyers said (paraphrased) "Give your users ONE way to accomplish a goal, no not...
  5. Replies
    0
    Views
    654

    Create complete cross reference.

    There are some tools like DoxyGen, that will give partial cross references; but so far I have found all of them lacking. For example, one key area of focus for this effort is all the places where...
  6. Replies
    8
    Views
    10,983

    Re: memset vs ZeroMemory

    Nearly 23 years later, but someone just showed me this thread.... and an error can not be left standing... here are the facts [Microsoft C++]



    //
    // Constants
    //
    #define MoveMemory...
  7. Replies
    8
    Views
    12,372

    Re: SetClientRect ???

    13 years later, and still the thread comes up, and the topic is relevant...
  8. Re: Reflection - Assembly::CreateInstance of a non "ref" c++ class

    Exactly correct. You can then use "placement new" to actually create the native object inside that space :)

    The use-cases where this is a desirable approach are pretty slim, but are NOT zero........
  9. Replies
    25
    Views
    6,431

    Re: theApp vs. AfxGetApp() - does it matter?

    (17 years later)....:wave::wave::wave::wave::wave:

    There is a VERY real difference. It is physically possible to that multiple instances of theApp in different conditions (multiple DLLs', et....
  10. Replies
    8
    Views
    8,839

    Re: URL for Top Posters...

    Hey Arjay, good to see you are still here also :)

    I had found the full list previously, but had not realize you could sort it on posts, and then just count from the top...
  11. Replies
    8
    Views
    8,839

    Re: URL for Top Posters...

    Victor, good to see you are still here :)

    There once was a page that shows the people with the most lifetime posts, and then in decreasing order of posts.... I can't find it in the navigation....
  12. Replies
    8
    Views
    8,839

    URL for Top Posters...

    Can't find it in the navigation....
  13. Re: Simultaneous Serializing and Deserializing

    Synchronization is critical (And can be done in many ways)....but that does not address:


    A valid XML file *must* have matching tags...so the last content at any point (where the file can be...
  14. Re: Simultaneous Serializing and Deserializing

    As an XML File???? Or as some type of "log"/cvs/etc. Linear file?
  15. Replies
    36
    Views
    9,775

    Re: Seeding a C++11 random

    No, YOU missed the point....the statement was "the casino looses out big over time" with extra aces. This is a conclusion about the impact of the difference, which does not seem to be supported by...
  16. Replies
    36
    Views
    9,775

    Re: Seeding a C++11 random

    OReubens - All very good points, thanks for providing them. Being somewhat of a gambler, I ran a few simulations to test your hypothesis "a minute imbalance in probabilities could cause you to draw...
  17. Replies
    11
    Views
    2,418

    Re: Vs2005 -> vs2013

    I don't find it surprising based on the way I read it... The "many classes" could easily refer to all of the changes in the "language/libraries", few of which may actually be used in the program(s)...
  18. Replies
    11
    Views
    2,418

    Re: Vs2005 -> vs2013

    I agree with 2kaud and am glad you have followed the advice to "clean up the code"....On the topic of "to document every level 4 warning as to why", I strongly suggest that this be done in the code...
  19. Re: New Process() freezes program until it finishes?

    I never said "need to"... The "WaitForExit" could be removed and logic written to use the "Exited" event [ https://msdn.microsoft.com/en-us/library/system.diagnostics.process.exited(v=vs.110).aspx ]....
  20. Re: New Process() freezes program until it finishes?

    One way (which I use a lot) is to wrap the synchronous code (that is working) into a clean class structure, and then invoke the method on that class asynchronously (e.g. so that it runs on a separate...
  21. Replies
    36
    Views
    9,775

    Re: Seeding a C++11 random

    Some really great information in this thread. What can be the most challenging is actually understanding what the "randomness" is attempting to achieve. As an example, one element is security, and...
  22. Re: parse a .xml with just C++ Standard Library

    Sure...(this was typed in here, so errors are likely)



    int main () {
    string line;
    ifstream myfile ("example.txt");
    int line = 0;
    if (myfile.is_open())
    {
  23. Re: parse a .xml with just C++ Standard Library

    This could be done *without* actually parsing the XML file [think how various text comparison programs work]...I wonder if such an approach would be accepted.

    As stated previously, writing an XML...
  24. Replies
    2
    Views
    1,015

    Re: reverse function

    Basic algebra....not really a programming question....
  25. Re: Can someone PLEASE help me in displaying reverse of string input value without...

    Actually he said this was an interview question....I hope his potential employer (at least the person conducting the interview) is a member here on CodeGuru.....
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured