Re: VB and Weather station



"Tim" <tnieuw@xxxxxxxxxxx> wrote in message
news:431afe5c$0$11062$e4fe514c@xxxxxxxxxxxxxxxxx
> Hi Mike
>
> Thanks for the info and I also saw these solutions. All of them are older
> solutions that won't work with my weather station. I am still working with the
> DLL but untill now witn any succes.
>
> Tim
>
> "mscir" <mscir@xxxxxxxxx> schreef in bericht
> news:cMCdnZ2dnZ0HqUz5nZ2dnU6EhN6dnZ2dRVn-yp2dnZ0@xxxxxxxxxxxxxxxxx
>> Tim wrote:
>>
>>> Hi
>>>
>>> I want to make my own (web)interface for my Davis Avantage Pro 2 Weather
>>> station. Does anyone have done this before. Davis supplies a DLL for these
>>> things but is only for the C/C++ languages.
>>>
>>> Thanks in advance
>>> Tim

You should be able to work with the DLL that is "only for C/C++", if you create
the correct set of declarations in your VB program. The declarations look like
this, which is a Windows API call example:

Declare Function SetCurrentDirectory Lib "kernel32" Alias "SetCurrentDirectoryA"
(ByVal lpPathName As String) As Long

The "kernel32" part is the name of the DLL containing the function, and
SetCurrentDirectoryA is the name of the function in the DLL.

If you are not sure of the declaration required, post the C/C++ declarations
that are exported by the DLL. There are some people on this site who can then
tell you what the corresponding declarations in VB should be.





.



Relevant Pages

  • Re: Use existing C code in C# application
    ... way is to create a .NET Class Library using Managed C++ and wrap calls to ... "Win32 Project" and select DLL as the type of project. ... create a header file and wrap the exported function declarations as so: ... DllImport in your C# applications in order to call your exported function ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: [newbie]Calling eVc4++ dll from .NET application
    ... The OpenNETCF Smart Device Framework, found at www.opennetcf.org, has tons ... of platform invoke (P/Invoke) declarations that you might use as examples. ... > I've developed a very simple dll using eVc4++ ...
    (microsoft.public.windowsce.app.development)
  • Re: convert an MFC application to MFC DLL
    ... This suggests that there are too many global variables. ... All the header files which contain extern ... Once the variables are in the DLL, they cannot be accessed by the main program. ... The whole notion that there is a "single" main.cpp which contains the declarations of the ...
    (microsoft.public.vc.mfc)
  • Re: Random file access -cont
    ... You can call anything in any DLL anywhere on the device, ... write your own declarations. ... wrappers for Win32 API functions. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Problem in the calling the dll functions
    ... Some other reasons are possible, ... into the application and the DLL as possible (at least, trace all function calls). ... Check that all DLL functions are properly declared, and the declarations ...
    (microsoft.public.dotnet.languages.vc)