Search:

Type: Posts; User: TankCDR

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    2,543

    I tried the simple string output and the .dll...

    I tried the simple string output and the .dll file blew up with many errors. So I changed it to just return a simple int (see below)

    [code]
    // This is the main DLL file.

    __declspec(dllexport)...
  2. Replies
    11
    Views
    2,543

    I did not try what you typed in the last post yet...

    I did not try what you typed in the last post yet but I thought that I would relay an interesting point. The problem does not have anything to do IntPtr in C#. I took out passing the variable...
  3. Replies
    11
    Views
    2,543

    That fixed all the errors. I had my fingers...

    That fixed all the errors. I had my fingers crossed when I tried to run it. It filled the left listbox with the unsorted array and bombed on the right listbox sayin that "an unhandled exception has...
  4. Replies
    11
    Views
    2,543

    I posted the C++ code above. It was just a simple...

    I posted the C++ code above. It was just a simple bubblesort. If you are asking for the entire .dll file, I don't know if I can copy the entire thing. If you create a new project and tell .NET it is...
  5. Replies
    11
    Views
    2,543

    multiple language project

    I am trying to figure out how to properly construct a multi-language project. A simple one, and no it is not homework, such as a VB or C# form with a button and 2 listboxes. When the button is...
  6. Replies
    3
    Views
    1,201

    Multi Language projects

    In every programming class that I have taken in the .net environment, they all say that you can write programs in different langauges but none say exactly how to do it. If I wanted to do the graphics...
  7. Replies
    3
    Views
    1,556

    passing objects

    I was trying to pass by reference but am open to ideas. I believe that once I get the comcept down I can expand from there. Anyway, here are the function declarations for the functions that are not...
  8. Replies
    3
    Views
    1,556

    Passing Objects using menus

    Can anyone please explain/point out a good example of how to create and pass object(s) using a menu. I seem to find this a hard concept to fully understand. I will post the menu portion of my code...
  9. Replies
    6
    Views
    4,248

    Pointers/Linked lists

    I really have a tough time with pointers and linked lists. I understad the logic behind them to a point. But in all my C/C++ classes, we never really do more than briefly touch on them. Can anyone...
  10. Replies
    6
    Views
    4,248

    Porblem Solved

    Thank all of you for responding. Rog, your comments were the perfect example of pointing a struggling programmer in the right direction without doing the work for them. For that I am thankful, but...
  11. Replies
    6
    Views
    4,248

    Selection Sort on 2-D character array

    I hope that I posted this correctly. If not, please forgive me. The below program creates a 2-D character array, displays the unsorted values, calls the selectSort function to sort the array, and...
  12. Replies
    4
    Views
    891

    Loading/Saving Objects

    I have a base class "Animal", it has two derived classes, "Dog" and "Cat".

    As my program creates new objects during its run, how would you save an Object, or Load an object once it has been saved?...
  13. Replies
    5
    Views
    3,226

    RE: Code Tags

    I read the post on code tags and did not the:

    [tag]




    [end tag]

    on the sample code. As I see it, the code tags are to help make the code readable. Indentation and whitespace also...
  14. Thread: Class question

    by TankCDR
    Replies
    4
    Views
    878

    Not exactly what I was looking for

    This would allow me to combine the 2 methods into 1. But would that allow me to use the getset method to access 'any' of the 3 public members?

    How would I identify which private member.
  15. Thread: Class question

    by TankCDR
    Replies
    4
    Views
    878

    Class question

    Given the following class:


    class counting
    {
    private:

    int countA;
    int countB;
    int countC;
  16. Replies
    5
    Views
    3,226

    Character counting program

    I am working or trying to figure out what the best way would be to count different characters in a file.


    I need to open a file, read the file 1 character at a time, counting the different...
  17. Replies
    5
    Views
    1,851

    Problem solved

    The last post was correct. I did have to add "Public" to my Dog class declaration.

    The problem has been solved and I am posting this to help anybody who was reading my problem and might have a...
  18. Replies
    5
    Views
    1,851

    Code Tags

    What are code tags? I placed extra comments in main. What more could I do to make it more readable?
  19. Replies
    5
    Views
    1,851

    Classes & Inheritance

    This is a simple Animal class. The Dog class inherits from the Animal class. I have to show functions. The 1st one (belonging to the Animal class seems to work fine). The 2nd show function seems...
  20. Thread: debug error

    by TankCDR
    Replies
    10
    Views
    1,439

    Thanks

    Thanks to all who helped in this little problem. Thanks especially to swoopy, the suggestion to change the length of len (from 7 to 8) to allow for the '\0' worked. The program works fine now. I...
  21. Thread: debug error

    by TankCDR
    Replies
    10
    Views
    1,439

    Destructor called

    That is a logical conclusion, but if that is the problem, what is the solution?
  22. Thread: debug error

    by TankCDR
    Replies
    10
    Views
    1,439

    Where the bug is

    The program crashes as it exits the callme1() function. I am not sure why. A similar example works.
    Alan
  23. Thread: debug error

    by TankCDR
    Replies
    10
    Views
    1,439

    animal.hpp file for debug error

    Could not upload the header file because it is an .hpp file and not just a .h file. so here it is:


    #ifndef ANIMAL_HPP
    #define ANIMAL_HPP

    // sets constants
    //const int ANIMAL_NAME =...
  24. Thread: debug error

    by TankCDR
    Replies
    10
    Views
    1,439

    Animal.cpp file for debug error

    here is the animal.cpp file

    Will attach the animal.hpp file on the next post.

    If you know how to attach more than one file with just a single post let me know.

    Thanks,
    Alan
  25. Thread: debug error

    by TankCDR
    Replies
    10
    Views
    1,439

    debug error

    I am running a simple program dealing with an Animal class. I have the program working (no errors and no warnings); however, when I run the program I get the following error:...
Results 1 to 25 of 37
Page 1 of 2 1 2