Re: Differences between VB6 and VB.Net causing problem
- From: Tom Shelton <tom_shelton@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 17 Oct 2008 15:17:22 -0500
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 BooleanDeclare Function InitDgb Lib "dgb.dll" () As Long
Declare Function SetOutputs Lib "dgb.dll" (ByVal outputs As Integer) As BooleanDeclare Function SetOutputs Lib "dgb.dll" (ByVal outputs As Long) As Long
Declare Function ReadInputs Lib "dgb.dll" (ByRef inputs As Integer) As BooleanDeclare Function ReadInputs Lib "dgb.dll" (ByRef inputs As Long) As Long
--
Tom Shelton
.
- Follow-Ups:
- References:
- Differences between VB6 and VB.Net causing problem
- From: Howard G
- Differences between VB6 and VB.Net causing problem
- Prev by Date: Re: What is wrong with this code?
- Next by Date: Re: Differences between VB6 and VB.Net causing problem
- Previous by thread: Re: Differences between VB6 and VB.Net causing problem
- Next by thread: Re: Differences between VB6 and VB.Net causing problem
- Index(es):
Relevant Pages
|