Windows Develop Bookmark and Share   
 index > Windows Forms General > Creating a DLL for use in other projects
 

Creating a DLL for use in other projects

Hi,
I actually want to create a simple dll and function for use in a Powerbuilder and a Delphi application. I can create the dll file no problem, but the function is in a class (don't know any other way of creating a function) and I am having problems referencing the function.

Any help would be appreciated.

Derek.
Derek Coulahan
Derek Coulahan  Tuesday, September 15, 2009 10:32 AM
.NET is an object oriented framework. This means that every function that is ever created within .NET will ultimately reside within a class. There's no way around this. Even some of the languages that appear to allow functions outside of classes ultimately place "pseudo-classes" around the functions at compile-time. So yes, a function in .NET has to be in a class.
Coding Light - Illuminated Ideas and Algorithms in Software
Coding Light Wiki �LinkedIn �ForumsBrowser
David M Morton  Tuesday, September 15, 2009 1:02 PM
I think better option would be to post your question on Powerbuilder or delphi forum, where a powerbuilder or delphi developer could answer your question more easily.
Gaurav Khanna
Khanna Gaurav  Tuesday, September 15, 2009 10:42 AM
ok but how would I go about creating a dll file for use in any other development environment? Do you know if it has to be in a class? Thanks for the reply btw.
Derek Coulahan
Derek Coulahan  Tuesday, September 15, 2009 12:59 PM
.NET is an object oriented framework. This means that every function that is ever created within .NET will ultimately reside within a class. There's no way around this. Even some of the languages that appear to allow functions outside of classes ultimately place "pseudo-classes" around the functions at compile-time. So yes, a function in .NET has to be in a class.
Coding Light - Illuminated Ideas and Algorithms in Software
Coding Light Wiki �LinkedIn �ForumsBrowser
David M Morton  Tuesday, September 15, 2009 1:02 PM

You can use google to search for other answers

Custom Search

More Threads

• mdiForm Taskbar
• If Windows Explorer used a bit more of Multi-Threading!
• Saving Image - A generic error occurred in GDI+
• SQL: INNER JOIN at condition
• retrieve selected values from dynamic dropdownboxes
• Colour in the data grid
• Creating ASP.NET Pages With Winforms from ASP.NET Template
• Combobox with display member and value???
• invalid operation exception
• How to retrieve data from this?