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

Search:

Type: Posts; User: Guysl

Page 1 of 26 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    0
    Views
    466

    "Selected" is not reflected visually

    Hello all,


    My problem is that though I set "DataGridView2.Rows(i).Selected = True" -
    the row is not "marked"(dark gray) as selected.

    What should I do to display the row as selected by user...
  2. Replies
    4
    Views
    508

    Template parameters and arguments

    I have several questions while reading "C++ Templates: The Complete Guide/David Vandevoorde, Nicolai M. Josuttis"



    template<int I> void f(int (&)[24/(4+I)]);

    int main()
    {
    &f<4>;
    }
  3. Thread: Member templates

    by Guysl
    Replies
    12
    Views
    1,475

    Re: Member templates

    Thanks alot guys,
    I've used this information to suggest a solution for :
    www.codeguru.com/forum/showthread.php?p=1241906#post1241906
  4. Re: template help, operators overload and type of

    Hope that helps.



    #include <iostream>
    #include <typeinfo>

    template <typename TG>
    class CMatriz{
  5. Thread: Member templates

    by Guysl
    Replies
    12
    Views
    1,475

    Re: Member templates

    I wish it was that simple. My first general code shows two levels
    for template parameters,
    T for the class, and T2 for a function member:


    template <typename T>
    class CLASS{

    template...
  6. Thread: scope

    by Guysl
    Replies
    4
    Views
    483

    Re: scope

    change
    bool pair(card[] cards)
    into
    bool pair(card cards[])
  7. Thread: Member templates

    by Guysl
    Replies
    12
    Views
    1,475

    Re: Member templates

    The truth is that member is an operator , and by looking at the compiler's
    error I assume the syntax is different.

    I get the following compiler errors:
    "`operator+' used as template "
    "use...
  8. Thread: Member templates

    by Guysl
    Replies
    12
    Views
    1,475

    Member templates

    Say I have a template class, with a member template as the following:


    template <typename T>
    class CLASS{

    template <typename T2>
    void f(T2 const&);
    };
  9. Replies
    5
    Views
    1,033

    Re: Flyweight pattern

    Sure, thats what I meant by "...maintaining a std::map...", which is a good
    'tool' to create a pool of distictions.
    The Flyweight suppose to reduce the number of objects whenever there
    are plenty...
  10. Replies
    3
    Views
    707

    Re: Why enum works so strange? :/

    Another approach is using map of enumeration and string:


    #include <cstdlib>
    #include <iostream>
    #include <map>
    #include <string>


    enum resolution {low,medium,hight};
  11. Replies
    8
    Views
    623

    Re: Program does not display name

    Its a guess, but maybe
    Console::WriteLine should get other type than 'String'
    which is the type returned by 'Cat->GetName()'
  12. Replies
    9
    Views
    8,975

    Re: return char pointer: pls help.

    humptydumpty,

    calm down. Bmiuritan uses 'malloc','strstr' and C-Stile string (char*) therefor he is obviouslly trying to code with C.
    second, please read again my previous comment.
  13. Replies
    9
    Views
    8,975

    Re: return char pointer: pls help.

    Bmiuritan,


    I think what would fix the problem is:

    int iEnd = cTemp - 1;
    instead of
    int iEnd = cTemp - cSource - 1;
  14. Replies
    9
    Views
    8,975

    Re: return char pointer: pls help.

    humptydumpty,

    Your code is wrong.
    In 'Check' function, you assign to a local pointer and not to the array itself.
    you should use strcpy to the array (if we are dealing with C as the
    sample...
  15. Replies
    5
    Views
    1,033

    Flyweight pattern

    I see the importance of using a pool of distincted objects,
    it saves time and space (by not creating instances identical to existing objects).

    What I miss here, is the difference between this...
  16. Thread: Safearray

    by Guysl
    Replies
    4
    Views
    708

    Wrap std::vector as member in a new class, and...

    Wrap std::vector as member in a new class, and implement 2 versions
    for operator[] (for const and non-const accesses) with safety bounds checks.
    provide any interface you need such as...
  17. Thread: .hpp and .h

    by Guysl
    Replies
    14
    Views
    1,063

    NMTop40, Well I didn't really ask about the...

    NMTop40,
    Well I didn't really ask about the need of namespaces.
    Say I have created a namespace that containes templates and non-templates elements. How would you structure your header files for...
  18. Thread: .hpp and .h

    by Guysl
    Replies
    14
    Views
    1,063

    I'm curious how do you treat your own namespaces....

    I'm curious how do you treat your own namespaces.
    do you keep it as one unit?
  19. Replies
    13
    Views
    1,193

    That is what I meant: class Base{ public: ...

    That is what I meant:


    class Base{
    public:
    Base(int val) { defaultSetter(val); }
    virtual void setter(int val) = 0;

    protected:
    void defaultSetter(int val)
  20. Thread: Atof

    by Guysl
    Replies
    2
    Views
    804

    More details please. Its hard to tell where the...

    More details please. Its hard to tell where the problem is.
    which arguments did you use for input? post the code and how you run the program.

    Just to show you that we need more information:
    an...
  21. Replies
    13
    Views
    1,193

    Not really. The override virtual functions can...

    Not really. The override virtual functions can access a base member using
    the interface tha base itself provide. If it provides a setter, you can't skip
    its checks and limitations.
  22. Thread: losing const

    by Guysl
    Replies
    7
    Views
    528

    I believe that the following thread might...

    I believe that the following thread might interest you. The relevant part is on page 2 of the thread:

    http://www.codeguru.com/forum/showthread.php?t=294708&page=2&highlight=const
  23. Replies
    3
    Views
    505

    Don't use the temporary array. It limits you with...

    Don't use the temporary array. It limits you with a constant size (in your case 4096), and since you modify the original array it gives no advantage.

    what happens when shift is negative?

    ......
  24. Thread: Erasing

    by Guysl
    Replies
    4
    Views
    871

    The following post might help:...

    The following post might help:
    http://www.codeguru.com/forum/showthread.php?t=300630

    Regards,
    Guy
  25. Replies
    23
    Views
    1,705

    An object instance allows everyone to "mess" its...

    An object instance allows everyone to "mess" its public member, like a program that allows everyone to "mess" its globals.
Results 1 to 25 of 648
Page 1 of 26 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