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

Search:

Type: Posts; User: zerver

Page 1 of 65 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    4
    Views
    199

    Re: Sorting a vector alphabetically?

    That sounds like homework to me.

    Most people around here will not help you with homework unless you have a very specific question.

    However, you should read your course literature about structs...
  2. Replies
    1
    Views
    226

    Re: C++ open source project for beginners

    As a newbie it is better to just try to find a project that interests you. Copy the source and play around with it.

    Only after you have gained significant experience should you try to contact the...
  3. Replies
    4
    Views
    199

    Re: Sorting a vector alphabetically?

    It depends.

    If the strings are already in your vector and you want to change nothing, try std::sort().

    However, you could also replace the vector with a std::set, which is automatically sorted....
  4. Replies
    1
    Views
    148

    Re: Selection issue with CListCtrl

    The dotted rectangle is called focus, while the blue stuff is your selection as you already pointed out.

    You use this function:
    m_ListCtrl.SetItemState(nIndex, LVIS_SELECTED|LVIS_FOCUSED,...
  5. Re: How to use watch in VS2010 when I use singlton?

    S::I() is a function and you can't watch the return value of a function.

    So you have to workaround. For example, in this function where you create the singleton, also assign it to a global...
  6. Re: CString::Format() Cannot Align Well Vertically

    this!
  7. Re: How do you CWnd::SendMessage(...) a pointer to a string?

    Messages is the best way, since other solutions would require polling (periodic testing) which makes your program ugly and inefficient.

    But... why don't you let the worker thread itself delete...
  8. Replies
    5
    Views
    2,639

    Re: First Chance Exception CString

    Alright, well then use the _T macro anyway just to be sure, and rewrite the code a bit to rule out the possiblilty of corruption...


    CString test = dadir;
    test += _T("\\*.csv");
    thepath = test;
  9. Replies
    5
    Views
    2,639

    Re: First Chance Exception CString

    I'm not very experienced with unicode, but IIRC you have to prefix the string constants with "L".

    thepath = dadir + L"\\*.csv";
    Does it make any difference?
  10. Replies
    7
    Views
    5,913

    Re: A custom pyramid-drawing program

    Like kaud said, you need to devise the mathematical formulas that calculate the number of stars and blanks for any given row number.

    When you have done that, it will be easy to deploy a few loops...
  11. Replies
    9
    Views
    9,483

    Re: Making an octagon out of right triangles

    You don't need 16 triangles if it is okay to overlap them. Use two triangles to make a rectangle that touches two opposite sides of the octaton.
    Make another such rectangle rotated 45 degrees to...
  12. Re: Two ChlidFrames in one MDI application?Is it a good solution?

    If the "big" view will always be visible, then I suggest instead to make a dockable panel, similar to what you find in many apps such as Visual Studio.
  13. Re: Book recommendation for win32 multi-thread programming

    Good points, but here I cannot agree. A lock held for a long time may indicate a design flaw. These typical producer/consumer scenarios where one of the parties cannot work because the other holds a...
  14. Re: Book recommendation for win32 multi-thread programming

    Lock-free is the ideal, but hard to realize in practice. What you want is a solution that very rarely locks, and when it does, the locks are held for just a few instruction cycles. Also, you'd maybe...
  15. Re: Why certain projects always roll their own data structures/utility classes?

    Also there may be performance reasons. std is fast, but not in every case.
  16. Replies
    2
    Views
    493

    Re: C++ program to revere sentence

    hello, you don't need to write any program. use command tac -r --separator="." file.txt

    http://sourceforge.net/projects/unxutils/
  17. Replies
    3
    Views
    458

    Re: how do i set the focus after an alt+tab?

    I was going to say the same: if your view loses focus when you alt-tab twice there is probably something wrong with the rest of your code.

    Basically, the app should come back up without any focus...
  18. Replies
    5
    Views
    447

    Re: Ideas to tell HDD apart from SSD?

    One more typical characteristic of SSD is that erasing the disk (by overwriting it with zeroes) will be hundreds of times faster than if you would write random data.
    The reason, IIRC, is that the...
  19. Replies
    5
    Views
    447

    Re: Ideas to tell HDD apart from SSD?

    I think getting a 100% working method will be either impossible, or would require such lengthy diagnostics that anyone using the program would ragequit.

    * Some drives are actually hybrid drivers...
  20. Re: Capture sounds from soundcard=speakers - NOT from microphone

    Writing a sound driver... I don't think you should reinvent the wheel...

    Maybe have a look here: http://www.portaudio.com/
  21. Re: Capture sounds from soundcard=speakers - NOT from microphone

    Hi!

    You should be able to use the recording API pretty straight off, but the device must also support so called "Stereo Mix", which you can read about here:...
  22. Replies
    3
    Views
    712

    Re: FLTK, creating a rounded box

    Yes, what I mean is that you should look at how the Polygon class is designed, and then make your own class, very similar to the Polygon class, but of course using fl_arc.
  23. Replies
    4
    Views
    427

    Re: Run Time Error

    Example here: http://www.codeguru.com/cpp/g-m/bitmap/article.php/c1741/Writing-a-window-image-to-a-BMP-file.htm
  24. Replies
    3
    Views
    712

    Re: FLTK, creating a rounded box

    Have a look here: http://www.stroustrup.com/Programming/12_display.ppt

    Apparently there is a "Polygon" class in FLTK. Take a look at the source code of the Polygon class, and try to design your...
  25. Replies
    4
    Views
    427

    Re: Run Time Error

    Maybe a DLL file is missing, try installing Visual C++ 2012 redistributable package from Microsoft.
Results 1 to 25 of 1601
Page 1 of 65 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center