Search:

Type: Posts; User: dudeomanodude

Page 1 of 16 1 2 3 4

Search: Search took 0.02 seconds.

  1. Well for anyone who is interested I've worked one...

    Well for anyone who is interested I've worked one solution out (not to say it's the best solution though)

    MyDll.h:


    extern "C"{

    class __declspec(dllexport) MyClass{

    public:
  2. Help with using c++ class called with P/Invoke

    Hi,

    I've successfully been able to call C++ function into my C# ASP.NET application using P/Invoke. However, calling and using c++ classes from my DLL has been quite troublesome. Here is a small...
  3. Replies
    9
    Views
    1,236

    btw, it's disgusting how good you guys are.

    btw, it's disgusting how good you guys are.
  4. Replies
    9
    Views
    1,236

    matsp's example was what i was looking for,...

    matsp's example was what i was looking for, thanks. i understand how static init is more efficient, but it's not something fun to play around with ;)
  5. Replies
    9
    Views
    1,236

    That gives me the following output: 1 1 1 1...

    That gives me the following output:


    1 1 1 1 1 1 1 1 1
    2 2 2 2 2 2 2 2 2
    3 3 3 3 3 3 3 3 3
    4 4 4 4 4 4 4 4 4
    5 5 5 5 5 5 5 5 5
    6 6 6 6 6 6 6 6 6
    7 7 7 7 7 7 7 7 7
  6. Replies
    9
    Views
    1,236

    I'm exploring some options using java swt to...

    I'm exploring some options using java swt to provide the gui for an app whose nuts and bolts are in c++. as a small example, i began playing around with creating a very simplistic sudoku game. to...
  7. Replies
    9
    Views
    1,236

    just for fun...

    Here's a little problem I came across. If you have the time and are interested...

    Populate a 2-D array exactly as shown below:


    1 2 3 4 5 6 7 8 9
    2 3 4 5 6 7 8 9 1
    3 4 5 6 7 8 9 1 2
    4 5 6...
  8. Well I have a lot to consider here. My original...

    Well I have a lot to consider here. My original idea (whether anyone finds it useful is beside the point), was to create a generic representation of cards, and a deck of cards that would allow a user...
  9. I'm still getting the privacy issues even after...

    I'm still getting the privacy issues even after implementing the member swap to swap around members:


    void Foo::m_swap( Foo& f ){
    int temp_value = this->m_value;
    this->m_value = f.m_value;...
  10. Okay, I'm with you on that one. So,...

    Okay, I'm with you on that one.


    So, basically I can't extend std::swap if I plan on keeping copying private?

    And to laserlight,

    Imagine a deck of cards if you will. You can hand those...
  11. No. I've declared both, and implemented both. ...

    No. I've declared both, and implemented both.


    And this is exactly what I'm trying to avoid. If copying goes public, than yes, the copy semantics need to be re-written to make the Bar* null. I...
  12. Two things: 1. I implemented a member swap,...

    Two things:

    1. I implemented a member swap, and it still fails with the private copy ctor, even though the class calling it is a friend. Example:


    class Foo{
    Foo( const Foo& );
    ...
  13. I think I'll just reimplement the copy ctor to...

    I think I'll just reimplement the copy ctor to avoid what it is i'm trying to avoid...
  14. Because it's being called by another class which...

    Because it's being called by another class which has a container of the class in question. Basically like this:


    class Foo{
    private:
    Foo( const Foo& );
    };

    class Bar{
    std::vector<Foo>...
  15. Well I'd rather not re-implement "swap" since the...

    Well I'd rather not re-implement "swap" since the one in <algorithm> does exactly what I want it to.

    and why would i want to declare another namespace called std?
  16. Replies
    5
    Views
    1,630

    sounds like you dowloaded the wrong package from...

    sounds like you dowloaded the wrong package from SourceForge. You need to get DevC++ with the MinGW compiler. DevC++ itself is NOT a compiler. It's what's called an IDE (Integrated Development...
  17. std::swap( _Tp&, _Tp& ) calling copy constructor

    I've made the copy constructor private in one of my classes and i'm getting a compiler error informing me that std::swap is trying to call the copy constructor.

    is there a way to make the...
  18. Replies
    18
    Views
    7,287

    If I'm not mistaken, the TI...

    If I'm not mistaken, the TI derivative/anti-derivatives solving methods rely on approximations when the answer can't be obtained by the logic programmed into these methods.

    In other words, where...
  19. Replies
    18
    Views
    7,287

    The TI does it sure, but often what it spits out...

    The TI does it sure, but often what it spits out is not the answer you would expect nor does it look like what you would get by finding the answer with pen and paper.

    well, i'm sure they've got...
  20. Replies
    18
    Views
    7,287

    About your question on how to allow the user to...

    About your question on how to allow the user to enter the polynomial, that's easy and there's a number of ways to do it.

    In school I once had to program that did different operations on...
  21. Replies
    18
    Views
    7,287

    The approximations of either are easily handled...

    The approximations of either are easily handled by a computer. However, as someone else suggested, finding the symbolic answer is not easy (it's nearly impossible for most humans to program that).
    ...
  22. Worked like a charm! I didn't go with the forward...

    Worked like a charm! I didn't go with the forward declaration because it failed in another (similar) problem I was having, so I assumed it wouldn't work for this one.

    Mucho thanks for the private...
  23. Thanks a lot. That definitely solves one of my...

    Thanks a lot. That definitely solves one of my earlier issues, however i really want a pointer to a Foo because I don't want Bar created by different Foos to be equal either -I apologize, I realize I...
  24. looking for better way to do this possibly

    In the following code:


    #include <iostream>

    class Base{};

    class Bar{
    public:
    Bar() : fptr(0) {}
  25. Replies
    2
    Views
    1,206

    circular includes or something

    I need a way to allow my program to do the following, but I can't seem to set things up (either in the includes or elsewhere) to allow it to do this:

    foo.h



    class Status{

    public:
    ...
Results 1 to 25 of 394
Page 1 of 16 1 2 3 4