DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Compiler Constant to Identify VB.NET versus VB 6.0

Hybrid View

  1. #1
    Larry Rebich Guest

    Compiler Constant to Identify VB.NET versus VB 6.0

    Is there a way to identify that VB.NET is being versus VB 6.0?

    It would be handy to have a compiler constant that causes VB.NET code to be
    generated rather than VB 6.0 code. That way we could use one code base for
    both versions of VB. Something like:

    #If VBNET Then
    .....VB.NET code
    #Else
    .....VB6 code
    #End If

    Cheers,
    Larry Rebich






  2. #2
    Bob Guest

    Re: Compiler Constant to Identify VB.NET versus VB 6.0

    In article <3c04eb2a$1@147.208.176.211>, lrebich@earthlink.net says...
    > Is there a way to identify that VB.NET is being versus VB 6.0?
    >
    > It would be handy to have a compiler constant that causes VB.NET code to be
    > generated rather than VB 6.0 code. That way we could use one code base for
    > both versions of VB. Something like:
    >
    > #If VBNET Then
    > ....VB.NET code
    > #Else
    > ....VB6 code
    > #End If
    >
    > Cheers,
    > Larry Rebich


    IMO, due to the architectural differences between VB6 and VB.NET, this would
    seem to be a truly horrible way to write software.

    Bob

  3. #3
    Frank Oquendo Guest

    Re: Compiler Constant to Identify VB.NET versus VB 6.0

    > That way we could use one code base for
    > both versions of VB.


    The only thing even remotely VB about VB.NET is the syntax. The languages
    are totally different. You might as well try to maintain a single codebase
    for Java/VB. Do yourself a favor and forget the idea.

    --
    Good judgment comes from experience.
    Experience comes from bad judgment.

    http://www.acadx.com


    "Larry Rebich" <lrebich@earthlink.net> wrote in message
    news:3c04eb2a$1@147.208.176.211...
    > Is there a way to identify that VB.NET is being versus VB 6.0?
    >
    > It would be handy to have a compiler constant that causes VB.NET code to

    be
    > generated rather than VB 6.0 code. That way we could use one code base for
    > both versions of VB. Something like:
    >
    > #If VBNET Then
    > ....VB.NET code
    > #Else
    > ....VB6 code
    > #End If
    >
    > Cheers,
    > Larry Rebich
    >
    >
    >
    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center