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

Search:

Type: Posts; User: abc_coder

Search: Search took 0.03 seconds.

  1. Replies
    49
    Views
    5,863

    you're adding to the confusion here. [list=1]...

    you're adding to the confusion here.

    [list=1]
    for certain platforms, where there's no underlying OS support for threading (dude_1967 mentioned microcontrollers - an easier example could have...
  2. Replies
    11
    Views
    4,745

    this is the ONLY general way actually - you can...

    this is the ONLY general way actually - you can have some particular cases in which you know beforehand that only one thread will pause, set signal masks accordingly so that only that thread catches...
  3. Thread: threading

    by abc_coder
    Replies
    21
    Views
    2,123

    that´s a bad policy - better leave the memory...

    that´s a bad policy - better leave the memory management for the threadData completely to the dialog object:


    add a threadData member
    initialize it inside the onInitDialog() function
    pass...
  4. Replies
    5
    Views
    686

    Re: Tied up with Threads

    it´s a bad design choice to wait for something while processing an event - it blocks the event-processing queue and the app. becomes unresponsive. a better choice would be using a CThread (or a...
  5. Replies
    6
    Views
    648

    1. unless it's a typo, your prototype doesn't...

    1. unless it's a typo, your prototype doesn't match the implementation - the argument has to be a pointer.

    2. template code must reside in the header file - so you probably want to replace the...
  6. actually, if you're interested in playing around...

    actually, if you're interested in playing around with Linux use a 'live cd'. the most popular choice is Knoppix, but SuSe and Mandrake also offer a live-cd version of their distros (SuSe Live and...
  7. Replies
    13
    Views
    3,988

    that is because most X apps on't use them ......

    that is because most X apps on't use them ... they're 'evil' :D the recommended practice is 'use selections'



    you need some determinate googling or fiddling through X reccomendations to figure...
  8. Replies
    1
    Views
    467

    Re: Simple tool to make documentation ?

    try doxygen
  9. Replies
    13
    Views
    3,988

    Re: linux clipboard

    the X clipboard requires the X server (obviously :p ) See this link about cut buffers:

    http://tronche.com/gui/x/xlib/utilities/using-cut-buffers.html

    otherwise, use selections. you'll have to...
  10. Replies
    24
    Views
    1,542

    not if you're not their employee ;)

    not if you're not their employee ;)
  11. Replies
    27
    Views
    10,238

    I apologize for the imprecision - that was...

    I apologize for the imprecision - that was referring to precompiled objects/classes that need to be linked in (the OP had a linking problem due to cout). As you already said, STL resides usually only...
  12. Replies
    27
    Views
    10,238

    the compiler will usually have a list of standard...

    the compiler will usually have a list of standard search paths; same goes for the linker. in particular, in Lunix g++ (the c++ compiler) will add to the standard include search path (/usr/include)...
  13. Replies
    1
    Views
    589

    you can use the rdstate() member function to read...

    you can use the rdstate() member function to read the state of the stream.
  14. Thread: Exceptions

    by abc_coder
    Replies
    16
    Views
    2,071

    it's the intended behavior. Constructors don't...

    it's the intended behavior. Constructors don't return error codes so if you do a one-step (i.e. in the constructor) initialization of some resource and that fails, the most dirrect way of announcing...
  15. Replies
    27
    Views
    10,238

    let me spell it out then. you said: and you...

    let me spell it out then. you said:


    and you were wrong - there's no such interdiction in the C++ standard.



    My bad - the quote I gave was from Appendix C (C1.6 Clause 8: Declarators)....
  16. Replies
    7
    Views
    969

    Re: Re: Member Functions in struct

    behavior will depend on the type of object and the type of function you call (as it should be obvious from the previous POD-nonPOD discussion). However, you can allocate memory (via malloc(),...
  17. Replies
    27
    Views
    10,238

    you are mistaken. void is a perfectly legal C++...

    you are mistaken. void is a perfectly legal C++ function argument - I dare you to show me the exact paragraph in the standard that says different. however, if you DO look at the standard, you'll see...
  18. Replies
    3
    Views
    1,548

    Re: LNK2019 if inline fine if not

    short answer, yes. the body of the inlined function has to be in the same scope as the place where it gets inlined. (when in doubt, check with the standard: 3.2.4. An inline function shall be defined...
  19. Thread: Exceptions

    by abc_coder
    Replies
    16
    Views
    2,071

    or install a terminate() handler with...

    or install a terminate() handler with set_terminate()

    otherwise, just throw an exception object for catch to receive. however, throwing *this would be a serious mistake, as it's not completely...
  20. Replies
    17
    Views
    1,184

    well, outside of the windows world it appears...

    well, outside of the windows world it appears that CLOCKS_PER_SEC=1000000L, so the counter overflows in little more than one hour. and no, there's nothing (portable) you can do about it.
  21. Thread: Exceptions

    by abc_coder
    Replies
    16
    Views
    2,071

    Re: Exceptions

    from the c++ standard, 15.1 (Throwing an exception):


    6. A throw-expression with no operand rethrows the exception being handled. The exception is reactivated with the existing temporary; no new...
Results 1 to 21 of 21





Click Here to Expand Forum to Full Width

Featured