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

Search:

Type: Posts; User: TSYS

Page 1 of 47 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    2
    Views
    1,916

    Re: looking for sample code for 16/32bit CRC

    Wikipedia has a pretty good article on cyclic redundancy checks. It also references some algorithms here.
  2. Re: Capturing a still image from my camera into memory

    I'm not familiar with Windows Mobile so I can't help you much more. But I hope the example I cited at least points you in the right direction, and that somebody else will follow up on this thread.
  3. Re: Capturing a still image from my camera into memory

    You need to replace the File Sink filter with another renderer. Have a look at this page for a sample you can build on.
  4. Replies
    17
    Views
    7,750

    Re: STL Map Iteration Question

    Well, Martin's code certainly works, so now I have to find out what's on the periphery screwing things up.

    Thanks to everybody for your help.
  5. Replies
    17
    Views
    7,750

    Re: STL Map Iteration Question

    Yes, Philip's code does what I intended, without the equality that bothers you, Paul.

    But while this has certainly been an instructive morning for me, my original question remains: how can I...
  6. Replies
    17
    Views
    7,750

    Re: STL Map Iteration Question

    Thanks to you both for your comments and the link. I see what you're getting at, but in this particular case (is (row1, col1) less than (row2, col2)) testing for "less than" first leads to pretty...
  7. Replies
    17
    Views
    7,750

    Re: STL Map Iteration Question

    Paul:
    Thanks for your input. It seems to me your point would apply to arithmetic comparisons (eg., floating point), but not to integer, no? The referenced comparison actually refers to two (row,...
  8. Replies
    17
    Views
    7,750

    Re: STL Map Iteration Question

    Thanks for both your prompt replies...

    GNiewerth: In my rush to get this posted, I omitted the object reference in my sample code. I do, in fact, use code similar to what you've supplied (I doubt...
  9. Replies
    17
    Views
    7,750

    STL Map Iteration Question

    I have an STL map that uses a structure as a key:


    typedef struct _RC_ {
    UINT R;
    UINT C;
    } RC;

    typedef struct _Data_ {
    int data1;
  10. Re: chatsock and lstnsock - anybody heard about it?

    A quick Google of "chatsock" came up with http://www.dll-files-download.com/C/2008-01-13/3750.html. Might be enough to get you started....

    Sorry - missed the part where you'd already done that.
  11. Replies
    18
    Views
    3,807

    Re: Vista - CG NL chatter

    Nope - I purchased a new computer last summer with Vista installed, but deprecated it to XP as soon as I got it. From the problems I've seen with Vista on clients' machines, I'm not looking forward...
  12. Replies
    8
    Views
    3,179

    Re: structs pointing to each other; compile problem

    Skizmo made a typing error: the forward reference should be

    struct B;

    (without the "typedef").
  13. Replies
    3
    Views
    565

    Re: A REALLY Dumb Question

    Told you it was a dumb question. I could swear that didn't work for me in the project, but you are absolutely right. Maybe I should stop thinking about Mary-Jane....
  14. Replies
    3
    Views
    565

    A REALLY Dumb Question

    Either I missed this class in Elementary Programming, or perhaps Mary-Jane had her see-through blouse on, but I'm at a loss for this: What format string would I use (eg., in a printf() call) to...
  15. Thread: mpeg

    by TSYS
    Replies
    11
    Views
    1,525

    Re: mpeg

    See http://www.jmcgowan.com/avi.html#Definition
  16. Thread: mpeg

    by TSYS
    Replies
    11
    Views
    1,525

    Re: mpeg

    :confused: MPEG-2 and MPEG-4 are different ways of compressing video data. AFAIK, neither MPEG standard is associated with the AVI format.

    The MPEG standards (and yes, MP3 is an MPEG standard)...
  17. Thread: Toggle buttons

    by TSYS
    Replies
    22
    Views
    3,003

    Re: Toggle buttons

    Why don't you use radio buttons with "Push-like" style??
  18. Replies
    1
    Views
    958

    Re: Smart Pointer and Access Violation

    Bump....
  19. Replies
    1
    Views
    958

    Smart Pointer and Access Violation

    I have a problem - I think - that's driving me crazy. I have a smart pointer declared as follows:


    #import "C55 Library.dll" no_namespace
    IDecodeC55Ptr pDecodeC55;


    I create the COM...
  20. Replies
    10
    Views
    1,303

    Re: display a bitmap image file in black and white

    Yes, there are several interesting papers on dynamic thresholding on the net which I didn't know about. Thanks for pointing out the search term to use.

    I'm not convinced you can go directly from...
  21. Replies
    10
    Views
    1,303

    Re: display a bitmap image file in black and white

    Converting color to B&W is a little more complex than farooqmaniar indicates. You'll first have to convert the color to greyscale by using some formula: one example is Greyscale = 0.299Red +...
  22. Thread: Timer Failing

    by TSYS
    Replies
    6
    Views
    1,294

    Re: Timer Failing

    I didn't know about FlashWindowEx, thanks for pointing it out. I had hoped for something more visually striking than having the title bar toggle between "active" and "inactive" colors, though (hence...
  23. Thread: Timer Failing

    by TSYS
    Replies
    6
    Views
    1,294

    Re: Timer Failing

    I confess to leaving out a parenthesis in that "if" statement, Markus. If you add it in, you'll see that the "break" is taken when a timer is assigned. This is almost always the first time the...
  24. Thread: Timer Failing

    by TSYS
    Replies
    6
    Views
    1,294

    Timer Failing

    This one's driving me nuts. I have a FormView app that contains a "Suspend" button. When "Suspend" is pressed, I want the title bar to flash a message, 500 msec on, 500 msec off. Which it does, for a...
  25. Replies
    7
    Views
    1,037

    Re: strings to floating point number

    Without attempting to justify what's in the FAQ, from MSDN for "scanf":

    And I think to read a "double" value your format would have to be "%Lf"
Results 1 to 25 of 1157
Page 1 of 47 1 2 3 4





Click Here to Expand Forum to Full Width

Featured