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

  1. Replies
    12
    Views
    233

    Re: Best way to allocate large memory

    the principle of RAII is that your destructors get called, so yes "it will handle it perfectly".

    but there a couple special cases like the circular reference you mentioned where some "smart...
  2. Re: How to interpolate R3->R3 (i mean 3D to 3D) function in Matlab? I have found many

    alternatively, depending on needs, you might be able to pick up a 2nd edition "really cheap" as some stores will be dumping their 2nd edition copies.
  3. Re: How to interpolate R3->R3 (i mean 3D to 3D) function in Matlab? I have found many

    ok, so I'm going to assume what you want is curved surfaces in general...

    If yes, then you have
    bezier surfaces
    B-spline surfaces
    nonuniform nonrational B-splines
    nonuniform rational B-splines...
  4. Replies
    3
    Views
    100

    Re: ImageList question

    sort of...
    but "why" ?
    you should view an imagelist as a collection of individual images. The fact that 'under the hood' this is implemented as a larger bitmap (actually a DDB) is...
  5. Re: Why is CreateDIBSection() Failing in My Code?

    Are you sure about that ? There's a difference between passing NULL as DC and passing the return value of GetDC(NULL) as DC. (or the return from CreateCompatibleDC(NULL))

    it isn't documented on...
  6. Replies
    12
    Views
    233

    Re: Best way to allocate large memory

    And that is my precise point...
    you may leak resources other than memory, because the OS does not clean up EVERYTHING when your exe terminates. delete does more than just clean up memory, it...
  7. Replies
    10
    Views
    237

    Re: Problem in Displaying Bit Values

    if you use a 256 color image
    then each pixel is a single byte, each of which is an index into the colortable
    the color table is EITHER 256x 16bit combined RGB values, or 256xRGBQuads depending on...
  8. Replies
    38
    Views
    2,517

    Re: IF-free conception.

    Correct, but a somewhat incorrect view of things (which granted, is sometimes hard to get people to wrap their heads around).

    Compilers are getting better, CPU's are getting better. This means...
  9. Re: How to interpolate R3->R3 (i mean 3D to 3D) function in Matlab? I have found many

    you're looking for 3d splines ?

    If yes, you'll need more info than that, you'll need an escape/normal vector on the point as well. ANd probbaly you'll want a 'force' value as well.
    or do you...
  10. Re: Invoking a method of a class with template

    looks like you have a somewhat awkward design. But without seeing the whole class, it's possible this is how it has to be.

    however

    consider.
    CObject just being as it is, not as a template...
  11. Replies
    3
    Views
    89

    Re: Moving from VC++ 6.0 to VC++.NET

    probably not needed, potentially this is going to slow down your app rather than speed it up.

    if as functions, you're forcing calls, and restricting the compiler to manage registers on it's own...
  12. Replies
    12
    Views
    233

    Re: Best way to allocate large memory

    1) It's bad advice to suggest delete isn't needed. especially to novice users which might take that as a carte blanche to apply it liberally.
    2) as I said, yes, windows will clean up the memory....
  13. Replies
    3
    Views
    100

    Re: ImageList question

    unclear what you're asking, but if you create a 32x32 imagelist, then all images will be 32x32. Imagelist does not accomodate for images in varying sizes. You can 'sort of' accomodate by oversizing...
  14. Re: IDropTarget + elevated process. Msgs for ChangeWindowMessageFilter to make it wor

    you cannot pass information from non elevated programs to elevated programs via IDropTarget (or via several other IPC methodologies for that matter), because that violates the UAC contract. For the...
  15. Replies
    10
    Views
    237

    Re: Problem in Displaying Bit Values

    no. you need to specify the palette the IMAGE is supposed to use. This is what you do by specifying the colors in the image's color table. (you only need to do this for 16 and 256 color bitmaps). ...
  16. Re: Why is CreateDIBSection() Failing in My Code?

    no, it fails because you pass NULL, Period. You can't create a dib section without a DC.

    You should also correctly fill in biSizeImage. (in this particular case it would be width*height)
    ...
  17. Replies
    38
    Views
    2,517

    Re: IF-free conception.

    Depends what "navy" you refer to. If you refer to the american, then they're like most of the other US armed forces (and military in other nato countries for that matter) and are increasingly...
  18. Replies
    9
    Views
    171

    Re: the timer isn't created :(

    inst->hWnd() ???
    wut ?
  19. Replies
    6
    Views
    243

    Re: pass by Reference to smart pointer?

    simple rules to follow

    1) if you only want to pass a POD value or variable that won't allow the function to modify the variable that was passed in:
    POD type: pass by value
    anything else: pass by...
  20. Replies
    10
    Views
    237

    Re: Problem in Displaying Bit Values

    if you allocate with new[]
    you should delete with delete[]

    also, you don't have to set a pointer to NULL after a delete, unless you'll be testing/reusing the pointer.



    No that tells Windows...
  21. Replies
    3
    Views
    124

    Re: MFC button with icon or image

    In this case, yes... to a degree, with some small issues if you can live with them :-)


    you'll find that a regular button with a BITMAP on it will behave a bit strangely towards painting
    a...
  22. Re: Virtual-Function-Table pointer is misplaced in object memory

    I meant to say that how the compiler solves the 'virtual' issue is entirely proprietary to the compiler. Many compilers solve it with a vtable, but that isn't the only approach.


    Part2:
    it's...
  23. Replies
    38
    Views
    2,517

    Re: IF-free conception.

    precisely BECAUSE a compiler can do microoptimizing a lot better than most programmers out there.
    And giving a compiler "the raw code" will allow the compiler more leeway in optimizing than already...
  24. Replies
    6
    Views
    243

    Re: pass by Reference to smart pointer?

    the first function defines a function that tabes a QSharedPointer object
    the 'data' here is a COPY of the one that was passed in.

    the 2nd takes a function that takes a QSharedPointer reference...
  25. Re: Virtual-Function-Table pointer is misplaced in object memory

    "memory dumping" like you're doing here is not part of the c++ standard,
    so the results will be dependant on the compiler used (even version could matter) and which settings you used.
    a vtable...
Results 1 to 25 of 2000
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