Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. .inc files in vb.net

.inc files in vb.net

Scheduled Pinned Locked Moved Visual Basic
csharpc++questionannouncement
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bijju_home
    wrote on last edited by
    #1

    Hello, In previous version of vb we used to use .inc files like .h files in c++, how is the changed in vb.net ? Thanks for your reply :-)

    G R 2 Replies Last reply
    0
    • B bijju_home

      Hello, In previous version of vb we used to use .inc files like .h files in c++, how is the changed in vb.net ? Thanks for your reply :-)

      G Offline
      G Offline
      Gerry D
      wrote on last edited by
      #2

      Use "imports", e.g., "imports system.io" Gerry

      B 1 Reply Last reply
      0
      • B bijju_home

        Hello, In previous version of vb we used to use .inc files like .h files in c++, how is the changed in vb.net ? Thanks for your reply :-)

        R Offline
        R Offline
        Ray Cassick
        wrote on last edited by
        #3

        You used .inc files in pervisous versions of VB? Are you sure?


        Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
        George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things."


        D 1 Reply Last reply
        0
        • G Gerry D

          Use "imports", e.g., "imports system.io" Gerry

          B Offline
          B Offline
          bijju_home
          wrote on last edited by
          #4

          Hello gerry, I am a C++ programmer, now in the world of VB.net as in c++ world where we have .h files where we define the integer,string...array etc, is there some thing in vb.net world. where I could define all constants and global variables and include them in all files. or should all of them be defined in a module and include that module in the project while compiling. bijju

          G 1 Reply Last reply
          0
          • R Ray Cassick

            You used .inc files in pervisous versions of VB? Are you sure?


            Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
            George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things."


            D Offline
            D Offline
            Daniel Turini
            wrote on last edited by
            #5

            Ray Cassick wrote: You used .inc files in pervisous versions of VB? He must be talking about VB3. VB4 dropped the support for include files. I see dumb people

            1 Reply Last reply
            0
            • B bijju_home

              Hello gerry, I am a C++ programmer, now in the world of VB.net as in c++ world where we have .h files where we define the integer,string...array etc, is there some thing in vb.net world. where I could define all constants and global variables and include them in all files. or should all of them be defined in a module and include that module in the project while compiling. bijju

              G Offline
              G Offline
              Gerry D
              wrote on last edited by
              #6

              Not sure, Bijju. "Imports system.io" for example imports (includes) a namespace that you can then refer to in your code, like additional classes. system.io comes from system.dll (I believe) so you could create a DLL and then make a reference to it in your project, or you can copy a source file to your project. I used to keep a number of "global" .h files in a special directory that I made known to the compiler, so it would know where to find it. You can probably do the same thing in vb .net, but I've only been using vb .net a month, so I'm learning as I go along. :-) Good luck, Gerry

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups