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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. how to add module in c#.net

how to add module in c#.net

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharptutorialquestion
7 Posts 3 Posters 1 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.
  • S Offline
    S Offline
    sarayumadhavan
    wrote on last edited by
    #1

    how to add module in c#.net? There is no option in the menu project-> add module in c#.net which we have in vb.net. sarayu

    C C 2 Replies Last reply
    0
    • S sarayumadhavan

      how to add module in c#.net? There is no option in the menu project-> add module in c#.net which we have in vb.net. sarayu

      C Offline
      C Offline
      CoolAmir
      wrote on last edited by
      #2

      Use CSC.exe (C# compiler) to compile ur code in to a module using the Target switch. Then use AL.exe (assembly linker) to link the module to ur assembly.

      S 1 Reply Last reply
      0
      • C CoolAmir

        Use CSC.exe (C# compiler) to compile ur code in to a module using the Target switch. Then use AL.exe (assembly linker) to link the module to ur assembly.

        S Offline
        S Offline
        sarayumadhavan
        wrote on last edited by
        #3

        hi Thank you for the response. Iam not aware of how to compile and usage of assembly linker. can u give me the step by step procedure. Regards, Sarayu.

        C 1 Reply Last reply
        0
        • S sarayumadhavan

          how to add module in c#.net? There is no option in the menu project-> add module in c#.net which we have in vb.net. sarayu

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          C# does not support the concept of modules as VB.NET does. AFAIK the module concept is a hang over from the old VB6 days and the VB.NET compiler does some fudging when converting the VB.NET code into MSIL in order to get it to work. I did read an interesting article on the subject a week or two back, however I cannot find it otherwise I would have linked to it.


          My: Blog | Photos "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious

          C 1 Reply Last reply
          0
          • S sarayumadhavan

            hi Thank you for the response. Iam not aware of how to compile and usage of assembly linker. can u give me the step by step procedure. Regards, Sarayu.

            C Offline
            C Offline
            CoolAmir
            wrote on last edited by
            #5

            Look in msdn.microsoft.com

            1 Reply Last reply
            0
            • C Colin Angus Mackay

              C# does not support the concept of modules as VB.NET does. AFAIK the module concept is a hang over from the old VB6 days and the VB.NET compiler does some fudging when converting the VB.NET code into MSIL in order to get it to work. I did read an interesting article on the subject a week or two back, however I cannot find it otherwise I would have linked to it.


              My: Blog | Photos "Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious

              C Offline
              C Offline
              CoolAmir
              wrote on last edited by
              #6

              I mean CSC /target:module Never used VB & don't know how a module in VB differs from module in dotNet.

              S 1 Reply Last reply
              0
              • C CoolAmir

                I mean CSC /target:module Never used VB & don't know how a module in VB differs from module in dotNet.

                S Offline
                S Offline
                sarayumadhavan
                wrote on last edited by
                #7

                hi I have got the information from msdn but that is purely related to console application. How will i do that in windows application using c#.net. My requirement is : I need to access a variable globally where the changes are done dynamically and that has to be reflected in all the other forms in that solution file. example: A variable a=10 is accessed globally. During runtime i ll change the variable,a=20 in a different form. how will this reflect in all the other forms unless i declare the globle variable in a module. if i declare the variable by giving public static a i can access globally, but i cannot do the changes dynamically. hope i ll get your help. thanks, sarayu.

                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