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.15 seconds.

  1. Re: [win32 - GDI] - how can i copy the parent HDC?

    Don't use ShowWindow() during the handling of WM_PAINT

    I'm not even at all sure what you remotely think the above code is going to do.

    Why are you not using the dc from the paintstruct ?
    What...
  2. Replies
    2
    Views
    77

    RFC 2046: Mime types

    See https://www.ietf.org/rfc/rfc2046.txt for the RFC.

    In one of our projects we are receiving data from an external source, preprocessing the data and per mime type allowing customers to define...
  3. Thread: .h and .cpp

    by OReubens
    Replies
    51
    Views
    1,812

    Re: .h and .cpp

    Also, people don't have problems with "the STL " having code in the .h (beside it being needed since it's templates) because... most people don't go make changes to the code parts of those headers...
  4. Re: [win32] - why the HBITMAP isn't showed transparent?

    define "the same way"...

    Note that a lot of OS apps (like IE) do not use the normal windows Menu system but instead have their own drawn menu's.
  5. Replies
    6
    Views
    223

    Re: How to partitioning a list

    2^500 or about 3.27 x 10^150 is hugely larger than the current estimate for the atoms in the univers which is estimated at about 10^80 atoms (assuming all mass would be hydrogen atoms). Some mass...
  6. Thread: .h and .cpp

    by OReubens
    Replies
    51
    Views
    1,812

    Re: .h and .cpp

    that's beside the point really.
    THe same problem still exists.
    changes to the implementation, change the header, causing everything dependant on the header to need recompilation (even though no...
  7. Re: [win32] - why the HBITMAP isn't showed transparent?

    TransparentBlt does a colorkeying blit, that isn't exactly the same as "transparency" but ok, some people call it that... The important thing to note is that it is only "transparent" (keyed) on the...
  8. Thread: .h and .cpp

    by OReubens
    Replies
    51
    Views
    1,812

    Re: .h and .cpp

    Lets take class header myclass.h and it's implementation myclass.cpp
    the world best C++ designer made that class and everyone in the entire world agrees it's a shining example of C++ perfection....
  9. Re: [win32] - why the HBITMAP isn't showed transparent?

    Windows GDI doesn't do transparencies other than what you explicitely provide (color keying, masking, ...) for.

    if you mean alpha transparencies, that only happens when using AlphaBlend() (as...
  10. Replies
    3
    Views
    245

    Re: read file content line by line

    you are trying to map 20GB of memory ???

    oooooookaaaaayyyyyyy........
  11. Replies
    6
    Views
    350

    Re: overriding base class template method

    You can if you cast either side of the terniary.
    Without a cast, the compiler is left in the dark as to your intention. (even though you could argue that it should be smart enough to figure out you...
  12. Re: Looking for a Modemsimulator which supports AT commands RING CONNECT and OK

    google "virtual modem"
  13. Re: Problem With Sleep() When drawing ananalog clock

    1)
    No, I said that the apparent method in the OP will make a clock that shows something looking like time, but it'll acumulate small errors and eventually be off by several seconds.
    For an...
  14. Re: Problem With Sleep() When drawing ananalog clock

    Nope, what I meant is that it won't work...
    There is time going into the code to draw the hands
    a Sleep(X) will not give you an EXACT X amount of sleep, it'll be as close as the system can give...
  15. Thread: .h and .cpp

    by OReubens
    Replies
    51
    Views
    1,812

    Re: .h and .cpp

    Sorry, no, you haven't.

    Class design hasn't even anything to do at all in this matter. You can have the best possible design in the world, and have compilation sessions take hours simply because...
  16. Re: Problem With Sleep() When drawing ananalog clock

    you cannot possibly make a visible clock by.

    drawing the time
    wait 1 sec
    draw the Original time +1sec
    wait 1 sec
    draw the Original time +2sec
    etc...

    as the orinal question seems to...
  17. Thread: .h and .cpp

    by OReubens
    Replies
    51
    Views
    1,812

    Re: .h and .cpp

    ODR issues aside, which is a "local" (per project) issue.

    the main reasons are as I said for more properly managing huge projects containing of compiling multiple libraries and/or binaries....
  18. Replies
    18
    Views
    671

    Re: [RESOLVED] map iterators

    A lot has changed from VS2003 to 2013.
    many containers not only have different parameters/return types on their members , but also behave differently.

    You should consider proper code revisions...
  19. Replies
    2
    Views
    286

    Re: Porting some Java code

    the compiler gets confused because...

    it looks like you're defining AStar_NS as a class (it has members and a 'private' declaration in it), but sait it was a namespace

    change to code so it's a...
  20. Replies
    13
    Views
    488

    Re: A question regarding creating a window

    explaining it is easy...
    instead of the normal type messageloop:


    while(GetMessage(&Msg, NULL, 0, 0) > 0)
    {
    TranslateMessage(&Msg);
    DispatchMessage(&Msg);
    }
  21. Replies
    21
    Views
    864

    Re: Opinions on my get/set approach

    unless you really really have to. :-)
  22. Re: a searching algorithm in a circle: 1 unidirectional, 2- Bididirectional

    Are you just trying to find the average time/steps ?

    if you're going linear (numerical next) than the average will be N/2 where N is the number of items. (worse case is N-1)
    if you're going only...
  23. Thread: .h and .cpp

    by OReubens
    Replies
    51
    Views
    1,812

    Re: .h and .cpp

    yes,
    and you can do the same in C++. Though it may not Always work as you planned because of how the compiler searches for includes.
  24. Replies
    13
    Views
    488

    Re: A question regarding creating a window

    the 'normal' behaviour for a messageloop is to loop around geting and processing messages.

    if you make a more elaborate loop, you can do "background" processing while still handling the window....
  25. Re: Mouse Input Coordinates Not Being Read in C++

    1) you need to enable mouse events.
    See SetConsoleMode()

    2) z, the index into the inputrecords buffer, isn't being initialized or set to anything.

    3) you are not checking if the event is in...
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 survey question.


Featured


HTML5 Development Center