Ciao a tutti.

Avrei una domanda molto basilare.
Come posso creare una dll con Visual Studio 2010 ?
Questa dll dovrebbe contenere una simplice funzione FPUBPricePC che in argomento prende una String e restituisce un Single.

Alla verità ho già fatto un test creando una "Class Library", ecco il codice:

Public Class Class1
Public Function FPubPricePC(ByVal stPC As String) As Single
Dim sPricePC As Single
If Left(stPC, 1) = "H" Then
sPricePC = 2000
Else
sPricePC = 0
End If
FPubPricePC = sPricePC
End Function
End Class

Dopo il build provo per esempio di utilizzare la dll in Excel/VBA aggiugendola ai riferimenti ma la dll risulta non valida.

Qualcuno ha un suggerimento ?
C'è un tutorial in giro ?

Grazie.