> Not to solve an existing problem. Actually, i'm looking an all-in-one
> DLL sample that covers all issues (functions, properties get - set and
> more i wish to know) to learn what a DLL's anatomy is all about.
> > Not to solve an existing problem. Actually, i'm looking an all-in-one
> > DLL sample that covers all issues (functions, properties get - set and
[quoted text clipped - 15 lines]
> --
> Patrice
Patrice, i knew a DLL's mission / position (bunch of classes, can be
included also in exe and can be called from an exe by referencing and
importing), BUT the thing i wish to see is a real and "all-in-one"
class library CODE sample which is in a educational and summarizing
way. BTW, i've downloaded VB version 8 language specification document
because i only have VB 2005 to test and apply.
Thanks anyway.
Patrice - 12 Mar 2008 13:47 GMT
> i wish to see is a real and "all-in-one"
> class library CODE sample which is in a educational and summarizing
> way
Ok sorry. I doubt you'll find this as generally you study language features
one by one rather than all at once.
The reference part also shows short sample code (btu for each feature
separately). For example
http://msdn2.microsoft.com/en-us/library/sect4ck6.aspx shows a function
sample such as :
Function myFunction(ByVal j As Integer) As Double
Return 3.87 * j
End Function
--
Patrice
rowe_newsgroups - 12 Mar 2008 14:24 GMT
> the thing i wish to see is a real and "all-in-one"
> class library CODE sample which is in a educational and summarizing
> way.
I'm really confused. A dll can be as simple as the following code:
////////////////////
Public Class Foo
End Class
///////////////////
If compiled as a library, it will give you a .NET dll that can be used
by any .NET application. That's as simple as it can get, the process
isn't complicated.
Even though that answers the question you asked, I seriously doubt it
answers the question you meant to ask. If that's the case, then let me
ask you this:
What exactly do you plan on accomplishing with a dll?
If I know what you are looking for and why, it will give me a chance
to give you a good, helpful answer.
Thanks,
Seth Rowe [MVP]
kimiraikkonen - 12 Mar 2008 14:48 GMT
> > the thing i wish to see is a real and "all-in-one"
> > class library CODE sample which is in a educational and summarizing
[quoted text clipped - 24 lines]
>
> Seth Rowe [MVP]
Seth,
I was just trying to figure out what a dll consists of all about.
Patrice's statement links on MSDN are quite good. Explains a dll's
architecture good. I usually used to code in interaction with design
mode (like double clicking controls and their events, subroutines,
built-in functions etc.) with just one class named Form1 :-)
That's why i wanted to learn and extend coding class libraries
manually like in a dll. That's why i needed to know all the things
between "Public Class Foo" and "End Class" like in your class. I hope
i explained enough clear.
Thanks
kimiraikkonen - 12 Mar 2008 14:50 GMT
> > the thing i wish to see is a real and "all-in-one"
> > class library CODE sample which is in a educational and summarizing
[quoted text clipped - 24 lines]
>
> Seth Rowe [MVP]
For example a good answer to my question:
(Hope to see more)
http://msdn2.microsoft.com/en-us/library/wa0hwf23.aspx
rowe_newsgroups - 12 Mar 2008 15:30 GMT
> > > the thing i wish to see is a real and "all-in-one"
> > > class library CODE sample which is in a educational and summarizing
[quoted text clipped - 29 lines]
>
> http://msdn2.microsoft.com/en-us/library/wa0hwf23.aspx
Yeah, that's basically the language spec that Patrice was talking
about. That isn't specific to a dll, but general to everything written
in Visual Basic.NET. As far as the IDE goes, you still should be able
to use the Form designer, I've written a few dlls that expose forms /
usercontrols and I used the ide to lay out the visual components.
Really all a dll is is just a way of deploying code. Dll's can only be
used by other applications, they basically just contain common code
that you want to distribute to be used by other applications.
Thanks,
Seth Rowe [MVP]