Show the code that calls the dll file.
Type: Posts; User: darren78
Show the code that calls the dll file.
A static class allows you to access it's methods without having to create an instance of the actual class.
For example, if you want a group of helper functions/methods that you can use across the...
I've never used C, but looking at your code, I notice that your palindrome function returns an int in the function signature yet, it never actually returns an int?
For a palindrome, I would use a...
Have you ever dealt with regular expressions? Google it and you should be able to find a regular expressions that will allow you to extract text only and use the C# support for Regex....
Regular...
Are they referencing the correct Excel and Core references? If my memory serves me right there are different versions of these, such as 12.0 and 5.0 (i think). Not sure if that would make the...
You have declared the functions signature as such:
bool Match(char Lc, char Rc)
So you need to pass in Lc and Rc when you call the function.
You are not passing any arguments to Match.
I sure did.....Friday afternoon over here! It's been a long week :)
Can you not have an array of a user-defined type?
So
Struct cards {
int suit;
int card;
};
array[52] cards;
Yeah, when I said it makes it look neater, I did mean for seperating code. I tend to put a brief comment about each method/function and this splits it up nicely.
I use Programming C' 4.0 from O'Reilly. It's a good book, not so much for beginners, but it does teach Database connectivity.
When you say database programming, I would suggest you keep in mind,...
Hi,
I was wondering what peoples thoughts wereon commenting style. Since I have been working commercially, I have noticed a few variations. From the simple
// comment
void method()
Have a look at using switch statements as well. They are often the better choice compared to multiple if-else statements.
Fixed: I had dataGridView1.AutoGenerateColumns = false;
Hi,
I have a datagridview that is populated dynamically to a datatable, when the user clicks on a certain area.
When they click on another area, the datagridview needs to display a completely...
I have a winform application that can catch any number of possible errors. I have found though, that once a messagebox or some other method of displaying the error has been displayed (within a catch...
Thanks again. I will have a read up on what you have advised.
It is a personal project more than anything. I am a University student, and I want to build up an online portfolio of work that I...
Hi,
And thanks for the response. The function is for the Julia Set, used for an example.
I was looking to allow the user to type in a fractal equation and then to parse that to obtain the x,y...
Hello,
As a small side project, I am going to have a go at makeing a Fractal generator using C++ and SDL.
I just wanted to check with somebody that knows about Fractals. Am I correct in my...
Hi,
I am copying the contents of an Excel file onto the Clipboard within a program I have written. I can then use that data in memory rather than 'chatting' constantly with Excel.
When I have...
That's incorrect. If, when you create an instance of a class, you need to initialise data members, then you need to declare a constructor. Otherwise the information stored in the memory locations...
Okay, so you are using class methods, it's slightly different and there are a few things wrong here.
I guess my using car[2] you are wanting to create and store multiple car objects. I would...
I am going out now so won't be able to help any further this evening. Have a read up on Cprogramming.com Tutorial: Functions and also do a google search for functions and passing parameters. There...
Show what changes you have made and the errors you are getting.
You need to pass the car object into the function.
So the function would look like:
void listModified(warehouse car)
{
//do stuff
}
You could then create your car object in main as you...