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

Search:

Type: Posts; User: sdcode

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    756

    Re: ssh and ftp/tftp library?

    thanks for that.

    A colleague suggested I just stream data and files over an SSL connection since we own third party libraries for doing so. I'm looking into that and keep ssh as a backup, so any...
  2. Replies
    2
    Views
    756

    ssh and ftp/tftp library?

    Hey all,

    I haven't done visual programing in many years so I am a bit rusty. I have visual studio 2010. I want to write a gui program that will make an ssh connection and send commands over ssh. I...
  3. Replies
    5
    Views
    671

    Re: Having trouble with implentation file

    what is the error?
  4. Replies
    33
    Views
    2,705

    Re: C++ Templates: The Complete Guide

    I think you should use whatever compiler the book recommends. If it doesn't recommend any, then find a book that does. In my experience, visual has a lot of unique quirks that are learned with...
  5. Replies
    2
    Views
    1,533

    Re: Difference between filestream and filebuf

    never knew about the *buf classes. Googling it tells me the difference is that stringstream is a class for "users" and stringbuf is a class for "developers." In other words if you want to develop...
  6. Replies
    12
    Views
    883

    Re: Class Definition header-source problems

    I am lost. Templates are implemented in the .h file, not .cpp.
  7. Thread: do-while loop

    by sdcode
    Replies
    5
    Views
    657

    Re: do-while loop

    w3rd is correct then. The digit is buffered and gets picked up by the next cin. So if you typed y7y6y5, you'd have the area of the radii 7, 6, 5.

    I think there is a way to stop this. Flushing cin...
  8. Re: Reading Jpeg and Converting to HBITMAP - Help

    sounds like an API issue and not a c++ issue. Go back to the .dll vendor and ask for support is my best suggestion. Secondly, why not convert the jpg to a gif or bitmap?
  9. Thread: do-while loop

    by sdcode
    Replies
    5
    Views
    657

    Re: do-while loop

    I am confused, can you show the complete output?
  10. Replies
    5
    Views
    697

    Re: Templates and inheritance

    It is definitely possible. Syntax looks okay. I usually typedef template instantiations.


    typedef A<int> AInstantiation;

    class B : public AInstantiation


    Not sure if it makes a difference.
  11. Replies
    3
    Views
    605

    remove debug statements

    Is there a way to remove debug statements (usually protected by #defines) from the source code?

    I guess it would depend on the source code editor, but has anyone found a way to do this?
  12. Replies
    3
    Views
    534

    Re: templates and function callbacks

    Haven't tested it yet but I think it'll work. the answer is to pass class types as template parameters and then the class object pointer and function reference to the constructor parameters. I guess...
  13. Replies
    3
    Views
    534

    Re: templates and function callbacks

    Thanks! I am not allowed to use boost, but I am looking through it to try to steal some ideas.

    I think I am getting there. I realized I need to pass the class type as a template argument. And then...
  14. Replies
    3
    Views
    534

    templates and function callbacks

    This is a bit convoluted...
    There is existing code for an observer pattern. There is a data repository class. There is a data observer super class with an update() function. Usually I derive from...
  15. Replies
    6
    Views
    645

    Re: functor or extractor for a vector question

    Thanks. I got stuck and came back to see your post. Unfortunately I had done things in reverse. For some reason this stuff is counter intuitive for me right now.

    If speed is a concern, which it is...
  16. Replies
    6
    Views
    645

    Re: functor or extractor for a vector question

    thanks I think that is what I was looking for. The key being using pointers and value_type which I had never used. Let me see if I can code this now.
  17. Replies
    6
    Views
    645

    functor or extractor for a vector question

    I'm new to functors (still trying to grasp the concept) and I wanted to know if I can do the same as the following code with a functor? It basically converts a vector of a two item struct into two...
  18. Re: math function on individual struct attributes in an array

    Yes I'd like to separate into multiple containers. But the data is all related by a time value (history). Which has a fair bit of processing, so I would have to duplicate that processing I think....
  19. Re: math function on individual struct attributes in an array

    Interesting. I would make the operator() for the extractors return different types for my individual case instead of double. For the MedianCalculator operator() shouldn't it return a bool instead of...
  20. Re: math function on individual struct attributes in an array

    how would I sort only the b data? For example,

    A a[] = {{1, 3}, {3, 2}, {2, 1}};
    so that the answer is {1,1}, {3, 2}, {2,3}.
  21. Re: math function on individual struct attributes in an array

    I have comparison functions for that. I use them as the third argument for std::sort(). I am not allowed to use boost.

    The algorithms works, I just want a more elegant and generic way of doing...
  22. Re: math function on individual struct attributes in an array

    sorry that what I said was a bit confusing. I don't want the median of the the sum of dataA and dataB. The data is not related in that way, it is just data gather at the same point in time from two...
  23. math function on individual struct attributes in an array

    I have a couple of struct:



    struct MyData_t
    {
    int dataA;
    int dataB;
    }
  24. Replies
    23
    Views
    11,671

    Re: how to implement c++ table lookup?

    hmmm I don't want the proxy class. So that means I need to do it spedos way as map<pair<int,int>, int> ??

    I tried to get it to work without the proxy class and here is what i came up with that...
  25. Replies
    23
    Views
    11,671

    Re: how to implement c++ table lookup?

    thanks for the warning.

    my code looks like this:


    int GetValueAt(int x,int y)
    {
    return table[x][y];
    }
Results 1 to 25 of 38
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center