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

Search:

Type: Posts; User: mysterd429

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    1,115

    Re: counting occurences of combinations

    Hi Gary,

    There was a small bug in my input code. I was not correctly reading in from lin before I checked to see if it had failed. That section of code should look like the one included below.
    ...
  2. Replies
    12
    Views
    1,115

    Re: counting occurences of combinations

    I omited some of the code I used for output purposes. I've pasted the whole source file below.



    As long as no one line exceeds that 65535 characters, you should be okay. Do you have more than...
  3. Replies
    12
    Views
    1,115

    Re: counting occurences of combinations

    So, mathematically, you have several sets, A[1] = {11, 22, 33, 44}, A[2] = {11, 22}, etc. You then take the union of all of these to get B = {11, 22, 33, 44}. You then want to count the number of...
  4. Re: Get nested class of a template parameter

    Thanks, Paul! That's interesting that the compiler doesn't know that. How could it know what a Dee is before it knows what a Tee is, though? It can't if you don't help it out.

    Does that imply...
  5. Re: Get nested class of a template parameter

    That was it. Thanks so much!

    Out of curiosity, why is the typename necessary? What does the compiler not know about Tee when typename is not used?

    Cheers!

    Don
  6. Get nested class of a template parameter

    Hi, all!

    I'm trying to get at the nested class of a template parameter. I'm using g++, powerpc-apple-darwin8-g++-4.0.0.

    Here's my sample code:



    #include <iostream>
  7. DataGrid - highlight whole row on click? (.NET 1.1)

    Hi all,

    I have a specified DataGrid question. I use the following code to highlight an entire row (as if clicking on the row header) when the user clicks in any column without putting the focus...
  8. Replies
    1
    Views
    599

    Re: How to use a datagrid?

    (I changed my original post with a new question.)
  9. Replies
    1
    Views
    599

    How to use a ListView? [was: How to use a datagrid?]

    Hi again.

    So it turns out that I really needed a ListView. Is there a way to tell when two columns in the listview have been reordered? (For reference, I'm using the seemingly archaic .NET...
  10. Re: Ensure template paramater in class hierarchy?

    Hi all,

    So, I'll just put up what exactly I'm hoping to do:


    class B { public: int i; };
    class D1 : public B { };
    class D2 : public B { };

    template <typename T>
  11. Re: Ensure template paramater in class hierarchy?

    Thanks for the additional feedback. I'll likely stick with the template or look more into Boost. I'm making a container template that is intended for use with a specific class hierarchy, so the...
  12. Re: Ensure template paramater in class hierarchy?

    Hi again.

    I am actually making a template out of a class, not a function, but the function seemed like a simpler example to me. I want to use a template so that I can have type enforced within...
  13. Ensure template paramater in class hierarchy?

    Hi all,

    Is there a way that I can guarantee that a template parameter is a sub-class of a given class? The option I see is to do some sort of cast. Is there a more elegant option?

    Cheers!

    ...
  14. Replies
    3
    Views
    8,270

    Re: InitializeCriticalSectionAndSpinCount

    Thanks for the reply! _cs is a pointer in my example. With the deadlock exception, I was just trying to see if I had the syntax for that try/catch thing right.

    Cheers!
  15. Replies
    3
    Views
    8,270

    InitializeCriticalSectionAndSpinCount

    Hi, all,

    I'm new to Windows programming, though I've been doing C/C++ for about 8 years. I'm trying to use a CRITICAL_SECTION without any luck. I was trying to follow the example at
    ...
Results 1 to 15 of 15


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)