Re: Differences between VB6 and VB.Net causing problem



On 2008-10-17, Howard G <howgre@xxxxxxxxx> wrote:
Hi, I'm trying to do a control project in VB6. Because I need
additional inputs and outputs, I've bought a Digi-Bee control board,
which comes with a USB interface,

The board also has a software package, which I don't want to use, and
a dll which I do. They also provide code as to how to use the board in
VB.Net. But I want to use VB6.

The manual tells me to install the following lines of code, but they
produce all sorts of errors.

Can someone please suggest what I should be converting them to? I'm
sure they're pretty similar. but while VB.Net would translate them
from VB6, of course, this can't happen the other way around.


VB.NET Integer = VB6 Long
VB.NET Boolean = VB6 Long
`
Declare Function InitDgb Lib "dgb.dll" () As Boolean
Declare Function InitDgb Lib "dgb.dll" () As Long

Declare Function SetOutputs Lib "dgb.dll" (ByVal outputs As Integer) As Boolean
Declare Function SetOutputs Lib "dgb.dll" (ByVal outputs As Long) As Long

Declare Function ReadInputs Lib "dgb.dll" (ByRef inputs As Integer) As Boolean
Declare Function ReadInputs Lib "dgb.dll" (ByRef inputs As Long) As Long

--
Tom Shelton
.



Relevant Pages

  • Where does a newbie start
    ... I've been programming in the old basics and vb6. ... Now I have to move to vb.net (it sounds like part of a grand microsoft plan ... I don't know the vb.net version or software package or good primer book I ...
    (microsoft.public.dotnet.languages.vb)
  • Differences between VB6 and VB.Net causing problem
    ... I'm trying to do a control project in VB6. ... additional inputs and outputs, I've bought a Digi-Bee control board, ... Declare Function InitDgb Lib "dgb.dll" As Boolean ... Declare Function SetOutputs Lib "dgb.dll" ...
    (microsoft.public.vb.general.discussion)