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

Search:

Type: Posts; User: OReubens

Page 1 of 80 1 2 3 4

Search: Search took 0.11 seconds; generated 50 minute(s) ago.

  1. Replies
    17
    Views
    461

    Re: C++ with OOP assignment

    Again, those have a use.

    The mutable keyword is ideal when you have a function that is obviously a getter, but at the same time makes benign changes to the object that the consumer of the class...
  2. Replies
    17
    Views
    461

    Re: C++ with OOP assignment

    Well, by that definition, EVERY programming construct used incorrectly is 'malign'.

    -> A vector is malign when it's element count is known at design time, should have used an std::array instead.
    ...
  3. Replies
    7
    Views
    219

    Re: Run in another program

    See SetWindowsHookEx() on MSDN
  4. Replies
    8
    Views
    10,976

    Re: Enable/Disable USB drive

    1) disable the driver (don't forget to reenable it, this is kinda drastic)
    -> ZwUnloadDriver/ZwLoadDriver (see MSDN)
    needs UAC elevation or to be called from kernel mode. (you'll need a driver for...
  5. Replies
    17
    Views
    461

    Re: C++ with OOP assignment

    There's nothing malign about singletons per se, when used incorrectly, yes, but the same is true for any construct used incorrectly. Sometimes they're exactly the thing that's needed for the...
  6. Re: does os close a tcp connection due to idleness?

    It's not part of TCP, but it is part of the OS to attempt to recover/recycle unused connections.
    Without a feature like this, it would be very easy for a malicious program to starve the server of...
  7. Replies
    8
    Views
    261

    Re: anonymous namespace qualifier

    Actually...

    it appears the Original c++11 standard is somewhat dubious as to the exact expected workings in this case, later made prohibited, but for C++14 it's again being taken in for change....
  8. Replies
    2
    Views
    1,553

    xHTML Re: Using Fixed and Dynamic columns in a table?

    I doubt you can do what you want, tables are notoriously known for not respecting things like overflow.
    The whole point about tables is that they auto adjust to accommodate various content, and...
  9. Replies
    8
    Views
    261

    Re: anonymous namespace qualifier

    1) You do not have to indent on a namespace block.
    In fact it's more common to find it not happening.
    THe only exception if you have nested namespaces, but then you pretyt much open a can of worms...
  10. Re: LNK2001: unresolved external symbol when building for x64 platform

    now your definition and the declaration differ, that's not an ideal situation either (even if the linker isn't complaining), it could cause some headaches down the road...

    if you really intend for...
  11. Re: LNK2001: unresolved external symbol when building for x64 platform

    the Obvious first suggestion would be that it seems that either myclass.cpp isn't properly defined and the 2 definitions don't get compiled (possibly due to improper placement of the compiled header...
  12. Re: 68hc11, largest unsigned contents of memory question

    The point of the forum is to help people, but at the same time, it's not the point to do your homework for you, which is technically cheating.

    If you want reassurance, then next time, do the...
  13. Re: 68hc11, largest unsigned contents of memory question

    it might.

    If you think about it, this is pretty elementary stuff. and the question asked here is "how does a conditional work" akin to C/C++


    if (test)
    do_something;

    So the solution...
  14. Re: 68hc11, largest unsigned contents of memory question

    there's not much we can do here that wouldn't be in violation of the forum rules about not flat out giving the answers to homework.
    Even a rough step by step if "too far" in this case because that's...
  15. Replies
    27
    Views
    10,407

    Re: scrolling popup menu via Page Up/Down

    that is a messageloop
    but subclassing is not about changing the messageloop itself,
    but changing the "callback" function (windowsprocedure) Windows will call when there are messages to be processed...
  16. Replies
    27
    Views
    10,407

    Re: scrolling popup menu via Page Up/Down

    the code in #12 definately does not do subclassing. Rather, it changes the WindowClass.
    That might be ok for your particular case, but it's a rather dangerous approach since it changes the...
  17. Replies
    27
    Views
    10,407

    Re: scrolling popup menu via Page Up/Down

    "subclassing" in windows terminology does not mean "derive a class from a base class (such as CWnd).

    rather, it means "replace the windows' messageloopprocedure with my own". SO it doesn't matter...
  18. Replies
    27
    Views
    10,407

    Re: scrolling popup menu via Page Up/Down

    Typically speaking, and this holds true for ALL the windows common controls.

    Most of them can be tweaked (to a degree) to change how they look.
    It is either impossible, or very difficult to...
  19. Re: How can I create a template method in a C++ class?

    you need to define the 'body' of the templated memberfunction in a public header.

    so you either add that code inline in the class definition


    class A {
    public:
    template<class T> ...
  20. Re: Send signal SEGV to crash a running process in Windows .

    I was sort of assuming he wanted to get aa SEH to result in a minidump to see what the exe is doing.

    Then again, there's easier ways to do THAT. just attach your debugger to the process and break...
  21. Thread: HTTP Request

    by OReubens
    Replies
    29
    Views
    10,112

    Re: HTTP Request

    It's unclear if you're talking about the Google toolbar (For API see here: http://toolbar.google.com/buttons/apis/)
    or if you're talking about the toolbar in the chrome browser (this is NOT formally...
  22. Re: Send signal SEGV to crash a running process in Windows .

    inject a bit of code that'll cause a segfault. THere's plenty of topics about possible ways to inject code into another process.
  23. Thread: HTTP Request

    by OReubens
    Replies
    29
    Views
    10,112

    Re: HTTP Request

    programmatically "doing" something with chrome browser or the chrome toolbar has absolutely NOTHING to do with HTTP requests.
  24. Replies
    5
    Views
    5,775

    Re: How divide cell?

    if you just want to divide the area into regions using some logic.
    For non-overlapping you probably want to take a look at voronio diagrams. If areas can overlap, then you probably need to use a 3D...
  25. Thread: PostMessage

    by OReubens
    Replies
    24
    Views
    10,771

    Re: PostMessage

    should be a delete [] pItem; but that don't really make a difference for this code.
Results 1 to 25 of 1999
Page 1 of 80 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