Link to home
Start Free TrialLog in
Avatar of mastiSoft
mastiSoft

asked on

Functions with argument in dll

Hi, I'm writing an dll in C#. as long I use functions without argument everything is going fine. Now I have to include function like this
 public void AmChan(int am) to my dll. When I compile code and include dll to the test project this function is invisible; I cannot call it.
But I can see and use functions without argument like this :     public void CleanBuffer(){}
What I'm doing wrong? I use Class Library (.NET Framework).
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

But I can see and use functions without argument like this :     public void CleanBuffer(){}
What I'm doing wrong?

to make things easier, you can include all your projects under one single solution. And then doing the proper link up, and finally rebuild the solution. And then the DLL should be re-compiled and linked properly in the project you're referring to it.
ASKER CERTIFIED SOLUTION
Avatar of Rikin Shah
Rikin Shah
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It sounds like you haven't built your solution. Right-click the solution in the Solution Explorer and click on Build Solution to build your DLL. Perhaps, post a pic here of how your Visual Studio solution is set up and show us where the DLL is that you're referencing.
Is the class that the new function is in itself also public?
Avatar of mastiSoft
mastiSoft

ASKER

Thank you, all of you was right the dll wasn't recompiled. I don't understand why, but now it is works as I need it. ;-)