Assembly Programming

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dharma

    #1

    Assembly Programming

    Hi!
    I am trying to learn assemblies. I created a DLLServer and DLLClient.
    I compiled DLLServer fine and got a dll. But when I compile DLLClient using
    the command[color=blue]
    >csc DllClient.cs /r:DllServer.dll[/color]
    it says 'DllServer' is inaccessible due to its protection level, can someone
    please help me with this?
    Thanks


  • Bob Powell [MVP]

    #2
    Re: Assembly Programming

    You've forgotten to use "public class ????" in your class definition.

    --
    Bob Powell [MVP]
    C#, System.Drawing

    The November edition of Well Formed is now available.
    Learn how to create Shell Extensions in managed code.


    Answer those GDI+ questions with the GDI+ FAQ


    Read my Blog at http://bobpowelldotnet.blogspot.com

    "Dharma" <t-seeraj@microsof t.com.NO_SPAM> wrote in message
    news:uzA$BVQtDH A.1884@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Hi!
    > I am trying to learn assemblies. I created a DLLServer and DLLClient.
    > I compiled DLLServer fine and got a dll. But when I compile DLLClient[/color]
    using[color=blue]
    > the command[color=green]
    > >csc DllClient.cs /r:DllServer.dll[/color]
    > it says 'DllServer' is inaccessible due to its protection level, can[/color]
    someone[color=blue]
    > please help me with this?
    > Thanks
    >
    >[/color]


    Comment

    • Dharma

      #3
      Re: Assembly Programming

      Thanks Bob...

      "Bob Powell [MVP]" <bob@_spamkille r_bobpowell.net > wrote in message
      news:ePZ%23NYQt DHA.2400@tk2msf tngp13.phx.gbl. ..[color=blue]
      > You've forgotten to use "public class ????" in your class definition.
      >
      > --
      > Bob Powell [MVP]
      > C#, System.Drawing
      >
      > The November edition of Well Formed is now available.
      > Learn how to create Shell Extensions in managed code.
      > http://www.bobpowell.net/currentissue.htm
      >
      > Answer those GDI+ questions with the GDI+ FAQ
      > http://www.bobpowell.net/gdiplus_faq.htm
      >
      > Read my Blog at http://bobpowelldotnet.blogspot.com
      >
      > "Dharma" <t-seeraj@microsof t.com.NO_SPAM> wrote in message
      > news:uzA$BVQtDH A.1884@TK2MSFTN GP10.phx.gbl...[color=green]
      > > Hi!
      > > I am trying to learn assemblies. I created a DLLServer and DLLClient.
      > > I compiled DLLServer fine and got a dll. But when I compile DLLClient[/color]
      > using[color=green]
      > > the command[color=darkred]
      > > >csc DllClient.cs /r:DllServer.dll[/color]
      > > it says 'DllServer' is inaccessible due to its protection level, can[/color]
      > someone[color=green]
      > > please help me with this?
      > > Thanks
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...