Newbie/idiot question about adding classes to a project

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

    Newbie/idiot question about adding classes to a project

    I want to use the arbitrary precision integer arithmetic package "IntX",
    from http://codeplex.com/IntX/

    This adds a multiprecision class for integers.

    I cannot see how to add an external class in to my project. If I just
    compile the IntX code as a project, I get a million errors (missing
    namespace).

    I can't find the library in the list in "Add Resource ..." under Project in
    VS2005, which isn't surprising, because its just a downloaded file - I can't
    see how its "linked" to the VS environment.

    Could somebody just give me a start on how I go about adding an external
    class to a Windows form application?

    Sorry ...





  • Mark Stevens

    #2
    Re: Newbie/idiot question about adding classes to a project

    On Sun, 7 Sep 2008 09:45:57 +1000, "Peter Webb"
    <webbfamily@DIE SPAMDIEoptusnet .com.auwrote:
    >Could somebody just give me a start on how I go about adding an external
    >class to a Windows form application?
    Use "Add reference..." and browse for the file. You should then be
    able to add the namespace to your project.

    I normally add the dll for the class I am adding to the bin directory
    under the project I am developing. That way I know it is always going
    to be there and I can control which version I am developing against.

    If you try to compile the IntX solution then you may get a whole load
    of errors because the system uses the Nunit test framework. If you
    try to compile just the IntX project (Right click on Oyster.IntX and
    select compile) then it should compile OK. At least it does on my
    machine.

    Hope this helps,
    Mark
    --
    |\ _,,,---,,_ A picture used to be worth a
    ZZZzzz /,`.-'`' -. ;-;;, thousand words - then along
    |,4- ) )-,_. ,\ ( `'-' came television!
    '---''(_/--' `-'\_)

    Mark Stevens (mark at thepcsite fullstop co fullstop uk)

    This message is provided "as is".

    Comment

    • jamezd

      #3
      Re: Newbie/idiot question about adding classes to a project

      On Sep 6, 7:45 pm, "Peter Webb" <webbfam...@DIE SPAMDIEoptusnet .com.au>
      wrote:
      I want to use the arbitrary precision integer arithmetic package "IntX",
      fromhttp://codeplex.com/IntX/
      >
      This adds a multiprecision class for integers.
      >
      I cannot see how to add an external class in to my project. If I just
      compile the IntX code as a project, I get a million errors (missing
      namespace).
      >
      I can't find the library in the list in "Add Resource ..." under Project in
      VS2005, which isn't surprising, because its just a downloaded file - I can't
      see how its "linked" to the VS environment.
      >
      Could somebody just give me a start on how I go about adding an external
      class to a Windows form application?
      >
      Sorry ...
      Did you get a useful answer to your question?

      Comment

      Working...