Differences between VB6 and VB.Net causing problem



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.

Declare Function InitDgb Lib "dgb.dll" () As Boolean
Declare Function SetOutputs Lib "dgb.dll" (ByVal outputs As Integer)
As Boolean
Declare Function ReadInputs Lib "dgb.dll" (ByRef inputs As Integer) As
Boolean

Thanks in anticipation
Howard
.



Relevant Pages

  • Re: Differences between VB6 and VB.Net causing problem
    ... But I want to use VB6. ... Declare Function InitDgb Lib "dgb.dll" As Boolean ... Declare Function SetOutputs Lib "dgb.dll" ...
    (microsoft.public.vb.general.discussion)
  • Re: Differences between VB6 and VB.Net causing problem
    ... But I want to use VB6. ... Declare Function InitDgb Lib "dgb.dll" As Boolean ... Declare Function SetOutputs Lib "dgb.dll" ...
    (microsoft.public.vb.general.discussion)
  • Re: Differences between VB6 and VB.Net causing problem
    ... which is why I raised the very issue about not being able to assume the true state is actually equal to -1 is very real. ... First and foremost that assumption has been proven here to be wrong even within VB6 has it not? ... The difference in VB.NET is if you then do a CInt on that compromised boolean you do get -1, so the bitwise operations don't have the same problems. ...
    (microsoft.public.vb.general.discussion)
  • Re: Differences between VB6 and VB.Net causing problem
    ... It is 16 bit in Vb6. ... Take note, I did not say a Boolean is 32 bits, I said True is 32 bits. ... they use -1 again when converting to a Long type. ... As for documentation, in VB5, I put the cursor on "True" and hit ...
    (microsoft.public.vb.general.discussion)
  • How does VB6 create OCA Files ?
    ... I know that VB6 extends the controls with standard functionality. ... What I don't understand is the way it assignes names to the newly created oca libs ... But when I take a commercial 3rd-party lib VB6 crates an oca with a different lib name. ... I noticed that the coclass for the control I created has an 'control' attribute. ...
    (microsoft.public.vb.controls)

Loading