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

Search:

Type: Posts; User: 2kaud

Page 1 of 80 1 2 3 4

Search: Search took 0.12 seconds.

  1. Replies
    1
    Views
    48

    Re: Two newbie C++ related questions

    anything which is defined in the std namespace (eg containers, streams, algorithms etc etc) - see http://www.cplusplus.com/reference/



    you don't. For switch you have to test on equality (or...
  2. Replies
    1
    Views
    52

    Re: I cannot input enum class value

    Where do you invoke stream extraction for a type Genre?
  3. Replies
    2
    Views
    89

    Re: leap year program

    When posting code, please use code tags. Go advanced, select the formatted code and click '#'.

    How do you know that it starts at 780? It starts at 4 on my computer. If running from a console...
  4. Re: EnumChildWindows & FindWindow doesn't work MFC but works Console

    CWnd *pWnd = FindWindow(_T("#32770"), _T("Unable to Write"));


    FindWindow() returns type HWND, not CWnd*

    If you want to use the mfc FindWindow() which does return a CWnd*, then you need


    ...
  5. Replies
    19
    Views
    523

    Re: Crash Reading & Writing More Files

    and the relevancy of this post to the thread is....... :thumbd:
  6. Replies
    33
    Views
    447

    Re: about fonts

    So you don't understand RAII. The new and the corresponding delete go in a class - with delete in the destructor so memory is not 'lost'.
  7. Replies
    33
    Views
    447

    Re: about fonts

    Resource Acquisition Is Initialisation. See http://stackoverflow.com/questions/2321511/what-is-meant-by-resource-acquisition-is-initialization-raii and many other internet articles. If you program...
  8. Replies
    33
    Views
    447

    Re: about fonts

    Think RAII :)
  9. Re: Problem to read value from a file in visual studio 2015 C++

    Not for reading a string from a stream. But if you have a string and want to find specific words within the string then use one of the string find function methods. See the string operations section...
  10. Replies
    59
    Views
    2,513

    Re: Abstraction concept problem?

    Just to clarify (:D) this. In c++ you can pass a pointer by value or by reference. :)
  11. Replies
    1
    Views
    161

    Re: Declaration of int in my test program

    The issue is nothing to do with use of i. The issue is with how you call Process32First()/Next() - and the problem is also present in your first code but you just are not seeing it. Your code should...
  12. Re: What to use for a GameServer Application like this

    So how come Microsoft supports IPC over RPC? From MSDN https://msdn.microsoft.com/en-us/library/windows/desktop/aa365574%28v=vs.85%29.aspx

    "Therefore, RPC makes IPC as easy as calling a function....
  13. Replies
    8
    Views
    442

    Re: SetHandleInformation() - How to use?

    From MSDN https://msdn.microsoft.com/en-us/library/windows/desktop/ms724935%28v=vs.85%29.aspx

    "To set or clear the associated bit flag in dwFlags, you must set a change mask bit flag in dwMask."
    ...
  14. Replies
    21
    Views
    526

    Re: Create edit box without resources

    If you program Windows using native WIN32, you really need to understand how it all hangs together. This is not really something you can just 'pick up' by trial and error. May I suggest that you...
  15. Replies
    2
    Views
    241

    Re: About C++ HashSet and unordered_set

    Have a look at

    http://www.azillionmonkeys.com/qed/hash.html
    http://stackoverflow.com/questions/14446183/implementing-a-hashmap-in-c-hashing-function-for-templated-data-type...
  16. Replies
    16
    Views
    676

    Re: Word break in a richedit box

    If you look at my suggestion from post #5 based upon the MSDN example referenced in my post #8, this uses .LineIndex() for a multiple-line edit control - rightly or wrongly as we know that the MSDN...
  17. Replies
    6
    Views
    272

    Re: How to avoid the copying from std::set?

    for (auto& from : m_unwalkables)
    {
    if (from.Intersect(aabb))
    {
    return false;
    }
    return true;
    }
  18. Replies
    16
    Views
    676

    Re: Word break in a richedit box

    The OP code in post #6 is based upon an example from MSDN. See https://msdn.microsoft.com/en-us/library/vstudio/h0d8ycez%28v=vs.100%29.aspx
  19. Replies
    59
    Views
    2,513

    Re: Abstraction concept problem?

    This also raises an old issue that has been discussed in this forum previously - namely modern c++ teaching. IMO it still seems that in some (many?) cases c++ is taught as c plus classes with a bit...
  20. Thread: New C++ versions

    by 2kaud
    Replies
    17
    Views
    846

    Re: New C++ versions

    For those of us poor souls who don't have a copy of the c++11 standard for bedtime reading, please would you elaborate on this.
  21. Replies
    8
    Views
    279

    Re: width of combo box

    The employee has been busy! eg CreateFile() is stated as minimum Windows XP and CreateWindow() as Windows 2000! Doh!!:ehh:
  22. Replies
    8
    Views
    279

    Re: width of combo box

    Well that's just Microsoft! The current documentation states the minimum requirement is Vista. https://msdn.microsoft.com/en-us/library/windows/desktop/bb775901%28v=vs.85%29.aspx Doh!! :confused:
  23. Replies
    8
    Views
    279

    Re: width of combo box

    Note that this requires Vista or higher.
  24. Replies
    8
    Views
    279

    Re: width of combo box

    You want to change the size of the combo-box list box so that it fits the width of the longest item?

    This is possible. First you need to determine the required width of the list box. Then you...
  25. Replies
    20
    Views
    578

    Re: Selection in listbox or combobox

    You are trying to modify code which you didn't write, don't know how it works and without a good knowledge of c++/Win32. :thumbd:

    IMO before you even attempt to start modifying WIN32 code you need...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!


HTML5 Development Center