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. Re: Using one thread at a time with CSemaphore problem

    If the amount of items that you plan to add isn't huge, also consider this as an alternative:

    http://stackoverflow.com/questions/1109522/how-to-fast-fill-a-clistctrl-in-c-mfc
  2. Re: Using one thread at a time with CSemaphore problem

    I'm glad it helped.

    However, for the special case when you need to protect against concurrent access (i.e. exactly one thread is allowed), consider using a critical section instead of semaphore....
  3. Re: Using one thread at a time with CSemaphore problem

    WaitForSingleObject(ghSemaphore, 0L);

    This will not wait, it returns immediately. If your intention is to wait, use INFINITE as a parameter instead of 0.

    If your intention is to do something...
  4. Replies
    6
    Views
    374

    Re: C++ Beginner Help

    Hi there.

    In most programming languages repeated actions are accomplished using loops. The loops are possible to exit based on a condition. I suggest you Google for "C++ loops"...

    Regards
  5. Replies
    6
    Views
    325

    Re: MFC- receiving Button-Click-Message failed

    The PreTranslateMessage function is a strong suspect. Try removing it and see what happens.

    Another source of problems could be the splitter window.
  6. Replies
    6
    Views
    374

    Re: C++ Beginner Help

    +1 to what Kaud said. When we say "cheating", we mostly refer to that you would be fooling yourself into believing that you actually learnt something, when you in fact did not.
  7. Re: How to raise priority of MIDI input callbacks? Thread pools etc.

    According to my observations, the OS allocates a minimum of 1 time slice per second to a thread even if it is a low priority thread and other high prio threads want to fully load all cores.

    I...
  8. Replies
    9
    Views
    514

    Re: More CopyFile Problems

    The typical way to deal with a problem like this is to write an app that only performs the CopyFile stuff in question and nothing else, and check whether it works.

    If it does work, strip out parts...
  9. Replies
    12
    Views
    564

    Re: Installing FLTK on VS 2013

    If you download a library such as FLTK, you should not put those files in the visual studio folder.

    Instead you change your project settings to add an include path that contains the files you...
  10. Replies
    4
    Views
    439

    Re: My binary tree class

    I don't have time to comment on the algorithm, but some generic tips before submitting any code:

    * Check for repeated code and repeated calculations that you can optimize to make it more readable....
  11. Re: How to make a shape outside of the main() function

    So you don't get this error if you move it into the main()?
    The only reason I can think of is that win.attach() does not copy the object, but rather stores a reference or pointer to it.

    Does the...
  12. Replies
    4
    Views
    268

    Re: How do I step into SDK source?

    At least in theory, you take the source files and add them to your project, and you also remove the lib file.

    In practice however, you may find that it is not so easy to get everything working...
  13. Replies
    9
    Views
    479

    Re: The simplest way to print...

    I suggest you make a system service.

    Regards
  14. Replies
    3
    Views
    334

    Re: Problem with initializing auto variables

    Sorry to hear that. If there is a new compile error you need to post it, otherwise it will be difficult to help.

    Based on this page:...
  15. Re: C++ fill color in shapes using FLTK doesn't work for circles

    If it is the exact same IDE/compiler (please note that you may have the same IDE but a different compiler version), and the exact same FLTK version, then all I can think of is that your graphics...
  16. Re: How to make a shape outside of the main() function

    Send a reference to the window to your function.


    void cir(Simple_window &win) { Circle c(Point(100,100),50); win.attach(c); }

    int main()
    {
    Simple_window win(Point(100,100),600,400,...
  17. Replies
    3
    Views
    334

    Re: Problem with initializing auto variables

    If you read the message, it has nothing to do with the "auto", but rather the input parameter of find.

    I'm not sure how you construct an encoded_string, but something like this:

    auto it =...
  18. Replies
    3
    Views
    285

    Re: help with this code

    It looks like you are attempting to use one or more secondary files for the calculations.
    Not good... the normal way of doing it would be to use a std::map to map each word to its count.

    Also you...
  19. Thread: [help] game dev

    by zerver
    Replies
    4
    Views
    432

    Re: [help] game dev

    GCDEF is right in the sense that it is hard to acquire deep understanding of C++ using only the web.
    Even if you have a good teacher, there are many, many pitfalls.
    You may end up thinking that you...
  20. Re: Excel Project to C++ with line moving (drag & drop)

    This type of project is (maybe) better suited for Excel.

    But if you still want to try it, here is a good article:...
  21. Re: C++ fill color in shapes using FLTK doesn't work for circles

    This is old, but maybe still relevant because it says something about "compiler bug".
    http://www.fltk.org/str.php?L1656

    Maybe with a different compiler, or different FLTK version, your problem...
  22. Replies
    4
    Views
    396

    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...
  23. Replies
    2
    Views
    553

    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...
  24. Replies
    4
    Views
    396

    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....
  25. Replies
    1
    Views
    276

    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,...
Results 1 to 25 of 1622
Page 1 of 65 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center