Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.lang.visual-basic > #19404

VB.NET - Creare DLL

From "Ettore" <ettor50@nomail.com>
Newsgroups it.comp.lang.visual-basic
Subject VB.NET - Creare DLL
Date 2018-07-24 21:19 +0200
Organization A noiseless patient Spider
Message-ID <pj7u4q$ikg$1@dont-email.me> (permalink)

Show all headers | View raw


Buonasera a tutti . (PROVO a CHIEDERE)
Sto facendo un programma di AstroCalcolo .
Devo calcolare il valore di una serie di lunghi dati (Teoria VSOP87) .
Quindi per evitare, ho pensato che mettere i dati in una libreria esterna, che ho chiamato 
"Earthvsop87_lbr.dll"
Dal programma vendono calcolati i dati ---------
E " t2kJDEMIL "

Quindi inserendo in intestazione  nel programma ho inserito
Imports Earthvsop87_lbr
-------------------------------------------------------
Mentre nella DLL
-------------------------------------------------------
Public Class Earthvsop87
    Public Function EarthL00(ByVal t2kJDEMIL As Double)
Dim L0 As Double
        L0 += 1.75347045673
        L0 += 0.03341656453 * Math.Cos(4.66925680415 + 6283.0758499914 * t2kJDEMIL)
        L0 += 0.00034894275 * Math.Cos(4.62610242189 + 12566.1516999828 * t2kJDEMIL)
....ecc..........
EarthL00 = (L0 * 100000000)
Return EarthL00

----------------------------------------
Quindi nel programma devo andare a prendere il valore calcolato
Ma non riesco a capire cosa mettere ... mi sono bloccato nel ragionamento
Cioe' Dal programma il valore " t2kJDEMIL "  e' calcolato !
Richiedo il risultato di Return EarthL00 (ideale 14 cifre dopo virgola , come si fa ?) 
Pensavo a String.Format("{0:f14}", EarthL00) MA COME ?

La libreria chiamata calcola il valore e come lo richiamo nella textbox ??????????????????
Non capisco come prende il valore "t2kJDEMIL" la libreria.
Nel programma. ..................
" Dim Add As New Earthvsop87 "
??
??
txtEarthL00.Text = Add.EarthL00

Su EarthL00 , appare righetta rossa. Dicendo che l'argomento non e' stato specificato per 
il parametro "t2kJDEMIL"

Suggerimenti o aiuti da chi lo fa per lavoro e passione
GRAZIE

Back to it.comp.lang.visual-basic | Previous | NextNext in thread | Find similar


Thread

VB.NET - Creare DLL "Ettore" <ettor50@nomail.com> - 2018-07-24 21:19 +0200
  Re: VB.NET - Creare DLL Luca D <antaniserse@yahoo.it> - 2018-07-24 15:58 -0700
    Re: VB.NET - Creare DLL "Ettore" <ettor50@nomail.com> - 2018-07-25 16:27 +0200
    Re: VB.NET - Creare DLL [SOLUIZIONE] "Ettore" <ettor50@nomail.com> - 2018-07-25 19:48 +0200
      Re: VB.NET - Creare DLL [SOLUIZIONE] "Ettore" <ettor50@nomail.com> - 2018-07-25 19:55 +0200
      Re: VB.NET - Creare DLL [SOLUIZIONE] Luca D <antaniserse@yahoo.it> - 2018-07-25 14:56 -0700
        Re: VB.NET - Creare DLL [SOLUIZIONE] "Ettore" <ettor50@nomail.com> - 2018-07-26 19:52 +0200
          Re: VB.NET - Creare DLL [SOLUIZIONE] Franz_aRTiglio <franzgol@N0SPAMtin.it> - 2018-07-26 20:38 +0200
          Re: VB.NET - Creare DLL [SOLUIZIONE] Luca D <antaniserse@yahoo.it> - 2018-07-26 15:17 -0700

csiph-web