Migrating from VS2003

  • Thread starter Thread starter GW
  • Start date Start date
G

GW

Hi, I'm migrating a bit of code from VS2003 and after importing
into VS2005, i'm getting a whole load of errors even before
compiling
Public Const RegDword = 4

gives Varaible Declaration without an 'As' clause; type of Object assumed

I'm just starting off so could with a bit of help.Thanks
 
That compiled under VS03? It's telling you that you didn't give it a type -
it doesn't know if it's an Integer, Long, Float, Double or whatever. Should
be

Public Const RegDword As Integer = 4
 
Thanks Chris, sorry i'm new to this. I have one more error that is
bothering me, is this something to do with libraries not set up right

Error 169 'MsgBox' is ambiguous between declarations in Modules
'Microsoft.VisualBasic.Interaction' and 'Microsoft.VisualBasic.Interaction'.
D:\DIB\Trunk\DIB Scan\modTag.vb 209 13 UMU Scan
 
Instead of MsgBox, use System.Windows.Forms.MessageBox.Show(...)

( MsgBox should have also worked but it looks like your project has some
issue with its references and/or imports statements )

Cheers
Daniel
 
Back
Top