mcs26
asked on
Issues creating C Sharp Dll in .Net
Hi,
I am trying to mkae my first dll in .net using C#. I am having a few issues a the moment.
I have attached a word document which outlines the issues I am having. The file contains screen shots and hopefully explains it better than I could do here.
Thanks for any help,
Mark
SimpleCalc.doc
I am trying to mkae my first dll in .net using C#. I am having a few issues a the moment.
I have attached a word document which outlines the issues I am having. The file contains screen shots and hopefully explains it better than I could do here.
Thanks for any help,
Mark
SimpleCalc.doc
ASKER
Hi Fritz,
Thanks for the reply. I need the C# DLL to be used by other Microsoft Office applications - Excel & Access. Do you know where I'm going wrong?
Cheers
Thanks for the reply. I need the C# DLL to be used by other Microsoft Office applications - Excel & Access. Do you know where I'm going wrong?
Cheers
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have already ticked the "Sign the assembly" box. I did not give it name for the key file though, is this needed?
I looked in the Registry Editor and found the GUID of my class (see the screen shot) but there are only two files there. (Default) & Version.
Registry.doc
I looked in the Registry Editor and found the GUID of my class (see the screen shot) but there are only two files there. (Default) & Version.
Registry.doc
Try following the steps in this article, http://support.microsoft.com/kb/817248. Maybe it would make a difference.
1. Create a Class Library project in Visual Studio called "SimpleCalc".
2. Rename Class1 to "Calc"
3. Copy this code into the code editor.
4. Lastly, buid the code and you will find a SimpleCalc.dll in your bin/Debug folder of your project folder.
You can use this DLL from any .NET executable or even another .NET dll.
Open in new window