Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
Hello Pedro, I have used netcdf with VB and got the same error message ("Bad > DLL Calling Convention"). You can suppress this message with "On error resume next". The netcdf functions then work fine for me. In your call to the netcdf function nc_create you should however send string variables ByVal and not ByRef! Hope, this will help you Best regards H.J. Rieger > --- Ursprüngliche Nachricht --- > Von: Pedro Montero Vilar <pmontero@xxxxxxxxxxxx> > An: netcdfgroup@xxxxxxxxxxxxxxxx > Betreff: Problems with netcdf and VBasic > Datum: Thu, 25 Aug 2005 15:21:22 +0200 > > Dear all, > > I wanted to use netcdf.dll in a visual basic program. I have followed > the instructions of a mail in this list titled Netcdf and Visual Basic 6 > and I have built a test program: > > > Public Declare Function nc_create Lib > "c:\windows\system32\netcdf.dll" (ByRef path As String, ByVal mode As > Long, ByVal ncidp As Long) As Long > Public Const NC_NOCLOBBER As Long = 4 > > Sub test() > Dim status As Long > Dim nci As Long > Dim file As String > file = "d:\fozj.nc" > status = nc_create(file, NC_NOCLOBBER, nci) > > End Sub > > Unfortunely, when I have executed this code, VB give me an error: Bad > DLL Calling Convention, so I think the argumets are wrong. Could anybody > help me? Are there anybody who use VB6 and netcdf? > > My netcdf version is 3.6.1 and I have donwload a precompiled dll, called > netcdf.dll > > Thank you in advance, > Pedro Montero > > -- > Pedro Montero > _______________________ > > > Pedro Montero Vilar > E-mail: pmontero@xxxxxxxxxxxx > > Instituto Tecnolóxico para o Control do Medio Mariño (INTECMAR) > R/Peirao de Vilaxoán, S/N > CP: 36611, Vilagarcía de Arousa (Pontevedra) > Tfno.: +34 986512320/22 > Fax: +34 986512300 > > _________________________ > > > > > -- GMX DSL = Maximale Leistung zum minimalen Preis! 2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
netcdfgroup
archives: