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)...
Type: Posts; User: TankCDR
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)...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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?...
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...
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.
Given the following class:
class counting
{
private:
int countA;
int countB;
int countC;
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...
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...
What are code tags? I placed extra comments in main. What more could I do to make it more readable?
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...
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...
That is a logical conclusion, but if that is the problem, what is the solution?
The program crashes as it exits the callme1() function. I am not sure why. A similar example works.
Alan
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 =...
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
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:...