W
Wake-Up-Jeff
My goal is to create a C# DLL which I can use in other C# applications.
I have built a simple C# DLL which contains:
namespace MyFunctions
class MyClass
public static int Function1(). . .
I include the DLL as a reference in my target Windows Application project.
I also include the statement
using MyFunctions
I then try to call the function from the DLL using
iRC = MyClass.Function1();
When I try to build the application, I get the error messages:
'MyFunctions.MyClass' is inaccessible due to its protection level.
'MyFunctions.MyClass' does not contain a definition for 'Function1'
Could someone please advise what I am doing wrong? Why is the class /
function inaccessible?
I have built a simple C# DLL which contains:
namespace MyFunctions
class MyClass
public static int Function1(). . .
I include the DLL as a reference in my target Windows Application project.
I also include the statement
using MyFunctions
I then try to call the function from the DLL using
iRC = MyClass.Function1();
When I try to build the application, I get the error messages:
'MyFunctions.MyClass' is inaccessible due to its protection level.
'MyFunctions.MyClass' does not contain a definition for 'Function1'
Could someone please advise what I am doing wrong? Why is the class /
function inaccessible?